/
nerfur
/
openbsd-src
ОбзорДокументацияВойти
/
nerfur
/
openbsd-src
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
openbsd-src/
.../libc/gen/
..
Makefile.inc

Add elf_aux_info(3)

2 года назад
__tfork_thread.3

remove hppa64 port, which we never got going beyond broken single users. hppa reverse-stack gives us a valuable test case, but most developers don't have a 2nd one to proceed further with this. ok kettenis

10 лет назад
alarm.3

access(2) alarm(2) pause(2) were not ported from pwb to v7

4 года назад
alarm.c

alarm(3): remove superfluous pointer

5 лет назад
assert.c

Wrap <assert.h> so that __assert2() goes direct

11 лет назад
auth_subr.3

auth_getchallenge does not exist anymore

3 года назад
auth_subr.c

Do some easy .data -> .rodata/.data.rel.ro conversions

6 лет назад
authenticate.3

man pages: add missing commas between subordinate and main clauses

4 года назад
authenticate.c

For open/openat, if the flags parameter does not contain O_CREAT, the 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert

5 лет назад
basename.3

Align the basename(3) and dirname(3) prototypes with the POSIX spec: Both functions take a non-const parameter. Implementations may modify the passed string, even though ours do not.

6 лет назад
basename.c

Align the basename(3) and dirname(3) prototypes with the POSIX spec: Both functions take a non-const parameter. Implementations may modify the passed string, even though ours do not.

6 лет назад
cgetent.3

man pages: add missing commas between subordinate and main clauses

4 года назад
charclass.h

Do some easy .data -> .rodata/.data.rel.ro conversions

6 лет назад
clock.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
clock.c

Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther

12 лет назад
clock_getcpuclockid.3

use .In where appropriate; from Kaspars at Bankovskis dot net

12 лет назад
clock_getcpuclockid.c

Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options, including CLOCK_{PROCESS,THREAD}_CPUTIME_ID constants and {clock,pthread}_getcpuclockid() functions.

13 лет назад
closedir.c

Wrap <dirent.h> so that internal calls go direct and they're all weak symbols

11 лет назад
confstr.3

obvious .Pa fixes; found with mandocdb(8)

13 лет назад
confstr.c

Oops: confstr()'s return value should include the NUL in its count

13 лет назад
ctermid.3

obvious .Pa fixes; found with mandocdb(8)

13 лет назад
ctermid.c

Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

11 лет назад
ctype_.c

Move ctype.h defines to the _CTYPE_ prefix, avoids clashes with identifiers in ports

3 года назад
daemon.3

we mention interim BSD releases so change some 4.4BSD use to 4.3BSD-Reno ok jmc@ schwarze@

4 года назад
daemon.c

For open/openat, if the flags parameter does not contain O_CREAT, the 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert

5 лет назад
devname.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
devname.c

Similar to getpwnam(3) and getnetgrent(3), it is better to call libc-private __hash_open() than the generic dbopen(3) which pulls in all 3 database backends. ok millert

3 года назад
dirfd.c

Wrap <dirent.h> so that internal calls go direct and they're all weak symbols

11 лет назад
dirname.3

Align the basename(3) and dirname(3) prototypes with the POSIX spec: Both functions take a non-const parameter. Implementations may modify the passed string, even though ours do not.

6 лет назад
dirname.c

Align the basename(3) and dirname(3) prototypes with the POSIX spec: Both functions take a non-const parameter. Implementations may modify the passed string, even though ours do not.

6 лет назад
disklabel.c

Nuke last references to d_drivedata.

4 года назад
elf_aux_info.3

Add elf_aux_info(3)

2 года назад
elf_aux_info.c

Add elf_aux_info(3)

2 года назад
err.3

For open/openat, if the flags parameter does not contain O_CREAT, the 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert

5 лет назад
err.c

Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

11 лет назад
errc.c

Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

11 лет назад
errlist.c

Add additional errno values required by POSIX.

9 лет назад
errno.c

Use a Thread Information Block in both single and multi-threaded programs. This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!

10 лет назад
errx.c

Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

11 лет назад
exec.c

remove unused variable

3 года назад
execv.3

default path includes /usr/local/sbin

3 года назад
fabs.3

While we have fabs(3), frexp(3), ldexp(3), and modf(3) in libc, we have their eight *f and *l variants in libm, so add .Lb libm as suggested by tedu@: "A little extra -lm won't hurt anyone."

год назад
fdatasync.c

Implement fdatasync() as a wrapper around fsync()

13 лет назад
fnmatch.3

we mention interim BSD releases so change some 4.4BSD use to 4.3BSD-Reno ok jmc@ schwarze@

4 года назад
fnmatch.c

Do some easy .data -> .rodata/.data.rel.ro conversions

6 лет назад
fpclassify.3

fpclassify(3) and isgreater(3) are the last two pages living in src/lib/libc that require <math.h>, which implies that POSIX allows them to be in libm. While -lm is not currently required on OpenBSD, which POSIX is also fine with, providing -lm for these may help portability elsewhere. Requested by guenther@ and tedu@.

год назад
fpclassify.c

Wrap the remaining math functions in libc: __fpclassify*(), __flt_rounds(), and ldexp().

11 лет назад
fpgetmask.3

Remove useless quoting from .Fo and .Fn function names, to prevent development of a cargo cult in case people look at existing files for examples. This achieves a consistent .Fo and .Fn quoting style across the whole tree.

11 лет назад
frexp.3

While we have fabs(3), frexp(3), ldexp(3), and modf(3) in libc, we have their eight *f and *l variants in libm, so add .Lb libm as suggested by tedu@: "A little extra -lm won't hurt anyone."

год назад
frexp.c

test LDBL_MANT_DIG == DBL_MANT_DIG instead of hardcoding 53. -> test becomes meaningful on vax No actual change, no bump okay martynas@

13 лет назад
fstab.c

remove NOTREACHED

10 лет назад
ftok.3

Don't need <sys/types.h> before <sys/ipc.h> anymore

12 лет назад
ftok.c

ftok: avoid left shift of a signed in by 24 places Fix "left shift of 255 by 24 places cannot be represented in type 'int'" error from UBSAN. Adapted from a FreeBSD diff via tb@. OK tb@ deraadt@

4 года назад
fts.c

A few sys/param.h annotations lacked ALIGNBYTES

5 лет назад
fts_open.3

More correction of section 3 layout. directory->opendir, fts->fts_open, getcap->cgetent. pwcache->user_from_uid. And then repair references. ok jmc

7 лет назад
ftw.3

More correction of section 3 layout. directory->opendir, fts->fts_open, getcap->cgetent. pwcache->user_from_uid. And then repair references. ok jmc

7 лет назад
ftw.c

I am retiring my old email address; replace it with my OpenBSD one.

8 лет назад
getbsize.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
getbsize.c

Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

11 лет назад
getcap.c

Similar to getpwnam(3) and getnetgrent(3), it is better to call libc-private __hash_open() than the generic dbopen(3) which pulls in all 3 database backends. ok millert

3 года назад
getcwd.3

If a command or interface first appeared in PWB/UNIX, UNIX System III or UNIX System V mention it. Only do so in manual pages with a pre-existing HISTORY section.

4 года назад
getcwd.c

Add PROTO_NORMAL() declarations for the remaining syscalls, to avoid future, inadvertant PLT entries. Move the __getcwd and __realpath declarations to hidden/{stdlib,unistd}.h to consolidate and remove duplication.

3 года назад
getdiskbyname.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
getdomainname.3

Only allow changing the domainname (from empty) before securelevel increase. libc YP support has a couple of places where the domainname is cached, and this results in wildly incoherent behaviour which could even be risky. If you want to change the domainname, you will have to reboot. ok beck miod

4 года назад
getdomainname.c

make fixed-sized fixed-value mib[] arrays be const ok guenther tb millert

6 лет назад
getfsent.3

obvious .Pa fixes; found with mandocdb(8)

13 лет назад
getgrent.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
getgrent.c

1) The yp_bind/yp_unbind and internal _yp_dobind/_yp_unbind sequences shared dom_binding structs between threads, which is unsafe -- example, dom_vers signalled retry events, and structs+socket would get deallocated in _yp_unbind. Change all yp_first (and similar) functions to understand that _yp_dobind now provides a private dom_binding and socket, which must be released using _yp_unbind. Use similar methods in the one-step yp_all function. 2) domainname caching in get* is not neccessary now that the domainname cannot change relative to ypconnect(2)'s decisions. Many fields in dom_binding struct become unused, so delete them. ok jmatthew, also tested by miod

4 года назад
getgrouplist.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
getgrouplist.c

getgrouplist(3): always return the total number of groups found

2 года назад
gethostname.3

order sysctl(2) Xr by section missed when sysctl(3) references were changed to sysctl(2)

4 года назад
gethostname.c

make fixed-sized fixed-value mib[] arrays be const ok guenther tb millert

6 лет назад
getloadavg.3

order sysctl(2) Xr by section missed when sysctl(3) references were changed to sysctl(2)

4 года назад
getloadavg.c

make fixed-sized fixed-value mib[] arrays be const ok guenther tb millert

6 лет назад
getlogin.c

Minimize #includes, particularly to avoid thread_private.h

9 лет назад
getmntinfo.3

we mention interim BSD releases so change some 4.4BSD use to 4.3BSD-Reno ok jmc@ schwarze@

4 года назад
getmntinfo.c

When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.

7 лет назад
getnetgrent.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
getnetgrent.c

getpwnam(3) uses dbopen(3), which pulls all 3 database backends into static binaries. If we call libc-private __hash_open() instead, it results in a ~40K reduction in many static binaries. ok millert

3 года назад
getpagesize.3

getpagesize() appeared in 4.1c before 4.2

4 года назад
getpagesize.c

make fixed-sized fixed-value mib[] arrays be const ok guenther tb millert

6 лет назад
getpass.3

tweak previous;

10 лет назад
getprogname.3

Prefer "get or set" over "get/set" or "get and set".

3 года назад
getprogname.c

environ and __progname are not declared in a public header; declare them in libc's hidden/stdlib.h instead of in each .c file that needs one

10 лет назад
getpwent.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
getpwent.c

I forgot that chpass(1) and passwd(1) reach-around into libc for getpwent.c (isn't it horrible), and therefore lack visibility of the the libc-internal __hash_open() function. Use -DFORCE_DBOPEN in chpass/Makefile and passwd/Makefile and adjust getpwent.c to use the external visible interface. Is there a better way?

3 года назад
getpwnam.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
getttyent.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
getttyent.c

Wrap <ttyent.h> so that calls go direct and the symbols are all weak.

11 лет назад
getusershell.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
getusershell.c

Remove includes that are no longer neeed after tedu's simplification. OK jca@

7 лет назад
glob.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
glob.c

Do some easy .data -> .rodata/.data.rel.ro conversions

6 лет назад
initgroups.3

macro fixes from Kaspars at Bankovskis dot net; also fixing one typo in fts(3) while here

12 лет назад
initgroups.c

Ignore extra groups that don't fit in the buffer passed to getgrouplist(3)

2 года назад
isalnum.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
isalpha.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
isascii.3

more precision because the argument is signed, and even char is signed on some platforms; OK millert@ jmc@

5 лет назад
isatty.c

Wrap <unistd.h> so that internal calls go direct and they're all weak symbols Delete unused 'fd' argument from internal function oldttyname()

11 лет назад
isblank.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
iscntrl.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
isctype.c

Move ctype.h defines to the _CTYPE_ prefix, avoids clashes with identifiers in ports

3 года назад
isdigit.3

The locale is ignored on OpenBSD, match the wording used in isalpha.3. OK schwarze@

4 года назад
isfdtype.3

I am retiring my old email address; replace it with my OpenBSD one.

8 лет назад
isfdtype.c

I am retiring my old email address; replace it with my OpenBSD one.

8 лет назад
isfinite.c

test LDBL_MANT_DIG == DBL_MANT_DIG instead of hardcoding 53. -> test becomes meaningful on vax No actual change, no bump okay martynas@

13 лет назад
isgraph.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
isgreater.3

fpclassify(3) and isgreater(3) are the last two pages living in src/lib/libc that require <math.h>, which implies that POSIX allows them to be in libm. While -lm is not currently required on OpenBSD, which POSIX is also fine with, providing -lm for these may help portability elsewhere. Requested by guenther@ and tedu@.

год назад
isinf.c

pull in missing includes (math.h, unistd.h, stdlib.h) needed for prototypes

13 лет назад
islower.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
isnan.c

pull in missing includes (math.h, unistd.h, stdlib.h) needed for prototypes

13 лет назад
isnormal.c

test LDBL_MANT_DIG == DBL_MANT_DIG instead of hardcoding 53. -> test becomes meaningful on vax No actual change, no bump okay martynas@

13 лет назад
isprint.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
ispunct.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
isspace.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
isupper.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
isxdigit.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
ldexp.3

While we have fabs(3), frexp(3), ldexp(3), and modf(3) in libc, we have their eight *f and *l variants in libm, so add .Lb libm as suggested by tedu@: "A little extra -lm won't hurt anyone."

год назад
ldexp.c

Wrap the remaining math functions in libc: __fpclassify*(), __flt_rounds(), and ldexp().

11 лет назад
lockf.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
lockf.c

First pass at removing clauses 3 and 4 from NetBSD licenses.

18 лет назад
login_cap.3

fix markup of _PATH_DEFPATH (Li -> Dv); ok jmc

2 года назад
login_cap.c

spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;

4 года назад
modf.3

While we have fabs(3), frexp(3), ldexp(3), and modf(3) in libc, we have their eight *f and *l variants in libm, so add .Lb libm as suggested by tedu@: "A little extra -lm won't hurt anyone."

год назад
modf.c

Make sure modf() returns correct values for infinities. While there, drop the few assembler versions as has been done on other *BSD systems; this function (modf) turns out to be non-trivial enough, having only one known-to-work version is preferrable.

3 года назад
nftw.c

I am retiring my old email address; replace it with my OpenBSD one.

8 лет назад
nice.3

HISTORY; tweaks and ok sobrado@ jmc@

13 лет назад
nice.c

zap remaining rcsid.

21 год назад
nlist.3

correct Research Unix edition "appeared in" use in HISTORY

7 лет назад
nlist.c

spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;

4 года назад
opendir.3

readdir_r(3) was never necessary and has been deprecated by POSIX. Document that in the manpage and stop using it internally.

2 года назад
opendir.c

Add scandirat(3); from freebsd

2 года назад
pause.3

pause.3: miscellaneous rewrites, cleanup

4 года назад
pause.c

I am retiring my old email address; replace it with my OpenBSD one.

8 лет назад
popen.3

be more forceful about not using these. improvements sthen@, jmc@. okay millert@, jca@ jmc@

11 лет назад
popen.c

When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.

7 лет назад
posix_spawn.3

Fix Ed Schouten's name

3 года назад
posix_spawn.c

When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.

7 лет назад
posix_spawn_file_actions_addopen.3

man pages: add missing word, The foo() ... -> The foo() function ...

4 года назад
posix_spawn_file_actions_init.3

Even though not callable, "Ed" is a macro name, so for clarity, escape it when it appears on a macro line.

12 лет назад
posix_spawnattr_getflags.3

Prefer "get or set" over "get/set" or "get and set".

3 года назад
posix_spawnattr_getpgroup.3

Prefer "get or set" over "get/set" or "get and set".

3 года назад
posix_spawnattr_init.3

Even though not callable, "Ed" is a macro name, so for clarity, escape it when it appears on a macro line.

12 лет назад
psignal.3

More consistently put remarks about the less useful LC_* categoties, i.e. those other than LC_CTYPE, into the CAVEATS section, and standardize wording somewhat. OK jmc@

7 лет назад
psignal.c

Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

11 лет назад
pw_dup.3

I am retiring my old email address; replace it with my OpenBSD one.

8 лет назад
pw_dup.c

I am retiring my old email address; replace it with my OpenBSD one.

8 лет назад
pwcache.c

spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;

4 года назад
raise.3

Use .Rv where appropriate, and move it to RETURN VALUES; remove .Tn, and a few minor macro adjustments. Patch from Kaspars at Bankovskis dot net.

12 лет назад
raise.c

Split the intra-thread functionality from kill(2) into its own syscall thrkill(2), rolling the kill(2) syscall number with the ABI change to avoid breaking binaries during during the transition. thrkill(2) includes a 'tcb' argument that eliminates the need for locking in pthread_kill() and simplifies pthread_cancel(). Switch __stack_smash_handler() to use thrkill(2) and explicitly unblock SIGABRT.

11 лет назад
readdir.c

Wrap <dirent.h> so that internal calls go direct and they're all weak symbols

11 лет назад
readdir_r.c

put the _readdir_unlocked() prototype in an obvious place

13 лет назад
readpassphrase.3

I am retiring my old email address; replace it with my OpenBSD one.

8 лет назад
readpassphrase.c

I am retiring my old email address; replace it with my OpenBSD one.

8 лет назад
rewinddir.c

Minimize #includes, particularly to avoid thread_private.h

9 лет назад
scandir.3

Add scandirat(3); from freebsd

2 года назад
scandir.c

Add scandirat(3); from freebsd

2 года назад
seekdir.c

Wrap <dirent.h> so that internal calls go direct and they're all weak symbols

11 лет назад
setdomainname.c

make fixed-sized fixed-value mib[] arrays be const ok guenther tb millert

6 лет назад
sethostname.c

make fixed-sized fixed-value mib[] arrays be const ok guenther tb millert

6 лет назад
setjmp.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
setmode.3

we mention interim BSD releases so change some 4.4BSD use to 4.3BSD-Reno ok jmc@ schwarze@

4 года назад
setmode.c

obvious reallocarray() use ok doug

12 лет назад
setproctitle.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
setproctitle.c

make fixed-sized fixed-value mib[] arrays be const ok guenther tb millert

6 лет назад
setprogname.c

__progname has type char *, we cannot change its type without causing havoc all over the place. So add some casts to silence the compiler. ok deraadt@ guenther@

9 лет назад
shm_open.3

Document that shm_open() accepts O_CLOEXEC and O_NOFOLLOW as extensions

11 лет назад
shm_open.c

shm_open(), sysconf(), tcflow(), and tcsendbreak() are not permitted to be cancellation points in POSIX, so change them to invoke the non-cancellation point versions of open(), close(), nanosleep(), and write()

9 лет назад
sigaddset.3

It is distasteful to have manual pages which don't refer to real function calls, but instead a "class" of functions like "sigsetops". Rename to sigaddset", and while at it improve documentation in sigprocmask(2) to point to it. ok tedu

9 лет назад
siginterrupt.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
siginterrupt.c

When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.

7 лет назад
siglist.c

Don't wrap initialized variables: binutils appears to be mishandling them on arm and m88k

11 лет назад
signal.3

spelling

2 года назад
signal.c

When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.

7 лет назад
signame.c

Don't wrap initialized variables: binutils appears to be mishandling them on arm and m88k

11 лет назад
signbit.c

test LDBL_MANT_DIG == DBL_MANT_DIG instead of hardcoding 53. -> test becomes meaningful on vax No actual change, no bump okay martynas@

13 лет назад
sigsetops.c

Finish wrapping <signal.h> so that calls to the sigset ops go direct and everything but raise() and signal() are weak. No longer need _thread_sys_ prefix on getthrid()

11 лет назад
sigwait.3

Restore .Xr to pthread_sigmask

8 лет назад
sigwait.c

Move sigwait(3) from libpthread to libc

8 лет назад
sleep.3

man pages: add missing commas between subordinate and main clauses

4 года назад
sleep.c

sleep(3): don't bypass nanosleep(2) if seconds is zero

6 лет назад
statvfs.3

Fix typo in comment for f_favail. From Alf Schlichting

5 лет назад
statvfs.c

Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther

12 лет назад
strtofflags.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
strtofflags.c

All these files include <stdlib.h>, so do not need to cast malloc/calloc/realloc* returns.

11 лет назад
sysconf.3

No specific called "exec(3)", so move primary manpage to a name which does exist -- execv(3). Still call this a family but without "Nm". Adjust Xr in various pages to refer to the precise function used rather than the family, in most cases the semantics of execve(2) are being referenced, so change the Xr. ok jmc

7 лет назад
sysconf.c

Use sysctl CTL_NET.PF_INET6 to check if IPv6 is available or not. With this sysconf(3) no longer needs the inet pledge. The kernel has been updated for this for a while now. OK sthen@ deraadt@

4 года назад
syslog.3

reentrant functions were not in 386BSD spotted by and ok deraadt@

2 года назад
syslog.c

Do not include a timestamp in the syslog message. There is no need -- syslogd will fill it in immediately upon reception on the other side of sendsyslog(2). Our libc only talks to our syslogd, which will fix the timestamp before forwarding. syslog_r has done this for a long time already. ok tedu bluhm

11 лет назад
syslog_r.c

Reading https://github.com/Geal/rust-syslog/issues/79, I came to a related conclusion that our syslog_r should not stomp on errno. The errno being returned from sendsyslog() isn't exactly compatible with the what a legacy syslog_r() would do here anyways, and it is better to just be void and non-stomping; ok millert bluhm

2 года назад
telldir.c

Wrap <dirent.h> so that internal calls go direct and they're all weak symbols

11 лет назад
telldir.h

Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internal symbols that are not longer exported. (This improves the generated code.)

11 лет назад
time.3

doubled word; from Leon Fischer

5 лет назад
time.c

Add support for timeconting in userland.

6 лет назад
times.3

Remove history of the tms struct. It is tied to the function, and the manual incorrectly claimed it first appeared in 4BSD. ok deraadt@

2 года назад
times.c

Add support for timeconting in userland.

6 лет назад
timespec_get.3

typo; fix from hiltjo posthuma

8 лет назад
timespec_get.c

Add support for timeconting in userland.

6 лет назад
toascii.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
tolower.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
tolower_.c

Don't wrap initialized variables: binutils appears to be mishandling them on arm and m88k

11 лет назад
toupper.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
toupper_.c

Don't wrap initialized variables: binutils appears to be mishandling them on arm and m88k

11 лет назад
tree.c

Fix a "copy-and-paste" error that Coverity picked up in the augment code

8 лет назад
ttyname.3

controm terminql -> controlling terminal;

4 года назад
ttyname.c

Similar to getpwnam(3) and getnetgrent(3), it is better to call libc-private __hash_open() than the generic dbopen(3) which pulls in all 3 database backends. ok millert

3 года назад
ttyslot.c

pull in stdlib.h as required

13 лет назад
ualarm.3

ualarm.3: cleanups, rewrites

3 года назад
ualarm.c

zap remaining rcsid.

21 год назад
uname.3

Mention that the strings are OS-specific. In part based on input from deraadt@, OK millert@.

3 года назад
uname.c

Pull in <stdio.h> for NULL

10 лет назад
unvis.3

we mention interim BSD releases so change some 4.4BSD use to 4.3BSD-Reno ok jmc@ schwarze@

4 года назад
unvis.c

Wrap <vis.h> so that calls go direct and the symbols are all weak

11 лет назад
user_from_uid.3

change some 4.4BSD references to earlier releases ok schwarze@

4 года назад
usleep.3

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze

13 лет назад
usleep.c

usleep(3): always call nanosleep(2)

5 лет назад
utime.3

.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze

4 года назад
utime.c

zap remaining rcsid.

21 год назад
valloc.3

Mention aligned_alloc(), prompted by Brad; ok jmc@

8 лет назад
valloc.c

zap remaining rcsid.

21 год назад
verr.c

environ and __progname are not declared in a public header; declare them in libc's hidden/stdlib.h instead of in each .c file that needs one

10 лет назад
verrc.c

environ and __progname are not declared in a public header; declare them in libc's hidden/stdlib.h instead of in each .c file that needs one

10 лет назад
verrx.c

environ and __progname are not declared in a public header; declare them in libc's hidden/stdlib.h instead of in each .c file that needs one

10 лет назад
vis.3

we mention interim BSD releases so change some 4.4BSD use to 4.3BSD-Reno ok jmc@ schwarze@

4 года назад
vis.c

Found two multiple evaluation macros. One of them so long and scary it too many people to unravel correctly and place into a static function. While here, move the flags bits into local variables, which reduces the amount of () in the checks. help from millert, miod, tedu

4 года назад
vwarn.c

environ and __progname are not declared in a public header; declare them in libc's hidden/stdlib.h instead of in each .c file that needs one

10 лет назад
vwarnc.c

environ and __progname are not declared in a public header; declare them in libc's hidden/stdlib.h instead of in each .c file that needs one

10 лет назад
vwarnx.c

environ and __progname are not declared in a public header; declare them in libc's hidden/stdlib.h instead of in each .c file that needs one

10 лет назад
wait.c

Wrap waitpid() so calls go direct; weaken wait() and wait3(). Strip out unnecessary #includes and use NULL instead of (struct rusage *)0

11 лет назад
wait3.c

Wrap waitpid() so calls go direct; weaken wait() and wait3(). Strip out unnecessary #includes and use NULL instead of (struct rusage *)0

11 лет назад
waitpid.c

Wrap waitpid() so calls go direct; weaken wait() and wait3(). Strip out unnecessary #includes and use NULL instead of (struct rusage *)0

11 лет назад
warn.c

Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

11 лет назад
warnc.c

Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

11 лет назад
warnx.c

Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

11 лет назад