miod
3b7303ff08
Remove neither documented nor found in any spec ctermid_r() function - ctermid()
is reentrant in its current implementation anyway.
Surfing on the recent major version bump, ok millert@ deraadt@
19 years ago
millert
605c5586ca
Adapt things to use __type_t instead of _BSD_TYPE_T_
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable
19 years ago
millert
5acf200b2a
First step in include files overhaul. Use __FOO_VISIBLE (as defined
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace
pollution issues, including the byte order defines. OK deraadt@
19 years ago
espie
4ed4e3058c
let vfscanf be a real function. Use a weak_alias on systems where this
is feasible.
Okay millert@
There's a major libc bump coming that is going to cover this as well...
19 years ago
espie
d5049a05a4
Change internals of FILE: reuse the unget buffer field to access an
extended attribute data structure (pimpl idiom). Idea taken from citrus.
Much discussion with deraadt@, otto@, millert@...
This is the least disruptive way to extend FILE, since its size can't really
change without this being a flag day. So the size doesn't change.
Actual additions to the structure will come in separate steps, since this
change is nasty enough on its own.
Tests by otto@ and others, careful reading of code by otto@ and millert@.
This is definitely a major bump, and has been checked to not impact a
full ports build.
19 years ago
marc
2092fd5de8
major bump to libc and libpthread to break the dependency of a
20 years ago
avsm
3f2bee58c7
add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@
21 years ago
avsm
b75b1238ee
backout the __bounded__ attributes for a while; requested by deraadt@
21 years ago
avsm
3ab653a0d9
Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok
21 years ago
millert
cc6797b16c
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
21 years ago
millert
e504a8f014
Back out __EOF stuff and just use -1 in ctype.h. This is OK since
we don't want any user defines to change how the inlined ctype
functions behave.
22 years ago
millert
a9949c0ab0
Don't define EOF In ctype.h, some 3rd party code checks whether or
not EOF is defined to determine if stdio.h has been included.
Instead, use __EOF which should be OK wrt namespace safety.
22 years ago
millert
9a61bb23a6
NULL is now 0L so it is the same size as a pointer.
OK mickey@ and discussed with deraadt@
22 years ago
millert
d0f45c1a97
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
23 years ago
millert
959b08f109
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
23 years ago
millert
b68c09e067
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
23 years ago
espie
2fa03e9b65
attribute(format) no longer implies nonnull...
ok millert@ miod@
23 years ago
fgsch
f4fcb18ea3
put changes back, this time ALL the files.
23 years ago
todd
f4d4a36efa
Back out fgsch@'s tree breaking commits.
Test next time, ok?
23 years ago
fgsch
7e1c9e7d4f
fix some const warnings
23 years ago
deraadt
fb625bc33f
use __x__ formats for __attribute__ arguments; guenther@gac.edu
24 years ago
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__
29 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