Commit Graph

4697 Commits

Author SHA1 Message Date
soren
819df08c48 stat(2) can return ENXIO. 2002-08-02 08:08:26 +00:00
itojun
73811081f9 correct use of strlcpy (really need to enforce length, so use memcpy) 2002-08-02 08:02:36 +00:00
itojun
463bfdcd98 use strlcpy where appropriate 2002-08-02 07:50:35 +00:00
tshiozak
19debadf5c fix a bug of setlocale when changing locales with LC_ALL for the first
argunemt and with a string containing many slashes for the second argument.
This bug may cause setlocale() to destroy static datas.

If a setuid program calls this function as 'setlocale(LC_ALL, "");',
this might be vulnerable, although there are few programs having such
vulnerability.  This bug probably affects every versions of NetBSD,
including 1.4, 1.5 and 1.6.

XXX: This part of setlocale is unseemly, thus we had better rewrite it in
the future.
2002-08-02 07:12:51 +00:00
nathanw
b18986f532 #include <string.h> for prototypes of strlen and strcpy. 2002-08-01 23:46:37 +00:00
itojun
cf0cafaa38 correct range check. from openbsd 2002-08-01 05:22:43 +00:00
jdolecek
06a4a82134 restore the previous form of the condition checking malloc() return value, which
was changed in previous revision
2002-07-31 12:57:36 +00:00
itojun
891518d386 allow calloc(0, x) and calloc(x, 0). sync w/openbsd 2002-07-31 09:26:49 +00:00
soren
a6eb4c51f7 Make pmap_set(3) prototype match reality.
Fixes PR lib/6064.
2002-07-31 01:46:02 +00:00
darrenr
5d8479d5bd patch from openbsd to fix bounds checking, eliminating an overflow condition. 2002-07-30 14:57:31 +00:00
itojun
c68c6aa7e0 die if integer overflow. from openbsd 2002-07-30 09:45:02 +00:00
matt
1cddd41e0c Convert to use register prefixes. (0 -> %r0, etc.) 2002-07-30 06:07:56 +00:00
itojun
0c0bf329c4 query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152. 2002-07-29 10:01:58 +00:00
christos
f04f8bc949 add utmpname() 2002-07-28 21:45:39 +00:00
christos
f084e3ca9b make this behave like utmp, ie. return all entries and setutent() rewinds. 2002-07-28 20:46:43 +00:00
christos
a2e4cf52ec use the fname we passed in. 2002-07-28 00:45:11 +00:00
christos
7908c76c97 Add utmp processing functions 2002-07-27 23:57:39 +00:00
christos
fef92308ac add lastlogx implementation. 2002-07-27 19:38:29 +00:00
christos
d1ccf94413 reset fp when we are done with it. 2002-07-27 15:44:45 +00:00
simonb
e438da348e Sprinkle some KNF. 2002-07-23 00:03:36 +00:00
christos
ce8a71a179 make this compile with -DREDEBUG again. 2002-07-22 12:56:17 +00:00
mjl
a32f58ffa9 Correct wrong comparison in example. 2002-07-21 19:04:03 +00:00
yamt
62d438e597 reflect current value of MAXSYMLINKS. from FreeBSD. 2002-07-20 17:56:28 +00:00
yamt
b12240e0dd don't test PIC here. 2002-07-20 08:54:04 +00:00
yamt
e8f5276e42 for _I18N_DYNAMIC, use CSHLIBFLAGS instead of CPICFLAGS. 2002-07-20 08:51:32 +00:00
wiz
18c66da5b7 Two typos. 2002-07-18 10:41:17 +00:00
jdolecek
65822e1b55 Remove sa_sigaction member of struct sigaction, accidentaly added here
in rev. 1.26.
Problem pointed out by Antti Kantee.
2002-07-15 07:48:57 +00:00
fvdl
d97eddb8d3 Remove fs and gs kludge. 2002-07-14 12:29:59 +00:00
scw
2675306718 Add IEEE FP mode control functions and definitions for SH5. 2002-07-12 12:20:24 +00:00
scw
4c8e482124 Add SH5 support. (Missed these during the last sweep of my local tree) 2002-07-11 21:46:21 +00:00
thorpej
ad4531774a Need <machine/psl.h> and <machine/signal.h>. Problem pointed out
by Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>.
2002-07-11 17:47:11 +00:00
scw
11c9d0366e Fix a tryping error. 2002-07-11 17:41:40 +00:00
scw
8c43a4afe4 Userland side of SH5 signals/setjmp. 2002-07-11 14:23:04 +00:00
wiz
0b7a1dde4c Use Fn instead of Xr to ourselves in one place. 2002-07-10 23:37:19 +00:00
wiz
f2dd6f768a Remove Xr to ourselves from SEE ALSO. 2002-07-10 23:37:03 +00:00
wiz
1d92e86fd4 Remove Xrefs to ourselves in SEE ALSO. 2002-07-10 23:31:32 +00:00
wiz
d3bfd7c06d Drop trailing space. 2002-07-10 23:31:07 +00:00
wiz
95238a678f Sort SEE ALSO. 2002-07-10 23:30:48 +00:00
wiz
d0cb86c2c8 Markup improvement. 2002-07-10 22:24:32 +00:00
yamt
38b935dc19 add CAVEATS. 2002-07-10 14:46:10 +00:00
yamt
673cbedc13 import CAVEATS sections from OpenBSD.
with little tweak by me.
2002-07-10 14:37:12 +00:00
scw
1a4432c02e It helps to use the right register for the return value. 2002-07-10 13:21:56 +00:00
scw
eb817bdf5a Add some missing FP support code. 2002-07-10 13:09:04 +00:00
scw
2ff17a3936 Ditch the leading underscores for bswap*() 2002-07-10 12:42:28 +00:00
scw
5754eadb38 Compensate for an over-pedantic assembler. 2002-07-10 11:45:51 +00:00
scw
c7810bb6a8 Fixed a botched blink insn. 2002-07-10 11:43:16 +00:00
scw
9f405d4e5c Don't include <machine/endian.h> in asm source. 2002-07-10 11:29:32 +00:00
scw
2ecd583666 Fix register number botch. 2002-07-10 11:05:19 +00:00
scw
15107aacfc Remove whitespace from WEAK_ALIAS macro invocation. 2002-07-10 11:02:24 +00:00
scw
0c3e5a70d1 Use C versions of string functions for now. 2002-07-10 09:12:21 +00:00