wiz
fc5db8c0e8
Put fseeko, ftello, pread, and pwrite in the POSIX 2001 namespace.
...
Ok christos, apb, martin
2015-03-24 07:44:52 +00:00
dholland
faa5a4f036
One vscanf_l is ample.
2015-03-05 03:29:02 +00:00
christos
72566f3f96
PR/49715: Henning Petersen: Missing _*_DECLS in stdio.h around popenve.
2015-03-04 13:33:19 +00:00
christos
4d416d886b
belated removal of the advertising clause.
2015-02-24 17:56:20 +00:00
christos
5a70401cf6
PR/49684: Pierre Pronchery: readlinkat(2) return type is wrong.
2015-02-22 00:50:30 +00:00
joerg
9b5f3d5723
Move reallocarray under _OPENBSD_SOURCE where it belongs.
2015-02-17 20:33:40 +00:00
joerg
c9baa5968d
Introduce reallocarr(3) for easy (re)allocation of memory with overflow
...
checks. Compared to OpenBSD's reallocarray, makes it easier to avoid memory
leaks on allocation failures and it doesn't depend on malloc(0) != NULL
for correct error checking. Compared to plain realloc, it also avoids
the problem of intermediate integer overflows. The trade-off is the use
of void * to side step C type system with regard to generic pointer to
pointer.
2015-02-17 20:29:20 +00:00
christos
7f04eb91cf
add reallocarray
2015-02-05 16:05:46 +00:00
christos
829f81ac73
add popenve().
2015-01-20 17:29:00 +00:00
christos
0a09d1ccef
add estrto{i,u} (Kamil Rytarowski)
2015-01-18 18:10:01 +00:00
christos
f1e6017cdd
remove restrict to match with OpenBSD prototype (Kamil Rytarowski)
2015-01-18 17:56:09 +00:00
christos
5bdc27618e
Add strtonum protected with _OPENBSD_SOURCE
2015-01-16 18:40:16 +00:00
christos
eba37ae46b
strtoi and strtou additions
2015-01-16 18:35:59 +00:00
martin
dce8d6f504
fenv(3) support for hppa
2014-12-27 16:54:02 +00:00
pooka
a238844191
Create the stpncpy() inline only when GCC>=4.8 || clang
...
Mirrors the stpncpy() wrapper macro and avoids the following:
warning: implicit declaration of function ‘__builtin___stpncpy_chk’
2014-11-29 13:23:48 +00:00
christos
faef322439
add open_{,w}memstream
2014-10-13 00:47:03 +00:00
christos
3a0f0eb646
sync function signatures with tzcode
2014-10-07 21:50:36 +00:00
christos
718924c8d3
add execvpe, execlpe (reviewed by phone)
2014-09-26 19:28:03 +00:00
christos
e36fdb7ec1
add VIS_META/VIS_SHELL support to encode all shell metacharacters.
...
XXX: /etc/rc.d/wizd fix $
2014-09-26 01:21:07 +00:00
christos
155fdf3987
add strnstr from FreeBSD
2014-09-24 18:16:36 +00:00
matt
bf1be8599e
RISC-V support <fenv.h>
2014-09-19 17:39:15 +00:00
matt
65b2ebd6b2
or1k support <fenv.h>
2014-09-03 19:28:20 +00:00
matt
547b3a3b01
Changes to existing files to enable building AARCH64 userland.
...
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
christos
8e2b2a8fd3
cast to LHS type and minor KNF.
2014-08-07 17:24:03 +00:00
dholland
d0352e761c
Add userlevel manifestations of posix_fallocate and fdiscard, in
...
unistd.h and libc, and add a man page.
Allow wiggle room in the man page for implementations of fallocate
that either (a) don't fully unwind on failure, leaving new blocks
allocated without changing the file size, or (b) create only in-memory
transient reservations that disappear when crashing or rebooting.
Also, add crossreference to fdiscard from ftruncate(2), and remove the
old BUGS entry from there that called for a generalized version that
allows discarding ranges of a file: that's what fdiscard is.
2014-07-25 08:30:47 +00:00
christos
6030f04a15
amend the new destroy function to take function pointers.
2014-07-20 20:17:21 +00:00
christos
842ee049dd
Our hdestroy implementation was non-conformant because it freed the key of
...
each entry. Add a new function hdestroy1 that allows the user to control
what gets freed. Pointed out by Pedro Giffuni at FreeBSD.
2014-07-20 13:34:17 +00:00
christos
e00a3615cf
add mkostemp{s,} mkstemps from FreeBSD
2014-06-18 17:48:22 +00:00
christos
b27e135433
rename to 60
2014-06-12 18:49:37 +00:00
christos
1eb0dcbb1d
fix srandom and initstate signatures (from enh at google)
2014-06-12 18:44:36 +00:00
christos
af46c9781f
Always use the reentrant rpc_createerr. Otherwise every threaded program
...
that uses rpc needs to define _REENTRANT to work properly. We'll keep
compatibility but setting the old variable in the library, but we are not
advertising it anymore.
2014-06-06 14:31:24 +00:00
joerg
a8b7899cfa
Fix use of getline and friends in C++ code.
2014-05-23 16:48:52 +00:00
kleink
eead6b988e
Move declarations of getdelim() and getline() from the (incorrect) ANSI C
...
section to POSIX-2008. From Jarmo Jaakkola in PR standards/48788.
2014-05-19 16:04:10 +00:00
pooka
366b2dd23e
Apparently clang pretends to be gcc 4.2 but is secretly much awesomer
...
than gcc 4.2, so enable the stpncpy() wrapper also for clang.
2014-04-25 18:37:38 +00:00
pooka
232a041b7a
Wrap stpncpy() iff GNUC_PREREQ(4,8). Fixes USE_SSP=yes builds
...
with gcc 4.5.
2014-04-24 20:12:56 +00:00
christos
73447a65e4
add stpncpy()
2014-04-06 19:29:58 +00:00
christos
5570e6936a
__lwp_park60
2014-01-31 20:44:17 +00:00
christos
1102b348b0
Add the {v,}{warn,err}c function flavors from FreeBSD
2014-01-16 17:22:06 +00:00
christos
eabc0dd171
add ptsname_r
2014-01-08 02:15:42 +00:00
christos
a012ad3d35
PR/4891: Wiz: readlink moved from xopen to base at issue 5.
2014-01-02 23:33:50 +00:00
matt
a9c8f9282e
Make ptrdiff_t available in the kernel.
2013-12-12 17:53:03 +00:00
joerg
aceb213538
Allow kernel code to access constant databases by moving cdbr(3) and the
...
required mi_vector_hash(3) into src/common.
2013-12-11 01:24:08 +00:00
joerg
fcff7df126
Add cdbr_open_mem.
2013-12-05 21:17:23 +00:00
christos
115f51c7be
add new internal functions
2013-12-01 00:23:11 +00:00
christos
96c26aba65
use a TAILQ instead of a CIRCLEQ, from FreeBSD
2013-11-22 16:25:01 +00:00
degroote
0809f57592
Expose properly vfwscanf and friends for POSIX_SOURCE >= 200112L
2013-11-21 09:09:52 +00:00
christos
53e3f1af8a
gcc-4.8.1 is has a builtin stpncpy, but is missing the __builtin_ ssp
...
equivalent. go figure.
2013-11-07 02:00:54 +00:00
tron
fb23e6a8a9
Revert my last change. I'm not convinced it is correct and while it seems
...
to fix some build problems it might cause others.
2013-11-07 00:02:58 +00:00
tron
24f67c8710
Add missing declarations for SSP versions of stpcpy(3) and stpncpy(3).
2013-11-06 21:33:12 +00:00
christos
c15ffc1416
add stp{,n}cpy
2013-11-06 16:31:08 +00:00