Commit Graph

1633 Commits

Author SHA1 Message Date
christos
618262a97a use foo - 0 instead of testing for defined(foo); from joerg@ 2016-03-20 16:26:06 +00:00
christos
c07b0c6505 PR/50983: David Shao: Protect stddef;
also make the pointer void *.
2016-03-20 14:11:49 +00:00
christos
143f5307f7 disable dso protected for clang now, so that packages can be built.
(again this is the binutils warning about copy relocations on protected objects)
2016-03-17 17:36:32 +00:00
christos
8aeecea358 more casting fixes 2016-03-17 02:25:32 +00:00
christos
ede51e408c gcc 5, my patience is waning. 2016-03-17 00:42:49 +00:00
christos
66e7b2616e appease gcc-5 |= #$@#% 2016-03-17 00:15:27 +00:00
mrg
b298dc9162 add max_align_t. C11 defines this and GCC 5.3 really wants it.
XXX: language laywers, please feel free to fix this as necessary.
2016-03-17 00:03:38 +00:00
leot
2a4b16ea45 strndup() is part of XSI from The Open Group Base Specification Issue 7 and had
a similar history of stpcpy(), stpncpy() and strnlen().
Make it visible under XOPEN_SOURCE>=700 too (not just _NETBSD_SOURCE).

ok dholland@
2016-03-10 18:53:48 +00:00
christos
53a91c7008 - GC pts_fired, and fix the comment about MAX_TIMERS
- Bump MAX_TIMERS to 36 so that we have 32 POSIX user timers which is the
  minimum required.
2016-03-08 05:02:55 +00:00
christos
25f8e5a66f undo protected symbol hack. 2016-03-08 03:58:31 +00:00
christos
68cdf08b32 We only have 28 timers available. 2016-02-26 17:10:23 +00:00
christos
5641580370 Add relatime. 2016-02-21 22:45:25 +00:00
christos
8bdedb49af disable dso protected to work around binutils bug 2016-01-29 15:18:33 +00:00
dholland
b030061971 Needs sys/select.h for fd_set; fails only when _POSIX_SOURCE is defined,
because then something else doesn't include it. (I guess.)
2016-01-23 02:36:57 +00:00
dholland
89050ca13e unsigned -> unsigned int in previous change to accomodate C++ boneheadedness. 2016-01-23 02:34:09 +00:00
dholland
398f572480 Apparently a recent round of vandalism by the C++ standards committee
includes disallowing the standard and historic type name "unsigned". Add
a gratuitous "int" to recent changes.

C++ is really a blight on the world.
2016-01-23 01:26:14 +00:00
dholland
29f79e71d2 u_int -> unsigned, u_long -> unsigned long, etc. 2016-01-23 01:05:30 +00:00
dholland
e7633a3426 Needs sys/cdefs.h for __BEGIN_DECLS. Also add time.h to get time_t,
rather than doing the machine/ansi.h #ifdef dance, as it doesn't matter
much what symbols utmp.h exposes. This could be tightened later when we
manage to do enough include cleanup to make such dances less expensive
to maintain.
2016-01-22 23:59:44 +00:00
dholland
b43a55ad4d Uses BEGIN_DECLS and needs sys/cdefs.h. 2016-01-22 23:23:13 +00:00
dholland
e94e0027be Include <rpc/rpc.h> so XDR is defined. 2016-01-22 23:22:56 +00:00
dholland
ff993d476d Needs sys/types.h for mode_t, off_t, ssize_t, and others. 2016-01-22 23:15:58 +00:00
dholland
d151926dfa Needs stdint.h. 2016-01-22 23:15:42 +00:00
dholland
8724a4945a Erm, fix previous.
(also, as this protocol is externally defined it probably should use its
own constant and not either of these system-defined hostname lengths...)
2016-01-22 23:13:20 +00:00
dholland
a8c9c98e22 These all need stdint.h.
Also, dumprestore.h needs ufs/ufs/dinode.h; in talkd.h use unsigned
char instead of u_char; and in timed.h include limits.h and use
_POSIX_HOST_NAME_MAX instead of MAXHOSTNAMELEN as the latter would
require sys/param.h.
2016-01-22 23:11:50 +00:00
dholland
33adcbb57f Needs stddef.h for size_t. 2016-01-22 22:27:01 +00:00
dholland
433257163a Has __BEGIN_DECLS, needs sys/types.h. 2016-01-22 22:26:45 +00:00
dholland
888c134026 u_char, u_int, u_long -> unsigned char, unsigned, unsigned long
This makes these headers work without _NETBSD_SOURCE.
2016-01-22 21:55:57 +00:00
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