Commit Graph

934 Commits

Author SHA1 Message Date
kleink f518dc7e04 Sprinkle some restrict, repair a minor nit in iconv(3)'s synopsis. 2003-08-22 14:05:03 +00:00
agc 039cc95684 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22270, verified by myself.
2003-08-07 09:44:09 +00:00
salo 6ac55ad469 netbsd.org->NetBSD.org 2003-07-26 17:35:00 +00:00
mrg b1774706ae install stdbool.h if gcc3 2003-07-26 15:27:13 +00:00
itojun e63468d8cc split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
2003-07-23 08:01:24 +00:00
nathanw ddd6fd5414 Add setcancelstate stub. 2003-07-19 05:05:28 +00:00
nathanw 1c5f5912e9 Synchronize the featuretest set for pthreads stuff to
_POSIX_C_SOURCE >= 199506L, _XOPEN_SOURCE >= 500, or _NETBSD_SOURCE.
2003-07-18 17:54:35 +00:00
thorpej b65cdc9721 Back out previous; it is not correct. 2003-07-18 15:50:01 +00:00
lukem f46e3353de for now, pull in <pthread_types.h> to get pthread_t for the
pthread_kill() prototype to work ...

this is probably not the correct long term solution, but the tree is
currently broken without it...
2003-07-18 08:53:42 +00:00
nathanw 86b9f2f3b1 Now that sys/types.h defines pthread_t, the forward structure
declaration for pthread_st isn't necessary (and is why I missed that
it was necessary before, as I already had the sys/types.h change in my
local tree).
2003-07-17 23:04:43 +00:00
bjh21 e3167f6ca1 Change !_ANSI_SOURCE to _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE. 2003-07-17 22:39:43 +00:00
martin 791508af9b Use a forward declaration equivalent to pthread_t instead of the
(undefined here) pthread_t.
2003-07-17 09:01:54 +00:00
nathanw ffb042ea86 Give the pthread_kill() prototype here, as required. 2003-07-16 21:15:43 +00:00
nathanw c35f5dd38e Add the _POSIX_THREAD and _POSIX_TIMER mandated minimum limits. 2003-07-16 21:03:54 +00:00
kristerw a7c803af07 Remove variable names from prototypes. 2003-07-09 01:59:34 +00:00
itojun 04392e7f81 prototype must not have variable name 2003-07-08 05:39:23 +00:00
kristerw c1f62bbe29 Do not give names to the parameters in function prototypes (those names
reduces the usefulness of the gcc -Wshadow flag).
2003-07-08 01:43:28 +00:00
tshiozak b42cc81ee4 add definisions for ERA* and ALT_DIGITS. 2003-07-04 04:46:14 +00:00
skrll 3605f02195 Remove reference to dlinfo - it doesn't exist in NetBSD. 2003-07-01 15:02:01 +00:00
tshiozak 2fbaee419e change iconv_t definision : void * -> struct __tag_iconv_t *.
suggested by yamt.
2003-07-01 08:54:57 +00:00
kleink f77e77ff4b Remove whitespace accident in previous; spotted by Thomas Klausner. 2003-06-30 15:45:02 +00:00
kleink 5a44432bf1 Sprinkle some restrict. 2003-06-30 15:14:17 +00:00
tshiozak ff5c3e6895 Citrus iconv support(4)
add iconv external I/F (iconv.h - iconv_open()/iconv()/iconv_close()) and
iconv(1) utility.
TODO:
  - bump libc minor.
  - add iconv data files.
  - create manpages: iconv_open(3)/iconv(3)/iconv_close(3)/iconv(1)/
    mkesdb(1)/mkcsmapper(1).
2003-06-27 05:21:49 +00:00
tshiozak 04e58308a3 Citrus iconv support (1)
add core engine of Citrus iconv and some support routines.
  - iconv core (citrus_iconv)
  - coded character set mapper (csmapper)
  - encoding scheme database (esdb)
  - standard encoding scheme handler (stdenc)
  - basic character set manipulation utilities (bcs)
  - mmap based infrastructure (citrus_lookup/_mmap/_memstream/_db)
  - some source codes of new plugins (not built yet)
2003-06-25 09:51:26 +00:00
briggs 39d51ab631 Define the maximum segment size allowed under RFC 2348 (TFTP Blocksize Option)
Define the opcode for an option ACK and error code for a failed option
negotiation from RFC 2347 (TFTP Option Extension).
2003-06-11 01:41:14 +00:00
bjh21 ffa655f9a4 EBENISANIDIOT: Remove a spurious '#endif' that crept in under the radar. 2003-06-05 18:37:45 +00:00
bjh21 9656aaa598 P_tmpdir isn't in POSIX, so only define it for _XOPEN_SOURCE and
_NETBSD_SOURCE.
2003-06-05 17:51:10 +00:00
bjh21 37a103a1fa Namespace cleanup: _assert is in the application's namespace, and thus should
only be exposed if _NETBSD_SOURCE is defined.  To make life less complicated,
define _assert() in terms of assert(), since they always seem to have identical
definitions.

_assert() was removed back in 1993, but got reinstated with the 4.4Lite
import.  Maybe it should go again.  Nothing in the tree uses it.
2003-06-05 17:27:14 +00:00
christos 4e9f5413f5 Add RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT, from FreeBSD 2003-05-30 15:44:03 +00:00
christos 0cc4f4a69e add mutex locking and dirent_r. 2003-05-28 20:04:12 +00:00
thorpej 200111747f Add long double support. 2003-05-17 20:42:28 +00:00
lha 3ca42f1c25 regenerate files for heimdal 0.6 2003-05-15 22:58:02 +00:00
bjh21 d2fb15abf0 bcrypt_gensalt() isn't defined in any X/Open standard I've got convenient
access to, so move it into the _NETBSD_SOURCE section.
2003-05-05 14:49:31 +00:00
bjh21 86abe62ffa Header cleanup:
* IPv6 functions are in POSIX-2001, so make them visible there.
* freehostent(), getipnodebyaddr() and getipnodebyname() are _only_ in
  XNS5.2, so don't expose them to XSH6 or POSIX applications.
2003-05-05 14:20:03 +00:00
bjh21 77de1304d5 Fix the signatures of inet_addr(), inet_lnaof(), inet_makeaddr(), inet_netof(),
and inet_network() to match XNS and (where applicable) POSIX.  This is largely
just the replacement of unsigned long with in_addr_t.

This constitutes a small ABI change on sh5, but scw (sh5 portmaster) thinks
that both the users of that port will be able to cope.  kleink claims the
change is ABI-neutral on other LP64 ports, and it's a no-op on ILP32 ports.
Hence, I'm doing it this way and avoiding the whole __RENAME dance.
2003-05-05 13:56:13 +00:00
lukem 803e64c800 add _PATH_RANDOM and _PATH_URANDOM 2003-05-03 03:24:01 +00:00
bjh21 8758baf5b6 Fix things so that _NETBSD_SOURCE correctly exposes the dirfd() and
the insides of struct _dirdesc.  Also make the existence of struct
_dirdesc visible to POSIX applications since this is less ugly than
pretending that DIR is a void *.
2003-04-29 23:08:13 +00:00
bjh21 3a344e272f Header file cleanup:
* Sort includes.
* isblank() is in C99, POSIX 2001 and XSH6.  Update ifdefs accordingly.
2003-04-29 12:49:38 +00:00
bjh21 fac4f2f505 Header file cleanup:
* Don't include <sys/param.h>
* Assume that NetBSD is a BSD system and hence has <sys/types.h>
* inet_pton() and inet_ntop() were in XNS 5.2 (not 5.0) and POSIX 2001.
  Update #ifdefs accordingly.

XXX Types of inet_addr() and inet_makeaddr() are still wrong.
XXX Might want __restrict on inet_ntop() and inet_pton().
2003-04-29 11:58:15 +00:00
bjh21 4be7a2dcf3 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
2003-04-28 23:16:11 +00:00
ragge 5a10a8c4a9 Add _PATH_KSYMS. 2003-04-24 20:13:05 +00:00
christos 290d5e3632 don't use TRUE or FALSE 2003-04-19 01:40:36 +00:00
kleink 8c5e6bc1d8 Well, _The_ Open Group. 2003-04-14 08:38:24 +00:00
kleink c9e531d4d4 Use the real TOG specification name for references. 2003-04-14 08:37:29 +00:00
jdolecek e75e2e6438 seteuid() and setegid() were adopted in IEEE Std 1003.1-2001 + X/Open
portability guide issue 6, adjust headers to expose the function
prototypes with appropriate _POSIX_C_SOURCE/_XOPEN_SOURCE defines
fixes standards/21136 by MAEKAWA Masahide
2003-04-14 08:12:11 +00:00
christos 8099c8302c add functions to retrieve option values. 2003-04-11 17:36:57 +00:00
kleink 13dee93fb3 1003.1-2001 has introduced unsetenv() which differs from the current
implementation in not permitting a "name=value" argument.
* Add a conforming __unsetenv13() and do function renaming for
  unsetenv(); preserve old symbol with old behavior.
* Make visible setenv() and unsetenv() for 1003.1-2001 feature selection
  macros; resolves PR standards/20479.
2003-04-07 13:41:13 +00:00
fvdl 42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
jdolecek bd2847705c install mntopts.h 2003-03-22 12:45:51 +00:00
jdolecek 1edd42a9d2 move getmntopts(3) to libutil, build and install also it's manpage
bump libutil minor
adjust individual mount_*/Makefile to use libutil getmntopts(3)
2003-03-22 12:43:57 +00:00