Commit Graph

1606 Commits

Author SHA1 Message Date
christos 1a175d5bd9 rename to regnsub 2016-01-14 21:45:18 +00:00
christos 3df8d6b91f add stravis 2016-01-14 20:42:14 +00:00
christos 4c892c323a add reg{,a}sub 2016-01-14 20:41:47 +00:00
christos eae3ba3928 fix inverted condition... 2015-12-29 01:58:26 +00:00
martin f8bb018f00 Add missing eol-escape 2015-12-28 11:03:36 +00:00
christos 9c19c47e2d We need at least 68010 or coldfire for fenv. 2015-12-27 19:50:31 +00:00
christos 176b7bf263 add m68k, default types. 2015-12-24 14:13:59 +00:00
christos 9700ed8d5c rearrange... 2015-12-24 04:16:00 +00:00
christos fc70f27d66 Add __HAVE_FENV 2015-12-22 14:24:55 +00:00
christos 8dd36ea983 Add fenv.h for mips 2015-12-21 16:49:53 +00:00
christos 57b499ef66 Powerpc now has fenv.h 2015-12-20 16:24:45 +00:00
christos 3a9f77c250 add some const 2015-11-20 20:37:08 +00:00
christos d432193098 keep value as an int. 2015-11-20 20:27:20 +00:00
christos a5c147c83f update to size_t 2015-11-20 20:24:49 +00:00
reinoud d6424c5393 Revert 2015-11-19 20:57:49 +00:00
reinoud b4f510032f Fix ANSI-C prototype error 2015-11-19 20:34:47 +00:00
christos fcc3c9564a PR/50434: Louis Guillaume: Bump the in and out formats to 511 (NAME_MAX) 2015-11-16 17:09:56 +00:00
christos 58d11ee7bb provide a poll(2) based interface. 2015-11-07 23:10:37 +00:00
christos 670a38d899 Put back NULL tests for allocation failures. 2015-11-07 16:58:24 +00:00
nros b16a5c9dec Add the C11 function aligned_alloc to libc. 2015-11-07 16:21:42 +00:00
christos cdf9ad9883 Switch to the size-unlimited fd_set. Some code will need to change to be
able to use this if the code allocates its own fd_set's.
2015-11-06 19:42:57 +00:00
christos fa13c0f43d - provide accessor functions for the fdset's used internally.
- add getreqset2 method that takes a setsize.
2015-11-06 19:35:40 +00:00
christos 1136c97c1c add tzgetgmtoff 2015-10-29 17:48:55 +00:00
christos 3762d08e86 add kinfo_getvmmap() decl 2015-09-24 14:39:37 +00:00
plunky 762a9b9c68 correct __ssp_overlap() to not trigger for adjacent areas 2015-09-03 20:43:47 +00:00
kamil 0c4bdb7434 Do as POSIX says, define the timespec structure in <signal.h>
Extract struct timespec from <sys/time.h> and put into a separate header.

This solution is minimally invasive.
2015-07-31 12:51:32 +00:00
christos 024ced04ed move stdbool.h to sys, reuire pool.h to include <sys/stdbool.h> for bool,
centralize definitions of bool, true, false, to <sys/stdbool.h>
2015-07-29 00:10:25 +00:00
kamil 2cf5f6af2b Add ereallocarr(3) to libutil
ereallocarr(3) wraps reallocarr(3) and embeds return status validation.

Older version reviewed by <riastradh> and <christos>
2015-07-26 02:20:30 +00:00
christos 4701a51d4b updatre with latest from tzcode. 2015-07-11 16:40:53 +00:00
joerg c7f24be614 Allow SSP enabled functions to conditionally skip the object size check.
Use this is fix the getcwd(NULL, lmit) case, which breaks in lang/parrot.
2015-06-25 18:41:03 +00:00
manu 841339f07f Make PTHREAD_KEYS_MAX dynamically adjustable
NetBSD's PTHREAD_KEYS_MAX is set to 256, which is low compared to
other systems like Linux (1024) or MacOS X (512). As a result some
setups tested on Linux will exhibit problems on NetBSD because of
pthread_keys usage beyond the limit. This happens for instance on
Apache with various module loaded, and in this case no particular
developper can be blamed for going beyond the limit, since several
modules from different sources contribute to the problem.

This patch makes the limit conigurable through the PTHREAD_KEYS_MAX
environement variable. If undefined, the default remains unchanged
(256). In any case, the value cannot be lowered below POSIX-mandated
_POSIX_THREAD_KEYS_MAX (128).

While there:
- use EXIT_FAILURE instead of 1 when calling err(3) in libpthread.
- Reset _POSIX_THREAD_KEYS_MAX to POSIX mandated 128, instead of 256.
2015-05-29 07:37:31 +00:00
christos a7328ae62a add VIS_NOLOCALE flag 2015-05-23 11:48:31 +00:00
christos adfc40c594 add a macro to check overlapping pointers 2015-05-09 15:41:47 +00:00
pgoyette 3e6c65d1e2 Add missing PATH_WATCHDOG (to complement PATH_SYSMON and PATH_POWER) 2015-05-06 23:06:26 +00:00
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