tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
lib
/
libc
/
stdio
/
at
jcs
143 files
Makefile.inc
document flockfile and unlocked getc in stdio feedback and ok schwarze
8 months ago
__fpending.3
The mdoc(7) .Ft macro does not need quoting of its arguments, but about 10% of our manual pages using this macro employed useless quoting anyway. Remove these quotes such that they do not incite fear, uncertainty, and doubt in developers who happen to look at these pages. jmc@ and tb@ agree with the direction.
9 months ago
asprintf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
clrerr.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.
10 years ago
dprintf.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.
10 years ago
fclose.3
Make the FILE object opaque. Move the __sFILE definition into libc/hidden/_stdio.h. All programs that refer to the internal structure of the FILE object can't be compiled from now on. std{in,out,err} doesn't refer __sF[] now, but the hidden __sF along with __srget and __swbuf symbols are kept temporarily to make our transition easier. But those symbols will be deleted soon. The shared library versions are bumped for libc and all the other libraries that refer to std{in,out,err}.
8 months ago
fclose.c
replace the flockfile backend with a per FILE recursive mutex.
8 months ago
fdclose.c
replace the flockfile backend with a per FILE recursive mutex.
8 months ago
fdopen.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
feof.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.
10 years ago
ferror.3
document that fileno(3) returns -1 for some kinds of FILE * objects; triggerd by but simpler than a similar patch sent in by Simon Branch <simonmbranch at gmail dot com>; OK millert@ jmc@
4 years ago
ferror.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.
10 years ago
fflush.3
fpurge() first appeared in 4.3BSD-Reno ok deraadt@ schwarze@
10 months ago
fflush.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
fgetc.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.
10 years ago
fgetln.3
Consistently .Xr the corresponding wide char functions from char- and string-handling <stdio.h> functions, like we already do it for <string.h>. Includes a smaller patch from <kshe59 at zoho dot eu>, OK jmc@.
8 years ago
fgetln.c
Use recallocarray() to avoid leaving detritus in memory when resizing buffers. We don't bother doing this for objects containing pointers, but focus on controllable data. ok millert
9 years ago
fgetpos.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.
10 years ago
fgets.3
Consistently .Xr the corresponding wide char functions from char- and string-handling <stdio.h> functions, like we already do it for <string.h>. Includes a smaller patch from <kshe59 at zoho dot eu>, OK jmc@.
8 years ago
fgets.c
Delete casts to off_t and size_t that are implied by assignments or prototypes. Ditto for some of the char* and void* casts too.
9 years ago
fgetwc.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
fgetwln.3
remove .Tn from stdio manuals; Kaspars Bankovskis found one of these
11 years ago
fgetwln.c
improve revision 1.2: in unusual cases, fgetwc(3) can succeed even though ferror(3) is already set; also from Andrey Chernov <ache at freebsd dot org>; OK millert@
9 years ago
fgetws.3
The mdoc(7) .Ft macro does not need quoting of its arguments, but about 10% of our manual pages using this macro employed useless quoting anyway. Remove these quotes such that they do not incite fear, uncertainty, and doubt in developers who happen to look at these pages. jmc@ and tb@ agree with the direction.
9 months ago
fgetws.c
Bugfix: When errno happens to be EILSEQ upon entry to fgetws(3), and when the file ends without a terminating Ln character, fgetws(3) discarded any characters read and reported bogus EOF. Never inspect errno(2) unless right after an error occurred! OK millert@
10 years ago
fileno.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.
10 years ago
findfp.c
remove unused local variables
7 months ago
flags.c
Add additional userland interfaces for setting close-on-exec on fds when creating them: mkostemp(), mkostemps(), the 'e' mode letter for fopen(), freopen(), fdopen(), and popen(). The close-on-exec flag will be cleared by the action created by posix_spawn_file_actions_adddup2().
11 years ago
floatio.h
Wrap the remaining __*dtoa() functions so that internal calls go direct
10 years ago
flockfile.3
document flockfile and unlocked getc in stdio feedback and ok schwarze
8 months ago
flockfile.c
While almost all the libc locks are taken and released in the same libc call, flockfile() and ftrylockfile() can be called when single-threaded and then--while 'holding' the lock--the process can create another thread, resulting in a broken state. Have the f{lock,trylock,unlock}file() APIs *always* do real locking so the exposed state is always consistent.
2 months ago
fmemopen.3
Xr open_memstream in fmemopen.3
10 months ago
fmemopen.c
Fix append mode so it always writes to the end and expand regress. OK deraadt@ martijn@
5 years ago
fopen.3
don't mention what language functions are implemented in remove a line relating to the 2BSD libNS ok schwarze@
2 years ago
fopen.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
fpending.c
Add <stdio_ext.h> with the seven APIs needed to have gnulib operate without poking directly into the FILE structure.
2 years ago
fprintf.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.
10 years ago
fpurge.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
fputc.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.
10 years ago
fputs.3
Consistently .Xr the corresponding wide char functions from char- and string-handling <stdio.h> functions, like we already do it for <string.h>. Includes a smaller patch from <kshe59 at zoho dot eu>, OK jmc@.
8 years ago
fputs.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.
10 years ago
fputwc.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
fputws.3
observe the following spelling: - wide character (noun) - wide-character (adjective)
15 years ago
fputws.c
ansi ok mpi@ deraadt@
4 years ago
fread.3
Fix typo: nemb -> nmemb
11 years ago
fread.c
Restore the optimization for unbuffered I/O. The buffer needs to be reset before each call to __srefill(). Passes new regress. OK semarie@
7 years ago
freadahead.c
Add <stdio_ext.h> with the seven APIs needed to have gnulib operate without poking directly into the FILE structure.
2 years ago
freading.c
Add <stdio_ext.h> with the seven APIs needed to have gnulib operate without poking directly into the FILE structure.
2 years ago
freadptr.c
Add <stdio_ext.h> with the seven APIs needed to have gnulib operate without poking directly into the FILE structure.
2 years ago
freopen.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
fscanf.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.
10 years ago
fseek.3
.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze
3 years ago
fseek.c
Again. Make exit(), fclose(), fflush(), and freopen() comply with POSIX-2008 requirements for setting the underlying file position when flushing read-mode streams, and make an fseek()-after-fflush() not change the underlying file position. This commit fixes some minor problems of the previous.
10 months ago
fseterr.c
Add <stdio_ext.h> with the seven APIs needed to have gnulib operate without poking directly into the FILE structure.
2 years ago
fsetpos.c
Delete casts to off_t and size_t that are implied by assignments or prototypes. Ditto for some of the char* and void* casts too.
9 years ago
ftell.c
Again. Make exit(), fclose(), fflush(), and freopen() comply with POSIX-2008 requirements for setting the underlying file position when flushing read-mode streams, and make an fseek()-after-fflush() not change the underlying file position. This commit fixes some minor problems of the previous.
10 months ago
funopen.3
change some 4.4BSD references to earlier releases ok schwarze@
3 years ago
funopen.c
funopen(): change seekfn argument to use off_t, not fpos_t On BSD, fpos_t is typedef'd to off_t but some systems use a struct. This means fpos_t is not a portable function argument or return value. Both FreeBSD and the Linux libbsd funopen() have switched to off_t for this--we should too. From Joe Nelson. OK deraadt@
4 years ago
fvwrite.c
__sfvwrite: allow writing buffers larger than BUFSIZ or st_blksize.
2 years ago
fvwrite.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.)
10 years ago
fwalk.c
Make _fwalk and _cleanup completely internal to libc
10 years ago
fwide.3
convert to new .Dd format;
19 years ago
fwide.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
fwprintf.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.
10 years ago
fwrite.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.
10 years ago
fwriting.c
Add <stdio_ext.h> with the seven APIs needed to have gnulib operate without poking directly into the FILE structure.
2 years ago
fwscanf.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.
10 years ago
getc.3
document flockfile and unlocked getc in stdio feedback and ok schwarze
8 months ago
getc.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.
10 years ago
getchar.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.
10 years ago
getdelim.3
add a missing .Vt macro; from Josiah Frentsos <jfrent at tilde dot team>
3 years ago
getdelim.c
Use recallocarray in getdelim/getline to clear memory on buffer resizes, inspired by a similar change to fgetln.
9 years ago
getline.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.
10 years ago
getw.c
Delete casts to off_t and size_t that are implied by assignments or prototypes. Ditto for some of the char* and void* casts too.
9 years ago
getwc.3
Consistently .Xr the corresponding wide char functions from char- and string-handling <stdio.h> functions, like we already do it for <string.h>. Includes a smaller patch from <kshe59 at zoho dot eu>, OK jmc@.
8 years ago
getwc.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.
10 years ago
getwchar.c
ansi ok mpi@ deraadt@
4 years ago
glue.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.)
10 years ago
local.h
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
makebuf.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.
6 years ago
open_memstream.3
Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze
13 years ago
open_memstream.c
No need to initialize the first element of st->string since it was just calloc(3)-ed a few lines above. OK tb@
2 years ago
open_wmemstream.c
No need to initialize the first element of st->string since it was just calloc(3)-ed a few lines above. OK tb@
2 years ago
perror.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@
6 years ago
perror.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.
10 years ago
printf.3
asprintf() and vasprintf() are in POSIX-2024. Update #include visibility and manpages and add restrict qualifiers in all the specified places to the *printf family.
2 years ago
printf.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.
10 years ago
putc.3
document flockfile and unlocked getc in stdio feedback and ok schwarze
8 months ago
putc.c
__swsetup: set error flag and errno on error.
2 years ago
putchar.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.
10 years ago
puts.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.
10 years ago
putw.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.
10 years ago
putwc.3
Consistently .Xr the corresponding wide char functions from char- and string-handling <stdio.h> functions, like we already do it for <string.h>. Includes a smaller patch from <kshe59 at zoho dot eu>, OK jmc@.
8 years ago
putwc.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.
10 years ago
putwchar.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.
10 years ago
refill.c
Fix the handle locking in stdio to use flockfile/funlockfile internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway.
16 years ago
remove.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.
11 years ago
remove.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.
6 years ago
rewind.c
Use fseeko() instead of fseek() inside libc, as the latter just calls the former with a loss of range. Mark fseek symbol as deprecated to block accidental use in the future.
3 years ago
rget.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
scanf.3
man pages: add missing commas between subordinate and main clauses
4 years ago
scanf.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.
10 years ago
setbuf.3
C99 says setvbuf() returns non-zero, not EOF. Also, POSIX documents that it returns an error for invalid mode which matches our behavior. OK jmc@ deraadt@
11 years ago
setbuf.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.
10 years ago
setbuffer.c
Delete casts to off_t and size_t that are implied by assignments or prototypes. Ditto for some of the char* and void* casts too.
9 years ago
setvbuf.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.
3 years ago
setvbuf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
snprintf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
sprintf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
sscanf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
stdio.3
rework some fflush text, as requested From: Edward tweaks From: Tim van der Molen
11 years ago
stdio.c
Delete casts to off_t and size_t that are implied by assignments or prototypes. Ditto for some of the char* and void* casts too.
9 years ago
swprintf.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.
10 years ago
swscanf.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.
10 years ago
tempnam.c
GNU ld has prefixed the contents of .gnu.warning.SYMBOL sections with "warning: " since 2003, so the messages themselves need not contain the prefix anymore.
8 years ago
tmpfile.c
Undo changes to tmpfile.c r1.5. Doing the fchown call causes pledge("tmppath") to be insufficient and the the umask dance may cause race-conditions in multithreaded applications.
7 years ago
tmpnam.3
.Dt same as filename
6 years ago
tmpnam.c
GNU ld has prefixed the contents of .gnu.warning.SYMBOL sections with "warning: " since 2003, so the messages themselves need not contain the prefix anymore.
8 years ago
ungetc.3
.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze
3 years ago
ungetc.c
Delete casts to off_t and size_t that are implied by assignments or prototypes. Ditto for some of the char* and void* casts too.
9 years ago
ungetwc.3
article fixes; from eddie youseph
5 years ago
ungetwc.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
vasprintf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
vdprintf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
vfprintf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
vfscanf.c
spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
3 years ago
vfwprintf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
vfwscanf.c
spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
3 years ago
vprintf.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.
10 years ago
vscanf.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.
10 years ago
vsnprintf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
vsprintf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
vsscanf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
vswprintf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
vswscanf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
vwprintf.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.
10 years ago
vwscanf.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.
10 years ago
wbuf.c
Modify the FILE object's members. Bump the libc major. Now we can bump the short members _file and _flags to int and drop the SHRT_MAX tests. Reorder the members, merge __sfileext into the object, switch the *printf and *scanf families from _FILEEXT_SETUP() to the FILEINIT() initializer, and update the allocation code in findfp(). Also, delete the __sF, _srget, and __swbuf symbols that remain from the previous step for our transition.
8 months ago
wprintf.3
Set EOVERFLOW for overflow conditions to match POSIX.
10 months ago
wprintf.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.
10 years ago
wscanf.3
mop up stdarg rename; ok deraadt
6 years ago
wscanf.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.
10 years ago
wsetup.c
__swsetup: set error flag and errno on error.
2 years ago