guenther
2ca690c613
Change scandir()'s 'select' argument from
int (*)(struct dirent *)
to
int (*)(const struct dirent *)
to match POSIX.
ok millert@, ports check by naddy@
12 years ago
jasper
13010fa527
regen
12 years ago
ajacoutot
d3b80c706a
rc_restart() does not exists. What the 'restart' action does is to run
'stop' then 'start'; so to prevent this daemon from restarting itself,
rc_stop=NO is enough.
ok robert@
12 years ago
ajacoutot
047a8c0157
Remove useless test: rc_rm_runfile() uses rm -f which always returns 0
so we don't care if the file is present or not; also this function
should never return a failure.
ok halex@
12 years ago
ajacoutot
9b53ec7347
Don't output "$action is not supported" when running an rc.d(8) script
from /etc/rc(8). This prevents the warning to be displayed at shutdown
time when the script has rc_stop=NO.
req. and input from fgsch@
"go ahead" schwarze@
input from an ok halex@, ok robert@
12 years ago
ajacoutot
1ff56ff423
Remove pointless local declaration.
ok halex@
12 years ago
jsing
e4f9596649
Ensure that the base provided to strtol(3) is between 2 and 36 inclusive,
or the special value of 0.
ok deraadt@ otto@
12 years ago
ajacoutot
0b8cf7f43d
Revert previous; there are more things to consider.
12 years ago
ajacoutot
6505f95e1c
Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.
The local_rcconf variable is not used anywhere anymore so drop it.
suggested by deraadt@
ok sthen@
12 years ago
krw
6a2bde7908
imsg_get() returns ssize_t, not size_t.
12 years ago
halex
fcf6db6614
make scan_scaled set errno to EINVAL rather than ERANGE if it encounters
an invalid multiplier, like the man page says it should
"looks sensible" deraadt@, ok ian@
12 years ago
ajacoutot
df8fd41267
Don't check if ${local_rcconf} is defined before sourcing rc.conf but do
it unconditionally.
The only place local_rcconf could have been defined is from /etc/rc
sourcing rc.conf but then the variable is not exported so it will never
be seen by rc.subr.
ok robert@
12 years ago
guenther
b4d2adfe76
Per POSIX, fix raise() and abort() to send the signal to the current thread.
Should make coredumps from abort() easier to debug too.
ok kurt@
12 years ago
jasper
3808831b76
Run chown/chgrp iff the preceding mknod call worked; thus if if there's
actually something to chown/chgrp.
ok todd@
12 years ago
kettenis
e096f85a8c
Start ldomd(8).
12 years ago
kettenis
ab982706df
Script for ldomd(8).
ok dcoppa@, deraadt@
12 years ago
kettenis
81462eb158
regen
12 years ago
kettenis
5e89862ef2
Add /dev/ldom[0-3].
12 years ago
djm
83081452a3
Add a new malloc option 'U' => "Free unmap" that does the guarding/
unmapping of freed allocations without disabling chunk randomisation
like the "Freeguard" ('F') option does. Make security 'S' option
use 'U' and not 'F'.
Rationale: guarding with no chunk randomisation is great for debugging
use-after-free, but chunk randomisation offers better defence against
"heap feng shui" style attacks that depend on carefully constructing a
particular heap layout so we should leave this enabled when requesting
security options.
12 years ago
deraadt
883b0119da
OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert
12 years ago
ajacoutot
f0ab8d12de
sort to be consistent with the other rc scripts: rc_** actions come after
the pexp.
12 years ago
halex
962e8b9dcd
disable reload since SIGHUP kills smtpd
ok chl@ gilles@
12 years ago
jmc
532680836e
struct buf -> ibuf; from Sunil Nimmagadda
12 years ago
kettenis
4ad9b25b4f
regen
12 years ago
kettenis
db33405b73
Add /dev/hvctl and /dev/spds.
12 years ago
deraadt
90044a7e80
use the les specific "checksums"; Rob Pierce
12 years ago
dcoppa
01e103d48c
Forgot to add _iscsid to mail/aliases
Pointed out by ajacoutot@
12 years ago
dcoppa
52139c77e8
Add the _iscsid user, required by iscsid
OK claudio@
12 years ago
gilles
cd01db31b9
- replace "all" with "any"
- add examples for how to accept mail from external source and for a
specific domain
12 years ago
shadchin
a930916bde
Update for xkeyboard-config 2.7.
12 years ago
dtucker
0c4e2219dd
Add targets for the 6k and 8k bit moduli components
12 years ago
guenther
930b578553
More compliance fixes: hiding non-standard stuff behind __BSD_VISIBLE,
making files stand-alone, some __restrict additions.
tweaks kettenis@; ports testing and fixes landry@ and jasper@
ok millert@
12 years ago
jmc
7d2f083b01
last stage of rfc changes, using consistent Rs/Re blocks, and moving the
references into a STANDARDS section;
12 years ago
jmc
2c27302534
last stage of rfc changes, using consistent Rs/Re blocks, and moving the
references into a STANDARDS section;
12 years ago
brad
d6092fe99a
Explicitly annotate setjmp() and longjmp() (and friends) as
__returns_twice and __dead instead of depending on GCC's special
handling of these function names.
With input from kettenis@ and guenther@
Fixes a warning from clang
ok matthew@
12 years ago
jeremy
803376ceaa
Make setenv(3) consistent with unsetenv(3), giving EINVAL if passed
an empty name, NULL pointer, or a name containing an '=' character.
OK millert@, guenther@
12 years ago
espie
c723e438d4
uint32_t is the integer type defined in stdint.h
u_int32_t is historical BSD stuff.
fix to match the manpage, namely #include <stdint.h> as a prerequisite.
okay millert@
12 years ago
matthieu
c3e3b3e12d
Remove /usr/X11R6/lib/X11/config/
12 years ago
yasuoka
71d3e06461
Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.
ok claudio deraadt henning mcbride
12 years ago
patrick
bb4b345cc6
Allow ntpd.conf to assign a stratum to a sensor with the syntax stratum <level>.
OK markus@ henning@ phessler@ jmc@
12 years ago
henning
824638f799
clarify which process writes out stats upong SIGINFO reception.
pointed out by Frank Brodbeck <fab at guug.de>, actual change with & ok jmc
12 years ago
reyk
89bfa21db3
Add SNMPv3 USM example (commented out)
12 years ago
jmc
4834096ac0
remove some wacky Xo/Xc;
12 years ago
miod
da46ccb0c3
remove tahoe-specific makefile machinery, no such hardware is known to be
in working condition anymore (assuming there would be interest in running on
it).
12 years ago
martynas
1954aa198d
Document that strtod functions accept INF, NAN, NAN(). From Michal Mazurek.
12 years ago
guenther
9101d17c76
Improve POSIX/SUS compliance of <netdb.h>, <sys/socket.h>, and <sys/un.h>.
Much ports testing of various versions by naddy@ and jasper@
ok matthew@, miller@
12 years ago
deraadt
9dace0b0af
specify the bounds of the dst to strlcat (both values were static and
equal, but it is more correct)
from Michal Mazurek
12 years ago
pirofti
336a8ca4d4
Fix precedence bug (& has lower precedence than !=).
Okay otto@.
Found by Michal Mazurek <akfaew at jasminek dot net>, thanks!
12 years ago
ajacoutot
307aa3046d
Simplify the way we call the rc.d(8) script in "restart".
ok sthen@
12 years ago
deraadt
a34b303b63
we need a fakeramdisk, like on sparc64
12 years ago