millert
e079ac6af2
Make P_tmpdir point to /tmp/ not /var/tmp
Really, there should be a way to make configurable by the admin
at runtime (say, a gettmpdir() function).
25 years ago
millert
b98db3f883
Use an _BSD_FOO_T_ type declaration for off_t in machine/ansi.h to allow
off_t to be visible in stdio.h even in strict ansi mode. This is needed
for ftello()/fseeko() and it allows us to remove the horrible fpos_t hack.
25 years ago
millert
662058799b
Add fseeko() and ftello() -- versions of fseek() and ftell() that use off_t.
Also make fsetpos() and fgetpos() use fseeko() and ftello() respectively
since fpos_t is actually a 64bit type.
25 years ago
espie
f851e80d96
Be thorough about NULL as __null for C++.
25 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
millert
667296b173
Add __attribute__ for asprintf.
27 years ago
millert
309847b387
Implement asprintf(3) and vasprintf(3) functions similar to the
ones in the glibc. Some man pages changes from FreeBSD
(asprintf.c/vasprintf.c are not based on GNU or FreeBSD code).
27 years ago
tholo
0325b878d5
Do not enable putc() macro implementation if _POSIX_SOURCE is defined;
it is not fully compliant
28 years ago
deraadt
e9778e2d47
export non-constipated sys_errlist[] to userland
28 years ago
downsj
48a74a2466
Partially revert back to the old behaviour of declaring sys_errlist here.
sys/errno.h can declare it as well.
28 years ago
deraadt
9133d3ab3c
typo in __STRICT_ANSI__
28 years ago
tholo
cd5d45a618
Prefix "long long" with "/* LONGLONG */" to shut up lint(1)
29 years ago
deraadt
ac6c0282ed
from netbsd; move sys_nerr/sys_errlist decls to errno.h
29 years ago
deraadt
47b73ff83c
initial import of NetBSD tree
29 years ago