otto
bf7ad7afc9
delint; ok millert@ beck@
18 years ago
millert
2a8d0a4c1b
Convert do {} while loop -> while {} for clarity. No binary change
on most architectures. From Oliver Smith. OK deraadt@ and henning@
18 years ago
tedu
09917d2c4e
strtonum does not require limits.h
spotted by ray some time ago
18 years ago
otto
854f853894
Do not leave an hole in the directory list if allocation of the
region succeeds, but allocation a required page dir failed. This
can happen if we're really close to ulimit after allocation the
region of the size requested. See malloc_ulimit1 regress test.
Tested by many; thanks.
18 years ago
otto
f650f69733
delint; original from deraadt@ with fixes from tdeval@ and me;
tested by quite a few developers. ok deraadt@
18 years ago
espie
14b69ad0fc
fix badly broken code. okay millert@, deraadt@
18 years ago
todd
29ba9a7ac6
remove some rather deceptively unused lines; no change to generated MAKEDEV's
18 years ago
todd
c81d73893f
shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV
18 years ago
todd
57c7e54a33
sync
18 years ago
todd
e7190b9b1c
add 'com' serial port as a common ramdisk device
18 years ago
todd
ba7cddc6d6
add forgotten copyright; ok deraadt@
18 years ago
dhartmei
782bed6d79
move the commented example /var/mail/whitelist.txt to /var/db, so it
doesn't trigger security(8)'s ownership checks. ok bob@
18 years ago
otto
8d5338428b
POSIX says tdelete() returns the parent of the deleted node. Sadly the
root node doesn't have a parent, and POSIX does not say what should be
done in that case. Warn developers that different implementations
may do different things.
19 years ago
moritz
699dc2618d
When tdelete() is used to delete the root node, don't return a
pointer to the freed root node, but return a pointer to the new
root node. POSIX does not define, what should be returned in
that case.
Fixes Coverity CID 2528.
ok millert@ otto@
19 years ago
deraadt
71a91e8ae3
be more careful with atoi() result; ok otto
19 years ago
otto
e9112488f5
Use SIZE_MAX instead of SIZE_T_MAX, the latter is not POSIX and
remove redundant check on size. ok millert@ deraadt@
19 years ago
deraadt
d72bbf4be3
getting to the bottom of the issues. sprinkle a few casts that will
actually help us find bugs later (with lint, not cc), if they get
introduced
19 years ago
otto
f37b50710e
- Plug huge mem leak; mostly samba was suffering.
- Fix semantics: seekdir(pos); telldir() shoud return pos. The code
that implements this will be made faster in a later commit.
- We loose documented behaviour (after closedir() the telldir()
positions are not valid anymore). This was never in Posix, and most
other systems have nothing like it.
Diff originally from Paul Thorn, rewritten by me using some FreeBSD
code. "slap it in" deraadt@
19 years ago
deraadt
16ce0f1f4d
(char)to{upper,lower}()
19 years ago
deraadt
6ba7d08d6c
kvm_openfiles() should take int flag, not unsigned
19 years ago
deraadt
69800b44d4
after we changed mode_t to be an int, the devname() man page was
updated but the function itself never was; ok millert
19 years ago
deraadt
db4a02f55c
casts that cannot cause breakage in the future
19 years ago
deraadt
937e47b3dc
change internal login_protect() API to use mode_t like it should
19 years ago
deraadt
8cc19b605a
please lint (without making anything else worse)
19 years ago
grunk
8dbf7287b5
Xr to strtonum(3), because vice versa is already the case
ok jmc@ otto@
19 years ago
deraadt
4c62bbc5bb
sync
19 years ago
deraadt
70479ae385
now move /dev/tty0* to refer to the com(4) driver, away from the zs(4)
driver
19 years ago
reyk
5ff13d280b
add hostapd to rc/rc.conf glue
suggested and ok by kettenis@
19 years ago
deraadt
d60464207b
sync
19 years ago
deraadt
0d9f9860fe
do not make {cua,tty}[cd] here
19 years ago
deraadt
9af155dc4a
add entries for ttya/ttyb
19 years ago
deraadt
c287ab8b2f
ttya now is same as tty00 (for a few days)
19 years ago
deraadt
698d994481
make /dev/ttya be an alias for /dev/tty00.
we are making the move where ttya will become the zs devices, and tty00
will support com(4) devices. ok drahn
19 years ago
ray
eb202d0369
Add warning about malloc(num * size) and recommend calloc() instead,
or if malloc must be used suggest check.
Get rid of "one".
OK deraadt@ and jmc@, OK kjell@ to earlier version with "one"s.
19 years ago
mickey
b449cbee1d
kill evil \r; from cedric
19 years ago
hshoexer
d273fc0336
As the isakmpd fifo race is fixed, hook ipsecctl to rc.
ok naddy@ todd@
19 years ago
david
78a28203dd
Fix for PR 5043: shell startup scripts might contain binary characters but
grep should assume ASCII text, fixes umask detection
ok millert@ jaredy@
19 years ago
deraadt
464b15913c
no more need for the aperture
19 years ago
deraadt
9e6169f7a8
no more need for aperture
19 years ago
ray
9ee3d71486
Removes extraneous variables from getopt(3). Inspired by one of
David Hill's diffs.
ok otto
19 years ago
deraadt
d1fa905e69
sync
19 years ago
deraadt
c7396fb3c6
/dev/reload is an old amiga thing, how did it make it here?
19 years ago
deraadt
e1e93afe35
move wsconsctl up earlier, so that any key changes made can be used
to (for instance) interrupt dhclient with a ^C instead of a 'CAPS-LOCK C'
from e@molioner.dk checked by matthieu
19 years ago
otto
592916e5d3
Use the new -s flag to mount the /usr and /var partitions. Avoids
doubly mounted mfs partitions. Also, at the end of the mount dance,
try mount all partitions, not just nfs partitions. Handles a case
where local paritition mounted inside a nfs partition where not
mounted by rc (/usr on nfs with a local /usr/obj, for example).
ok deraadt@ henning@
19 years ago
reyk
1e272ad48c
some IAPP implementations still use the pre-standard port 2313 in broadcast
mode (tested with the HP ProCurve 420wl). add a note to the manual page and
the example configuration.
19 years ago
miod
7ad0ceba7b
vt100->vt220; spotted by nick@
19 years ago
jmc
b371ed9cfb
grammar tweaks; ok hshoexer
19 years ago
otto
790f0cc439
Avouid a race in atexit() handling by introducing a lock. Problem
originally reported by Gergely Kovacs; help from dhartmei@;
ok tedu@ millert@
19 years ago
stevesk
b020f35b9f
handle -1 return from host_dns(); ok henning@
19 years ago
millert
4f242fe2ea
We no longer install the SystemV compatibility links. OK pvalchev@
19 years ago