christos
146343edd5
add ssp code and bump.
2006-11-08 20:58:23 +00:00
christos
dc0c2709da
Add libssp.
2006-11-08 20:52:39 +00:00
drochner
97ffbcd858
cleanup unused stuff after hmac_* removal
2006-11-08 20:37:14 +00:00
drochner
ac9d7f2faf
-check for a NULL uc_link before calling setcontext(2); do a real exit(3)
...
instead with exit handlers and all that
-If setcontext(2) returns (which it shouldn't), do an _exit(-1) rather
than relying on a sensible return value to use as exit code. Makes
it less likely that an ucontext corruption goes unnoticed.
2006-11-08 20:28:03 +00:00
christos
f499cd524a
Add a BSD-licensed re-implementation of the gcc-4.1 libssp.
...
This adds bounds checking for the following functions:
memset, fgets, gets, memcpy, memmove, memset, snprintf, sprintf, strcat,
strcpy, strncat, strncpy, vsnprintf, vsprintf
This functionality is enabled by compiling with:
gcc -I/usr/include/ssp -D_FORTIFY_SOURCE=<1|2> -lssp
Eventually gcc will provide -ffortify-source or something to automate this
[we hope :-)]
2006-11-08 19:52:11 +00:00
pooka
010234739c
* support FAF (Fire-And-Forget) class operations
...
* adapt to new lookup
2006-11-07 22:10:53 +00:00
christos
b442c7cdd1
weak for syslog_ss
2006-11-05 04:35:35 +00:00
christos
67657e2f66
fix typo.
2006-11-03 23:16:12 +00:00
christos
c349a0b22c
nuke useless perror
2006-11-03 20:24:41 +00:00
christos
1d83cc5b6c
nuke perror.
2006-11-03 20:21:16 +00:00
christos
95c7627c87
use FD_CLOEXEC instead of 1.
2006-11-03 20:18:49 +00:00
christos
96b4176078
do the namespace protection properly; fixes the lint-library.
2006-11-03 20:16:28 +00:00
christos
f594ba0d61
protect the *syslog_ss
2006-11-03 20:16:04 +00:00
christos
4ed3eb7f90
init the syslog data.
2006-11-03 18:55:40 +00:00
christos
e76ecd93c1
use the re-entrant syslog functions so that we don't depend on the syslog
...
settings of the calling program.
2006-11-03 18:04:20 +00:00
christos
105f63f965
don't include syslog.h if you are not going to use it.
2006-11-03 18:03:23 +00:00
christos
1083e07a50
- verify that the log file is usable, otherwise re-open it.
...
- if the file is re-opened, clear the connected flag.
- don't check that the file is opened before connecting, because the
file will be opened then.
2006-11-02 20:36:29 +00:00
pooka
2261925b3f
last change to file.h modified struct magic: bump major
2006-10-31 21:53:17 +00:00
pooka
ee36ba9a5e
new magic entry types - bump minor
2006-10-31 21:33:16 +00:00
pooka
a13aa097ce
rebuild
2006-10-31 21:29:23 +00:00
cbiere
4b14bb6309
Changed error message of ENOPROTOOPT to "Protocol option not available".
2006-10-31 00:38:06 +00:00
mjf
b8fbc57a69
Add references to other filehandle man pages.
...
OK'd martin@
2006-10-30 18:53:42 +00:00
christos
f45c81bb89
set n properly so that we can terminate.
2006-10-30 05:10:40 +00:00
christos
9984f7540a
fix name in weak alias.
2006-10-29 16:22:17 +00:00
christos
29741647a2
add {v,}snprintf_ss
2006-10-28 23:20:57 +00:00
wiz
bb93eb1630
Remove trailing whitespace. Use .Bl -enum for an enumeration.
2006-10-28 22:50:16 +00:00
agc
7fa420acd5
catch up with new location for rmd160.h header file
2006-10-28 15:35:28 +00:00
christos
78921a0243
Initialize decimal_point.
2006-10-28 15:02:02 +00:00
christos
f71e448c3b
initialize floating_point as needed.
2006-10-28 14:38:55 +00:00
agc
08c311c029
More cleanup after sha2.h and rmd160.h moved house
2006-10-28 13:05:42 +00:00
christos
5c60f22be5
need to negate before masking; from abp.
2006-10-27 21:36:50 +00:00
christos
a3fadcee99
this moved to common/lib/libc/hash
2006-10-27 21:24:35 +00:00
christos
d15d9f8a71
add async-signal-safe versions: syslog_ss and vsyslog_ss
...
multithread-safe syslog_r and vsyslog_r are not async-signal-safe.
2006-10-27 20:00:55 +00:00
christos
abca035cf3
Add signal-safe versions of snprintf and vsnprintf
2006-10-27 19:59:58 +00:00
drochner
65b9988ba4
gently add some "const", and avoid some casts
...
compiles with WARNS=4 now (on i386 and alpha)
2006-10-27 19:39:11 +00:00
drochner
50ea67a5eb
As discussed back in June, remove hmac_sha1 and hmac_md5 from libc, to
...
reduce bloat and namespace trouble. (both were never public; hmac_sha1
is moved to libcrypt now because it is used locally there)
2006-10-27 18:29:21 +00:00
drochner
d16ceb033e
As discussed back in June, move the implementation of hmac_sha1 here
...
because this is not a public function and crypt-sha1.c is the only
place where it is used (It must have been that way formerly, because
there was a stale prototype in crypt.h all the time.)
Being here, do some RCSID and prototype cleanup, and add as much "const"
as needed to compile these files with WARNS=3.
2006-10-27 18:22:56 +00:00
tnozaki
1a00f7afa4
don't pass through surrogate character(0xD800 - 0xDFFF).
2006-10-27 14:13:55 +00:00
uwe
575dae7120
Add prop_dictionary_all_keys.3 link (hi, potr).
2006-10-27 01:29:37 +00:00
uwe
b0f3335e9a
Add syslog_r.3 link (hi christos).
2006-10-27 01:24:26 +00:00
pooka
1fc270ecf0
pass rdev for specfs support
2006-10-26 22:53:01 +00:00
thorpej
1aea07a325
Add prop_array_t support to prop_kern.
2006-10-26 18:51:21 +00:00
wiz
d8f71c6e09
Various fixes.
2006-10-26 13:08:17 +00:00
wiz
89d6e88da7
Bump date for previous.
2006-10-26 12:56:11 +00:00
christos
64c9721228
don't use strerror_r in the re-entrant case.
2006-10-26 10:00:38 +00:00
thorpej
26d4f90430
- Add prop_dictionary_all_keys(). Takes a snapshot of a dictionary's
...
keys and returns them in an array. This effectively allows a caller
to mutate a dictionary while iterating over it (really, you iterate
over the array of keys instead of the dictionary itself).
- Add a slew of utility functions that make it more convenient (in some
circumstances, anyway) to get/set values in a dictionary.
2006-10-26 05:02:12 +00:00
christos
77f9f63fa2
add _r functions for syslog from OpenBSD
2006-10-25 23:49:31 +00:00
uwe
87cd2874b2
G/c check() macro, b/c it's used only twice and the off < 0 test is
...
useless in the first case (off is 0), and causes error with new gcc
(comparison of unsigned expression < 0 is always false) in the
second.
While here fix a typo in a comment and use less indent to make BAD and
BADUNMAP definitions fit 80 columns.
XXX: The second check should probably be more elaborate to protect
against bogus/malicious COFF files.
2006-10-25 20:43:49 +00:00
pooka
bda8cd7266
handle PUFFS_VN_INACTIVE
2006-10-25 18:15:50 +00:00
mlelstv
999ac788ac
don't segfault on NULL pointer if number of rounds is
...
not specified in passwd.conf.
2006-10-24 22:49:19 +00:00