millert
36cc33b104
Move TTY_NAME_MAX and LOGIN_NAME_MAX to sys/syslimits.h
Use correct values for _POSIX_TTY_NAME_MAX and _POSIX_LOGIN_NAME_MAX
Define MAXLOGNAME in terms of LOGIN_NAME_MAX
OK krw@
19 years ago
jaredy
97f9fddf57
zap unused ohash_lookup_string declaration; ok espie
19 years ago
millert
0b9be39dbf
Split off the non-kernel visible portion of sys/errno.h into a
separate errno.h. sys/errno.h now only contains errno values (which
is included byerrno.h). OK deraadt@
19 years ago
millert
32254634b7
Do not declare errno as extern int, set it via __errno().
19 years ago
millert
c22fbf6967
Get rid of non-OpenBSD bits and use _BYTE_ORDER not BYTE_ORDER
OK deraadt@
19 years ago
millert
16cfa5f58b
This piece was missed in the _FOO_SOURCE -> __FOO_VISIBLE change set.
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
deraadt
03f02251d6
undelete died a while back; millert ok
19 years ago
millert
0d9298523d
Move contents of sys/select.h to sys/selinfo.h in preparation for a
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.
19 years ago
millert
059ddb430d
brk() and sbrk() should use void *, not char *. Note that sbrk()
should take intptr_t, not int, but we don't presently have intptr_t
available from unistd.h. OK marco@
19 years ago
otto
212079cfe2
Introduce a few c99 functions: {l,ll}{rint,round}{,f}. From NetBSD via
jason@. Man page fixes by jmc@, prodding by jsg@. ok mickey@
19 years ago
espie
a63f72f6bc
CODESET support. okay millert@, otto@
(not really useful for now, it mostly helps some programs which want
to use it, it will become useful when we have full 16 bits locale).
19 years ago
deraadt
42e82ce8d7
use xargs -r0 for our build process
19 years ago
millert
910fc384eb
Add VIS_GLOB to escape special characters used by shell-style globbing.
From Solar Designer based on changes in FreeBSD. OK deraadt@
19 years ago
espie
894a3cd7e9
activate LC_CTYPE for 8 bits locale.
Make sure tolower/toupper use the whole 8 bits.
okay deraadt@
thanks to everyone who tested
19 years ago
grange
fbe8b6b13e
Install netbt/ includes.
ok henning@
19 years ago
espie
14a721a9a3
Add a few missing functions so that wctype.h/wchar.h are more or less
uptodate, namely, wcsto(u)l(l) family, wcstod, stubs from wctrans/towctrans
crank minor.
okay millert@, jmc@.
19 years ago
espie
d0f50b55ef
zap duplicate prototype
19 years ago
millert
62151f2edd
Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@
19 years ago
henning
f26dc19c5e
don't install netns includes any longer, ports bulk build test by pval
19 years ago
espie
a428b44e26
next citrus step.
19 years ago
millert
5234066725
bye bye whiteouts
19 years ago
millert
9e06ca5a4b
Make gethostbyaddr() prototype match POSIX. This means len is now
unsigned but there is no ABI change. OK deraadt@
19 years ago
henning
2cd28b2ffd
-netccitt/
19 years ago
millert
fc526f74a1
mktemp(3) et al. go in stdlib.h, not unistd.h. While there be more
explicit about mktemp(3) in the man page.
19 years ago
espie
8d57f68af7
wchar_t is a native C++ type, gcc picks its definition from elsewhere,
so do not redefine it.
Found out by the quite picky fixinc in recent gcc.
okay millert@, kettenis@
19 years ago
espie
175c6c79dd
major abi changes:
* introduce the mbstate_t typedef.
impacts gnu libiconv, which has already been taken care of.
* Prepare for mb stuff to really exist, replace macro MB_CUR_MAX with
an external variable __mb_cur_max (impacts libX11 and various ports).
* use mbstate in all the mb <-> wchar functions with state.
* add a stub iswctype function allowing some ports to compile.
bash and gdiff are missing wcscoll, and need to be told there's no i18n
until this is fixed.
Discussed and matthieu, otto, millert, kettenis, deraadt.
Major libc bump
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
espie
18a3d3bb7c
isw* classification functions from citrus, with a `stub' implementation
for the default locale.
comments, tests, okay: kettenis@, otto@, jmc@
functions addition -> Minor bump.
There's a large bump coming in a separate commit.
19 years ago
espie
cfce6166ab
also use new libobjc on old architectures, since it builds fine with
gcc 2.95.
tests and okay miod@, marc@.
19 years ago
millert
da1224ce71
rm libcurses++
19 years ago
espie
5e8683629a
introduce some wchar functions (from citrus and an itojun@ diff)
okay deraadt@, cloder@, pvalchev@
thanks to everyone who commented on that.
19 years ago
millert
f88828f0f2
Add /bin/ksh to builtin list of OK shells.
20 years ago
deraadt
3f1febb4bc
strcasestr(3), a case-insensitive version of strstr(3). already in netbsd
and freebsd, apparently written by torek, the man we never see anymore;
submitted by jcs, but he is not around right now for the libc major crank
so i sneak it in for him
20 years ago
tedu
e548ff89cc
make the resolver stat resolv.conf and update if it changes.
useful feedback and ok deraadt@
20 years ago
millert
cab5b7c7b6
LOGIN_SETALL did not include LOGIN_SETENV as it should.
20 years ago
krw
31239d2ae1
Oops. Too much 'KNF'. We don't use NULL_xdrproc_t, but someone might
use it in a vararg function call that needs the type info.
Pointed out by otto@.
20 years ago
krw
1a5cb9c63f
Bit of KNF - replace (<type> *)0 and (<type> *)NULL with NULL. Pointed
out by mickey@, seconded by millert@.
ok deraadt@.
20 years ago
espie
7c6b5a2ee7
provide float_t, double_t, FLT_EVAL_METHOD (dummy C99 constructs)
okay millert@
20 years ago
millert
dd19e1590f
gai_strerror() should return const char *; OK deraadt@
20 years ago
itojun
dd055c936c
remove NI_WITHSCOPEID
20 years ago
millert
0e9fb296b0
Change return value of reentrant getproto* and getserv* to match the
IBM/Digital API.
20 years ago
fgsch
75f0fbfc04
install net80211 headers; millert and deraadt ok.
20 years ago
otto
86189206cf
implement strnunvis(3), a bounded version of strunvis(3). ok millert@
20 years ago
millert
402f3b0bb4
Reentrant versions of getprotoent(3) and getservent(3). Adapted from
changes in NetBSD by Christos. OK otto@
20 years ago
kettenis
7094ff0c68
Add dl_iterate_phdr() support.
ok drahn@, millert@
20 years ago
millert
84588639d1
GLOB_NOESCAPE is POSIX so move it out of the #ifndef _POSIX_SOURCE block.
20 years ago
espie
ed5989fb23
let stdbool.h work with recent gcc, since they modified the interface,
again...
okay millert@ a while back, needed some more paranoid testing from my
part...
20 years ago
deraadt
a51e10d144
KVM_NO_FILES is 0x80000000, so arg 4 of kvm_openfiles() must be unsigned
int instead of int; millert ok
20 years ago