| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
with "warning: " since 2003, so the messages themselves need not
contain the prefix anymore.
From Scott Cheloha
ok jca, deraadt
|
|
|
|
|
|
| |
C standard are all weak.
Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the
arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
|
|
|
|
| |
Delete unused 'fd' argument from internal function oldttyname()
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
tests clean on i386, amd64, sparc64, powerpc, and mips64
naming feedback from kettenis@ and millert@
ok kettenis@
|
|
|
|
|
| |
Since tempchars is never reassigned there's no need to indirect
through a pointer. Still getting used to this newfangled C89.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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().
Also, add support for the C11 'x' mode letter for fopen() and freopen(),
setting O_EXCL when possibly creating files.
Note: this requires kernel support for pipe2() and dup3()!
ok millert@
|
|
|
|
|
|
|
| |
arc4random_buf() to avoid lots of arc4random() calls with a getpid()
syscall for each one. We fetch 32 bytes of random data at a time
which can handle up to 16 Xs. 16 Xs should be enough for anyone.
Requested and OK deraadt@
|
|
|
|
| |
ok deraadt@ millert@
|
| |
|
|
|
|
|
|
| |
setting errno(2). Behaviour unchanged for mkstemp[s] and mkdtemp.
ok guenther deraadt
|
|
|
|
|
|
|
| |
entire template was Xs. Test suite written now to keep this from
happening again. Problem caught by Vadim Zhukov again.
ok millert@
|
|
|
|
|
|
|
| |
Also, remove a duplicate preconditions check.
Based on a suggestion by Vadim Zhukov (persgray <at> gmail.com)
ok millert@
|
|
|
|
| |
OK oga@ thib@
|
|
|
|
|
|
|
| |
digits (in addition to letters) in the random file name. Instead
of looping forever, mktemp(3) will terminate when it has tried 2 *
N^62 times where N is the number of X's. This is effectively forever
for lots of X's.
|
|
|
|
|
| |
from Vadim Zhukov <persgray@gmail
ok millert
|
|
|
|
| |
ok millert@
|
|
|
|
| |
temporary file name with one that only uses random data. OK deraadt@
|
|
|
|
| |
element in the path does not exist. OK deraadt@ pvalchev@
|
| |
|
|
|
|
|
|
| |
FreeBSD did this in revision 1.20.
OK deraadt@, krw@
|
|
|
|
|
|
| |
Kill old files that are no longer compiled.
okay theo
|
| |
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
|
|
| |
buffer passed in. Based on a patch from Mark Andrews. deraadt@ OK
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
2) Use traditional mktemp(3) semantics. Don't return an error if
directories in the path don't exist yet for mktemp(3) only.
|
| |
|
|
|
|
| |
Bostic <bostic@bostic.com>.
|
| |
|
| |
|
|
|
|
| |
now done for the pmax like for the arc in machine/cdefs.h
|
|
|
|
|
| |
is then set in the libc Makefile for the mips (the mips linker can't
handle them)
|
|
|
|
| |
incredibly rare. Time for some education!
|
|
|
|
| |
Make sure everything uses {SYS,}LIBC_SCCS properly
|
|
|