freebsd-dev/lib/libc/gen
Konstantin Belousov 54579376c0 Change kqueue1() to be compatible with NetBSD
by making it accept some open(2) flags.  More precisely, only
O_CLOEXEC is supported, the flag is translated into the KQUEUE_CLOEXEC flag
for kqueuex(2), and O_NONBLOCK is silently ignored.

Reported and tested by:	vishwin
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D39377
2023-04-05 06:29:49 +03:00
..
__getosreldate.c
__pthread_mutex_init_calloc_cb_stub.c Remove "All Rights Reserved" from FreeBSD Foundation libc copyrights 2022-07-21 09:53:31 -04:00
__xuname.c Revert "uname: switch machine to HW_MACHINE_ARCH" 2022-12-12 15:42:05 +01:00
_once_stub.c
_pthread_stubs.c libc: Add pthread_attr_get_np(3) stub, reporting ESRCH. 2020-11-28 12:19:20 +00:00
_rand48.c
_spinlock_stub.c
_thread_init.c
alarm.3 libc: Add HISTORY sections to the manual pages 2022-05-05 18:46:32 +02:00
alarm.c
arc4random_uniform.c Sync with OpenBSD: 2020-04-13 08:42:13 +00:00
arc4random-compat.c Update userland arc4random() with OpenBSD's Chacha20 based arc4random(). 2018-08-19 17:40:50 +00:00
arc4random.3 arc4random(3): fix .Xr issues 2020-12-11 00:13:39 +00:00
arc4random.c arc4random(3): Reduce diff with OpenBSD. 2022-08-09 17:27:55 -07:00
arc4random.h Fix building on Linux/macOS after r366622 2020-10-12 10:42:14 +00:00
assert.c
auxv.3 auxv.3: Document AT_USRSTACKBASE and AT_USRSTACKLIM 2022-09-16 23:23:46 +03:00
auxv.c libc: move declaration of 'char **environ' to common private header 2023-03-12 00:50:04 +02:00
basename_compat.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
basename.3
basename.c
cap_rights_get.3 Remove "All Rights Reserved" from FreeBSD Foundation libc copyrights 2022-07-21 09:53:31 -04:00
cap_sandboxed.3 Remove "All Rights Reserved" from FreeBSD Foundation libc copyrights 2022-07-21 09:53:31 -04:00
cap_sandboxed.c Remove "All Rights Reserved" from FreeBSD Foundation libc copyrights 2022-07-21 09:53:31 -04:00
check_utility_compat.3
check_utility_compat.c
clock_getcpuclockid.3
clock_getcpuclockid.c
clock.3
clock.c
closedir.c
confstr.3
confstr.c
cpuset_alloc.c Make CPU_SET macros compliant with other implementations 2021-12-30 12:20:32 +01:00
cpuset_free.c Make CPU_SET macros compliant with other implementations 2021-12-30 12:20:32 +01:00
crypt.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
ctermid.3
ctermid.c
daemon.3 man 3 daemon: remove double negation 2023-02-27 08:40:08 -07:00
daemon.c
devname-compat11.c
devname.3
devname.c devname(3): apply S_ISBLK() to type, not dev_t 2023-01-28 20:04:35 +02:00
directory.3 directory(3): Add an ERRORS section 2020-08-04 08:46:28 +00:00
dirfd.c
dirname_compat.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
dirname.3
dirname.c
disklabel.c
dl_iterate_phdr.3 rtld dl_iterate_phdr(): dlpi_tls_data is wrong 2021-04-06 03:23:08 +03:00
dladdr.3
dlfcn.c libc dl_iterate_phdr(): dlpi_tls_data is wrong 2021-04-09 23:46:24 +03:00
dlinfo.3 Implement Solaris-like link_map l_refname member. 2020-05-22 17:52:09 +00:00
dllockinit.3
dlopen.3 More precise language: what is called data pointer, C calls object pointer. 2022-09-16 19:40:11 +02:00
drand48.c
dup3.3
dup3.c
elf_utils.c libc, libthr: use AT_USRSTACK{BASE,LIM} instead of sysctl("kern.usrstack") and get_rlimit(RLIMIT_STACK) 2022-09-16 23:24:06 +03:00
erand48.c
err.3
err.c warnx: fix needless static 2020-10-24 00:03:11 +00:00
errlst.c Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
errno.c
eventfd.c copyright: chase my name and email change 2023-01-06 15:28:42 -05:00
exec.3 exec{l,v}{e,p} arrived in 7th Edition research Unix to support the Bourne Shell 2020-03-24 19:33:21 +00:00
exec.c libc: move declaration of 'char **environ' to common private header 2023-03-12 00:50:04 +02:00
exect.c
fdevname.c
feature_present.3
feature_present.c
fmtcheck.3
fmtcheck.c
fmtmsg.3
fmtmsg.c
fnmatch.3 libc: Add HISTORY sections to the manual pages 2022-05-05 18:46:32 +02:00
fnmatch.c libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
fpclassify.3
fpclassify.c
frexp.3
frexp.c
fstab.c libc: Use secure_getenv(3) where appropriate 2023-03-27 08:56:22 -04:00
ftok.3 libc: remove unneeded sys/types.h include from several synopses 2022-11-30 00:45:07 +02:00
ftok.c
fts-compat11.c libc: Check for readdir(2) errors in fts(3) 2022-03-28 11:23:46 -04:00
fts-compat11.h
fts-compat.c libc: Check for readdir(2) errors in fts(3) 2022-03-28 11:23:46 -04:00
fts-compat.h
fts.3
fts.c libc: Check for readdir(2) errors in fts(3) 2022-03-28 11:23:46 -04:00
ftw-compat11.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
ftw.3 ftw.3: Follow style(9) in the example 2020-03-12 18:28:23 +00:00
ftw.c
gen-compat.h
gen-private.h Reduce size of rtld by 22% by pulling in less code from libc 2019-06-30 11:49:58 +00:00
getbootfile.3
getbootfile.c
getbsize.3 Improve size readability. 2021-02-15 20:23:32 +01:00
getbsize.c
getcap.3
getcap.c
getcontext.3 Add STANDARDS and HISTORY to getcontext(3), makecontext(3), and ucontext(3). 2020-03-23 17:38:20 +00:00
getcwd.3
getcwd.c
getdiskbyname.3
getdomainname.3
getdomainname.c
getentropy.3 getentropy(3): sort SEE ALSO sections 2020-12-11 00:15:57 +00:00
getentropy.c Misc compiler warning fixes in lib/libc 2020-09-27 22:26:41 +00:00
getfsent.3
getgrent.3
getgrent.c libc/gen/getgrent.c: plug warnings about write-only variables 2021-11-29 17:39:50 +02:00
getgrouplist.3
getgrouplist.c
gethostname.3 gethostname(3): Correct the reference of the undefined value HOST_NAME_MAX 2020-07-13 15:17:29 +00:00
gethostname.c
getloadavg.3
getloadavg.c
getlogin.c getlogin_r: fix the type of len 2020-09-09 18:07:13 +00:00
getmntinfo-compat11.c
getmntinfo.3
getmntinfo.c
getnetgrent.3
getnetgrent.c
getosreldate.3
getosreldate.c
getpagesize.3 getpagesize(3): cross-reference getpagesizes(3) 2022-10-17 15:16:12 -03:00
getpagesize.c
getpagesizes.3
getpagesizes.c
getpass.3
getpeereid.3 libc: remove unneeded sys/types.h include from several synopses 2022-11-30 00:45:07 +02:00
getpeereid.c Add SOL_LOCAL symbolic constant for unix socket option level. 2020-08-03 22:13:02 +00:00
getprogname.3 getprogname.3: Add an example 2021-04-18 10:20:11 +02:00
getprogname.c
getpwent.3 libc: remove unneeded sys/types.h include from several synopses 2022-11-30 00:45:07 +02:00
getpwent.c libc/gen/getpwent.c: plug warnings about write-only variables 2021-11-29 17:39:50 +02:00
getttyent.3
getttyent.c
getusershell.3
getusershell.c
getutxent.3
getutxent.c Remove __NO_TLS. 2021-02-23 20:08:10 +02:00
getvfsbyname.3 Put jail(2) under COMPAT_FREEBSD11. It has been the "old" way of creating 2018-08-16 18:40:16 +00:00
getvfsbyname.c style changes to getvfsbyname 2019-07-17 19:41:44 +00:00
glob-compat11.c libc: Use secure_getenv(3) where appropriate 2023-03-27 08:56:22 -04:00
glob-compat11.h
glob.3
glob.c libc: Use secure_getenv(3) where appropriate 2023-03-27 08:56:22 -04:00
initgroups.3
initgroups.c
isatty.c
isgreater.3
isinf.c
isnan.c Add __isnan()/__isnanf() aliases for compatibility with glibc and CUDA 2019-11-02 16:59:53 +00:00
jrand48.c
kqueue1.c Change kqueue1() to be compatible with NetBSD 2023-04-05 06:29:49 +03:00
lcong48.c
ldexp.3
ldexp.c s_scalbn.c: Add missing float.h include 2021-03-01 14:22:47 +00:00
libc_dlopen.c Remove redundand 'else' and 'return'. 2019-06-23 10:45:50 +00:00
lockf.3
lockf.c
lrand48.c
makecontext.3 Add STANDARDS and HISTORY to getcontext(3), makecontext(3), and ucontext(3). 2020-03-23 17:38:20 +00:00
Makefile.inc Change kqueue1() to be compatible with NetBSD 2023-04-05 06:29:49 +03:00
memalign.c libc: handle zero alignment in memalign() 2023-02-24 13:19:06 -05:00
modf.3
modf.c
mrand48.c
nftw-compat11.c
nftw.c
nice.3
nice.c
nlist.3 nlist: retire long-obsolete aout support 2020-03-30 20:15:19 +00:00
nlist.c nlist(3): Fix a common typo in a source code comment 2022-06-05 09:51:57 +02:00
nrand48.c
opendir.c libc: remove forward compat added in r356830 for F_ISUNIONSTACK 2020-01-29 01:52:27 +00:00
pause.3 libc: Add HISTORY sections to the manual pages 2022-05-05 18:46:32 +02:00
pause.c
pmadvise.c
popen.3
popen.c libc: move declaration of 'char **environ' to common private header 2023-03-12 00:50:04 +02:00
posix_spawn_file_actions_addopen.3 Document posix_spawn_file_actions_addclosefrom_np(3) 2021-11-30 03:43:54 +02:00
posix_spawn_file_actions_init.3 Document posix_spawn_file_actions_addclosefrom_np(3) 2021-11-30 03:43:54 +02:00
posix_spawn.3 Document posix_spawn_file_actions_addclosefrom_np(3) 2021-11-30 03:43:54 +02:00
posix_spawn.c libc: move declaration of 'char **environ' to common private header 2023-03-12 00:50:04 +02:00
posix_spawnattr_getflags.3
posix_spawnattr_getpgroup.3
posix_spawnattr_getschedparam.3
posix_spawnattr_getschedpolicy.3
posix_spawnattr_getsigdefault.3
posix_spawnattr_getsigmask.3
posix_spawnattr_init.3
psignal.3
psignal.c
pututxline.c
pw_scan.c
pw_scan.h
raise.3
raise.c
rand48.3
rand48.h
readdir-compat11.c
readdir.c
readpassphrase.3 Note that readpassphrase() came into FreeBSD's libc at 4.6. 2019-02-13 04:52:01 +00:00
readpassphrase.c
recvmmsg.c
rewinddir.c
rfork_thread.3
scandir_b.c
scandir-compat11.c Alter the prototype of qsort_r(3) to match POSIX, which adopted the 2022-09-30 15:26:30 -07:00
scandir.3 libc: Add strverscmp(3) and versionsort(3) 2022-08-25 03:29:03 +03:00
scandir.c Alter the prototype of qsort_r(3) to match POSIX, which adopted the 2022-09-30 15:26:30 -07:00
sched_getaffinity.c cpuset: Add compat shim to the sched_affinity functions 2023-02-15 12:23:15 +03:00
sched_getcpu_gen.c Make CPU_SET macros compliant with other implementations 2021-12-30 12:20:32 +01:00
sched_setaffinity.c cpuset: Add compat shim to the sched_affinity functions 2023-02-15 12:23:15 +03:00
seed48.c
seekdir.c
sem_destroy.3
sem_getvalue.3
sem_init.3
sem_new.c
sem_open.3
sem_post.3
sem_timedwait.3
sem_wait.3
sem.c
semctl.c
sendmmsg.c
setdomainname.c
sethostname.c
setjmp.3 libc: Add HISTORY sections to the manual pages 2022-05-05 18:46:32 +02:00
setjmperr.c
setmode.3 Document that setmode(3) is not thread safe. 2019-07-18 21:33:55 +00:00
setmode.c Allow building setmode.c on Linux/macOS 2020-08-03 18:08:04 +00:00
setproctitle.3 libc: remove unneeded sys/types.h include from several synopses 2022-11-30 00:45:07 +02:00
setproctitle.c setproctitle_internal(): remove kbuf local, it is write-only 2021-11-29 17:39:51 +02:00
setprogname.c
siginterrupt.3
siginterrupt.c
siglist.c
signal.3
signal.c
sigsetops.3 Add sigsetop extensions commonly found in musl libc and glibc 2019-12-12 01:41:55 +00:00
sigsetops.c Add sigsetop extensions commonly found in musl libc and glibc 2019-12-12 01:41:55 +00:00
sleep.3
sleep.c
srand48.c
statvfs.3
statvfs.c
stringlist.3
stringlist.c
strtofflags.3
strtofflags.c
Symbol.map Change kqueue1() to be compatible with NetBSD 2023-04-05 06:29:49 +03:00
sysconf.3
sysconf.c Make sysconf(_SC_PAGESIZE) return the value from getpagesize(3). 2018-11-19 18:23:17 +00:00
sysctl.3 vfs: retire KERN_VNODE 2023-03-17 16:21:45 +00:00
sysctl.c libc: add helper furnction to set sysctl() user.* variables 2022-02-05 13:33:53 +01:00
sysctlbyname.c sysctlbyname(): restore access to user variables 2022-02-09 23:10:31 +01:00
sysctlnametomib.c sysctl: use names instead of magic numbers. 2019-09-18 16:13:10 +00:00
syslog.3 syslog.3 - Add detail about LOG_PID 2021-05-13 16:23:44 +02:00
syslog.c syslog: fix PID of forking process 2023-01-03 15:58:36 +07:00
tcgetpgrp.3 libc: remove unneeded sys/types.h include from several synopses 2022-11-30 00:45:07 +02:00
tcgetsid.3 libc: remove unneeded sys/types.h include from several synopses 2022-11-30 00:45:07 +02:00
tcgetwinsize.3 tcgetwinsize(3): provide man page 2021-01-02 04:43:32 +02:00
tcsendbreak.3
tcsetattr.3 Don't imply that all action values can be OR'd. 2020-07-15 17:05:37 +00:00
tcsetpgrp.3 libc: remove unneeded sys/types.h include from several synopses 2022-11-30 00:45:07 +02:00
tcsetsid.3 libc: remove unneeded sys/types.h include from several synopses 2022-11-30 00:45:07 +02:00
telldir.c Fix two WARNS=6 warnings in opendir.c and telldir.c 2019-06-23 10:47:07 +00:00
telldir.h
termios.c Add tcgetwinsize(3) and tcsetwinsize(3) to termios 2020-12-25 20:43:09 +02:00
time.3 time(3): Refine history in the manual page 2022-04-14 10:04:14 +02:00
time.c
times.3
times.c times: Use modern function definitions 2022-10-25 10:57:29 -06:00
timespec_get.3 timespec_get(3): sort SEE ALSO correctly 2020-12-11 02:22:42 +00:00
timespec_get.c Remove assert.h and commented out _DIAGASSERT. 2018-08-10 15:16:36 +00:00
timezone.3
timezone.c
tls.c libc: move declaration of 'char **environ' to common private header 2023-03-12 00:50:04 +02:00
trivial-getcontextx.c
ttyname.3
ttyname.c
ttyslot.c
tzset.3 libc: Remove prototype and documentation for tzsetwall(). 2023-03-07 17:20:49 +00:00
ualarm.3
ualarm.c Correct a misleading indent. 2020-01-21 16:31:08 +00:00
ucontext.3 Add STANDARDS and HISTORY to getcontext(3), makecontext(3), and ucontext(3). 2020-03-23 17:38:20 +00:00
ulimit.3
ulimit.c
uname.3
uname.c
unvis-compat.c
usleep.3 usleep(3): replace 'process' with 'calling thread' 2021-02-11 05:52:55 +02:00
usleep.c
utime.3
utime.c
utxdb.c Remove __NO_TLS. 2021-02-23 20:08:10 +02:00
utxdb.h
valloc.3
valloc.c
wait3.c
wait.c
waitid.c
waitpid.c
wordexp.3
wordexp.c