niklas
f5ec9904aa
CBC bug reported by Juergen Nickelsen <ni@tellique.de>
25 years ago
aaron
6093b939d2
correct some Xr's which referred to the wrong man page sections
25 years ago
millert
322baa66fd
Break up into two loops, one for the copy, another to finish traversal
of the src string if len(src) >= size. Speeds up the common case a bit.
25 years ago
millert
32f2bc5502
m68k assembler version of strlcpy(3)
25 years ago
millert
6412bd34bc
simplified version that doesn't call strlen and that is simpler to convert to assembler (both for gcc and me)
25 years ago
wvdputte
b792344682
Fixup of formatting in the example source code
25 years ago
deraadt
52abdb63d2
use stdlib; millert
26 years ago
millert
34c85324ae
Clarify realloc return value
26 years ago
aaron
0921dacac0
typo; nash@mcs.net
26 years ago
brian
d4e74d83fc
Get the pid right if a stale lock file exists.
Submitted by: Lawrence D. Lopez <lopez@cisco.com>
26 years ago
pjanzen
2e427ad79b
fix more comma splices that involve misuse of conjunctive adverbs
26 years ago
pjanzen
d9e39666e6
fix comma splices involving 'however'
26 years ago
millert
4b89c3f774
add examples
26 years ago
millert
ada64a730a
typo
26 years ago
millert
7a5b2ea811
better examples section wrt strncpy()
26 years ago
deraadt
7f5df2724f
make function names the correct case
26 years ago
deraadt
d63c17e8c3
skipjack in libc; isakmpd and such will want it
26 years ago
d
1205763b91
wrong ret type for write define (millert@)
26 years ago
d
21a64850f5
malloc can't use write() if it fails very early, so use the unwrapped syscall _thread_sys_write() if we are threaded
26 years ago
millert
9fe2fbfc57
No need to cast to they type we already are. Also minor KNF
26 years ago
millert
151b095049
remove bogus divide, fixes pr #656
26 years ago
espie
e28e39375b
.Xr strlcat, strlcpy
26 years ago
deraadt
901a859ab9
bad long
26 years ago
d
31570910f0
Add thread-safety to libc, so that libc_r will build (on i386 at least).
All POSIX libc api now there (to P1003.1c/D10)
(more md stuff is needed for other libc/arch/*)
(setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO
26 years ago
aaron
8337cf556e
add MLINK for malloc.conf.5 man page, also add FILES section to malloc.3; fries@
26 years ago
deraadt
71c0d453e0
preserve errno; christos
26 years ago
espie
775006271f
Fix `typo', proves that strlcpy/strlcat is a very good idea.
26 years ago
espie
87a2f09149
getenv() result is read-only, unless you're looking for trouble.
26 years ago
wvdputte
1ad600adae
add missing const to match prototype in string.h
26 years ago
janjaap
d7dbb5b7be
Make RMD160Update a little less overzealous when fed small crumbs.
26 years ago
aaron
4eb6929f93
More man page fixes. Particularly fix uses of it's/its, affect/effect,
then/than and such. Other miscellaneous problems fixed across these source
files.
26 years ago
aaron
ffc6ab53d2
More man page fixes. Spelling, grammar, some typos. Lots of double-word
occurrences squashed as well.
26 years ago
niklas
908656e734
Fix UA cases in a MI way
26 years ago
mickey
a2141fd380
define hppa as an ieee
26 years ago
deraadt
d8b311de10
doc UA faulting code
26 years ago
deraadt
661c1a8e61
for new functions, fix BE & UA cases. LE UA case is still busted
26 years ago
pjanzen
4049e8158f
commas
26 years ago
deraadt
88d3e4de8e
document the common misuse of realloc
26 years ago
niklas
09df05bd48
Make code ANSI/ISO C conformant. Formerly undefined constructs were used
making load/store architectures (like mips&alpha) fail whn compiled with
gcc -O2.
26 years ago
niklas
775584f322
Temporary fix for a GCC aliasing bug/misfeature that hits here
26 years ago
provos
9124668bb4
add ECB and CBC encryption for octet streams
26 years ago
provos
b39d3aea3c
fix base64 encoding, this problem was reported by
Solar Designer <solar@false.com> some time ago.
26 years ago
millert
68f9effca8
Don't enumerate every arch in the #if since all OpenBSD platforms use the same values for malloc_pageshift and malloc_minsize except for sparc
26 years ago
millert
d854eef346
Use UID_MAX, not UINT_MAX. Rename remove_trailing_space() to trim_whitespace() since it trims from both ends, not just the rear.
26 years ago
provos
8de558a493
s/u8/u_int8_t/, s/u32/u_int32_t, put castsb.h into cast.c and include
header files from the correct path.
26 years ago
provos
f4846928f6
Add CAST encryption, implementation by Steve Reid <sreid@sea-to-sky.net>.
Man pages will come soon, I hope.
26 years ago
deraadt
106cbde93f
change to lite2 getenv(); getenv(NULL) now returns NULL
26 years ago
millert
761acbad30
ftpd: sleep for an indeterminate amount for non-existant logins
to simulate a crypt, like login does.
Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.
26 years ago
millert
8ca0d38fd9
Prevent luser from zero'ing out ut_host. If the new ut_line is
empty but the old one is not and ut_line and ut_name match, preserve
the old ut_line. Fixes PR #516
26 years ago
millert
a200d1ca9a
strlxx() return size_t not char *
26 years ago