dsl
5f1a9bea9e
Lint is differentially far too picky...
...
Remove some warnings that only appear on i386 (not on amd64) and that
for some reason best known to others are deemed fatal for i386.
Making this code 'pass lint' does absolutely nothing for its readability (etc).
2009-10-25 17:09:34 +00:00
mlelstv
7aea3a0d0a
import tzcode2009k
2009-10-25 16:20:16 +00:00
christos
3b0d9a876a
don't read hostaliases using unbuffered reads. there is no security benefit.
2009-10-24 21:37:57 +00:00
christos
9d8aeaab57
simplify the example; only register the set of events to watch once since
...
it does not change. Also print that ATTR means changing times too.
2009-10-24 17:49:58 +00:00
christos
e942b6ecb2
expose res_check.
2009-10-24 17:24:01 +00:00
mlelstv
df0cec4903
With 64bit time_t years can be negative and lapyear computation
...
requires rounding down. This avoids an infinite loop in localtime().
2009-10-24 17:01:04 +00:00
dsl
0b807be843
Remove a load of pointless casts - one that even lint doesn't bleat about.
2009-10-24 15:20:15 +00:00
dsl
695bc79994
Check for EOF before erroring fgets() with length <= 0.
...
If length is invalid, set errno = EINVAL and __SERR as well returning NULL.
Should let me close PR/41992.
2009-10-24 14:50:48 +00:00
christos
249296c41c
Add a knote to keep track when resolv.conf gets changed and re-initialize.
...
While here fix a memory leak when calling res_vinit with an already inited
res_state.
2009-10-24 05:35:37 +00:00
bouyer
e0f9b22254
Remove closes 3 and 4 from my copyright.
2009-10-22 21:50:01 +00:00
snj
799a191e36
Pull in revisions 1.24 and 1.25 from upstream, which change this file's
...
license to ISC-style.
2009-10-22 01:38:18 +00:00
skrll
43f47d3c56
G/C bcopy.m4 and references to it.
2009-10-21 19:30:46 +00:00
snj
550147bd6a
Remove 3rd and 4th clauses in christos' license. OK christos.
2009-10-21 01:07:44 +00:00
jnemeth
1cadc32cd7
First pass at a manpage for modctl(2) (hi ad!).
2009-10-20 04:41:28 +00:00
joerg
be403b3398
Fix header to include. From Kristaps Dzonsons.
2009-10-19 22:38:56 +00:00
christos
236714187a
PR/42201: NAKAJIMA Yoshihiro: fts(3): broken compatibility
...
As new field types were added, we did not provide overrides for older compat
versions. This restores compatibility.
2009-10-19 17:52:01 +00:00
dsl
40f437887d
Reverse previous, committed by mistake.
2009-10-15 06:19:35 +00:00
roy
5f96926957
Handle errors from getdelim better.
2009-10-15 00:36:24 +00:00
dsl
01a0f8ea84
Change a while () {} into a do {} while() so that fgets(buf, 1, file)
...
detects EOF on an empty file.
Fixes most of PR/41992
2009-10-14 21:25:52 +00:00
roy
6e80fcc98f
Store the allocated buffer against FILE, plugging a memory leak.
...
Fixes PR bin/42183.
2009-10-14 20:54:51 +00:00
joerg
178d0fc825
Do not nest displays, use lists instead. Discussed with wiz.
...
Fix markup.
2009-10-14 17:24:03 +00:00
joerg
6fc39b6fcb
No .Pp inside .Rs/.Re.
2009-10-13 21:39:55 +00:00
pooka
50efcfca57
When converting the locking path of mutex+counter to a real recursive
...
mutex, it's a good idea to convert the unlock path too so that the
recursive mutex gets released as many times as it was locked.
Fixes pthread + cxa deadlock.
2009-10-08 16:33:45 +00:00
tnozaki
6c81c0d804
fix lib/42124: setlocale(3) never returns NULL with none existing locale.
...
reported by kambe-san, thanks!
2009-10-04 21:05:18 +00:00
phx
c9394f466a
SystemV-R4 ABI for M68k returns pointers in %a0, so we have to make sure
...
that CERROR returns -1 in %a0 in addition to %d0 and %d1, to make functions
like mmap(2), mremap(2), shmat(2) or sbrk(2) return -1 in case of an error.
A side effect of this bug was a segfault caused by jemalloc, when mmap()
failed.
2009-10-03 22:28:33 +00:00
wiz
3dee657aa5
Revert a -> an changes: Adding an 'n' follows pronunciation, not writing.
2009-10-02 07:41:08 +00:00
wiz
b9f34d69ea
Bump date for new allocaddrinfo.
2009-10-02 06:59:37 +00:00
cegger
45db136e91
fix grammar: a -> an
2009-10-02 06:49:23 +00:00
tsarna
1f4f234ea9
Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
...
Discussed on tech-net.
2009-10-02 02:45:28 +00:00
elad
6780ec6543
CTLFLAG_READONLY[12] are long gone.
2009-09-26 04:43:48 +00:00
pooka
4c1e54d82b
Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
...
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
2009-09-24 21:21:33 +00:00
roy
86eafd3e05
__getdelim works on strings up to SIZE_MAX - 2 and returns 0 on EOF.
...
getdelim works on strings up to SSIZE_MAX and returns -1 on EOF.
__fgetstr is now just a wrapper around __getdelim and ensures that
the buffer doesn't overflow the one provided by FILE.
__slbexpand is now static in fgetwln as it is the only consumer of that func.
2009-09-24 20:38:53 +00:00
dsl
602976fff6
Ansify functions and remove __P/
2009-09-05 08:53:06 +00:00
dholland
9af4cd75f3
Add parentheses around a misleading string constant concatenation,
...
from (my own, very old) PR 36064.
2009-09-05 06:44:27 +00:00
apb
a9dda51fb1
Add cross references to new boothowto(9) man page.
2009-09-04 23:29:02 +00:00
wiz
9e5519cfe8
Make HTML-ready.
2009-09-01 22:12:05 +00:00
elad
8fbf70d4eb
Add useful example program from
...
http://mail-index.netbsd.org/tech-kern/2009/09/01/msg006020.html
2009-09-01 22:01:48 +00:00
wiz
0e46e32aae
Note some restrictions for getdelim arguments noted by joerg.
...
Bump date.
2009-08-25 16:28:26 +00:00
dsl
11bcd8ad6a
The 'table' of character weights is allowed to be NULL.
...
The SETUP define sorts it out (in the slowest and nastiest possible way!)
Broken by rev 1.12 almost 10 years ago!
2009-08-21 20:49:50 +00:00
he
6218a6dafa
Introduce a new accessor macro N_NAME() to access the n_name field
...
in struct nlist, since it's accessed differently depending on
whether we do a.out or not. Use this macro as appropriate in the
nlist* functions.
Also replace some includes of <a.out.h> with <nlist.h>, to fix build
problem for mips.
2009-08-21 08:42:02 +00:00
martin
bc27f3e093
forward declare struct nlist before including nlist_private.h to avoid a
...
compiler warning.
2009-08-20 11:08:59 +00:00
he
4cf9cdf39a
Actually, when we really need the a.out defines from <nlist.h>, we
...
need to include <a.out.h> anyway. Move it inside #ifdef NLIST_AOUT.
2009-08-20 10:19:36 +00:00
he
3a05737d04
Instead of including <a.out.h> to get at "struct nlist" (with a comment
...
to explain it), include <nlist.h> instead, so that our mips ports don't
error out in the absence of aout_machdep.h.
2009-08-20 08:30:04 +00:00
joerg
8a6f35af57
Fix markup.
2009-08-19 15:43:02 +00:00
christos
f227975929
Version fts one more time! This is the most versioned API ever... Bump
...
fts_level from short to int to avoid a potential DoS.
From Maksymilian Arciemowicz
2009-08-16 19:33:38 +00:00
matt
3308ff5cbf
Only include <sys/exec_aout.h> if NLIST_AOUT is defined.
...
Don't define NLIST_AOUT for mips anymore.
2009-08-16 03:56:26 +00:00
seanb
612dfc4de9
Watch getservbyport_r() semantics. sv needs scope
...
while results are being looked at which in turn
are no longer valid after a endservent_r().
2009-08-12 20:24:30 +00:00
dsl
a245205b96
Change NO_SRCS lines to specify .S in order to exclude the .c file from
...
SRCS but add it to LSRCS (sort of makes sense!).
2009-08-11 17:30:43 +00:00
dsl
05e1772663
Change (slightly) the way NO_SRCS is processed, update big comment!
...
Now the .c file is removed from SRCS for both .S and .c in NO_SRSC.
The .c file is added to LSRCS for .S files in NO_SRCS.
(.S files in SRCS have the same treatment - but also get compiled.)
Allows vax build to be fixed.
Also the previous version failed to add to LSRCS correctly.
2009-08-11 17:29:04 +00:00
dsl
4ef3fc9143
Add text to the description saying that normal applications should not
...
use syscall().
Add text to bugs saying that high bits of the syscall number may be masked.
Fixes bug PR/11088
2009-08-07 19:34:46 +00:00