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
millert
4486ccbac9
add .Xr's for all the random functions in libc
26 years ago
millert
ed7da885dd
add strlcpy/strlcat, safe and sensible string copy/append
26 years ago
rahnds
7db5e7f5e2
Oh fun, mucking about with files used on all archs.
This is one of many places in the source that have
#if defined("list all architectures")
Is there some possible way to eliminate, reduce these or at least
have a file that describes all occurrances so that when a new port is
done this could be addressed. like the recent hppa port, does it need to
take a look at this????
26 years ago
millert
b242cec8db
add missing endusershell()
26 years ago
millert
03d98b5707
Remove the advertising clause in my old license, it impedes free use
of the code as a large number of similar clauses makes it impossible
to write an ad for a product using the code...
26 years ago
mickey
ac3befb712
use Bx macro for BSD versions
26 years ago
brian
c965a1f473
Cast pid_t to int for sprintf.
Pointed out by: Charlie Sorsby <crs@hgo.net>
26 years ago
brian
6c131f03f8
Add uu_lock_txfr() for donating locks to another process.
Reviewed by: Theo
26 years ago
janjaap
97cd732f2f
nbytes - ofs should never be less than 0 (Oops on me)
26 years ago
deraadt
c8784aa4f8
readlink(path, buf, sizeof buf-1). Never forget that -1.
26 years ago
deraadt
46be3c6c79
indent nice
27 years ago
deraadt
17d9ef2688
s/NULL/NUL/
27 years ago