Commit Graph

146 Commits

Author SHA1 Message Date
itojun
1ecc9b581c use internal names for randomid() 2003-09-13 21:27:43 +00:00
nathanw
2b293cab66 Adapt definition of FLOCKFILE()/FUNLOCKFILE() to new __flockfile_internal()
routines.
2003-07-18 21:51:22 +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
christos
fa46624bca add readdir_r alias 2003-05-28 20:22:55 +00:00
thorpej
5a467fa72d Add isinfl() and isnanl(). 2003-05-17 20:43:13 +00:00
nathanw
4fb740b8de Implement pthread_atfork() (in libc, because the required threadlib
stub behavior is exactly the same as the usual behavior).
2003-02-13 02:50:48 +00:00
thorpej
96bb0ae126 Use <threadlib.h>. 2003-01-19 19:25:05 +00:00
thorpej
3fdac2b8c5 Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
lukem
b1e79510cf - Migrate fparseln(3) from libutil to libc, where it should have been in
the first place...
- Bump libutil major (to 7.0) and libc minor (to 12.91).
2002-11-30 03:04:44 +00:00
lukem
6ca5b5bb68 add strsuftoll(3) and strsuftollx(3) - parse a string for a number
with an optional suffix, product (two numbers separated by `x'), and
provide range checking
2002-11-29 12:58:14 +00:00
fvdl
86dddb97cd Add rpc_control. 2002-11-08 00:13:29 +00:00
thorpej
522edd584e Add prototype for __sigaction_sigtramp(). This system call is used
only by libc internally, and thus does not need to be exported in
any other header file.
2002-07-09 23:35:49 +00:00
kleink
937479fc3b Need internal names for strlcat() and strlcpy(). 2002-04-17 16:23:08 +00:00
lukem
463cd54319 - Implement pwcache_userdb(3), which changes the routines that
user_from_uid(3) and uid_from_user(3) use to lookup user information.
- Implement pwcache_groupdb(3), which changes the routines that
  group_from_gid(3) and gid_from_group(3) use to lookup group information.
- Ensure that private functions in pwcache.c are declared static
- Use strlcpy(3) instead of strncpy(3)
2002-01-24 02:46:32 +00:00
thorpej
ac8c1c29e9 * Add WSYSCALL() to SYS.h, which creates a system call with an
internal name and a weak alias for the name.
* Add a WEAKASM syscall list, and process it.
* Make sysarch() have an internal name (_sysarch()).
2002-01-14 00:55:55 +00:00
thorpej
5d3e829423 Add internal names for fp{get,set}{mask,round,sticky}(), and
externally-visible weak aliases for the internal names.
2002-01-13 21:45:39 +00:00
aymeric
e795aa7818 move adjtime and clock_settime where they belong, now that they are C functions.
Apart from being TRT, this makes a.out builds work again.
2001-09-19 21:38:21 +00:00
manu
54c0ce6119 Added support to use the clockctl driver if present for adjtime(),
clock_settime(), ntp_adjtime() and settimeofday(). The super-user still
always use the plain system call.
Approved by Christos
2001-09-16 07:41:56 +00:00
kleink
15318b7678 Internally rename sysconf() to __sysconf() to make its latter name suitable
for use from public headers.  Also, do so on all platforms.
2001-05-07 17:25:57 +00:00
kleink
fe3c9ceaf7 * Move definitions of exact-width integer types from <machine/types.h>
to <sys/types.h> and <sys/stdint.h>.
* Add a new C99 <stdint.h> header, which provides integer types of
  explicit width, related limits and integer constant macros.
* Extend <inttypes.h> to provide <stdint.h> definitions and format
  macros for printf() and scanf().
* Add C99 strtoimax() and strtoumax() functions.
* Use the latter within scanf().
* Add C99 %j, %t and %z printf()/scanf() conversions for
  intmax_t, pointer-type and size_t arguments.
2001-04-28 15:41:28 +00:00
kleink
3432ed7203 Need an internal name for asprintf(3). 2001-04-13 14:18:09 +00:00
kleink
f6a1b39cc5 Finally deprecate the old timezone() interface in favor of an XSH5
timezone/daytime pair; as proposed by J.T. in September, 1996.
Fixes PR standards/11807 by Nick Hudson.
2001-03-31 18:58:41 +00:00
atatat
3ddb3899a3 Add md2 routines to libc. 2001-03-19 04:13:16 +00:00
cgd
2497c0a8d3 define getprogname to _getprogname for internal use 2001-02-19 22:11:40 +00:00
briggs
d00ebb12e9 Add {__,}fmtcheck(), a function specified by Bill Sommerfeld to check
a user-supplied format string against a fallback format string to ensure
that they will consume arguments of the same type.

libc minor bump for new API entry point.
2000-10-20 18:46:05 +00:00
kleink
82fd76bb06 Need an internal name for pipe(2). 2000-09-28 08:38:53 +00:00
kleink
dae360611f XCU5: Add fseeko() and ftello() functions which provide the functionality of
fseek() and ftell(), respectively, but operate on file offsets of type off_t.
2000-07-08 13:46:33 +00:00
kleink
6a431c53e5 Lexicographically sort in previous. 2000-07-05 12:03:50 +00:00
ad
90517b417b Pull in RIPEMD-160 functions from OpenBSD - this has the same API as our MD4,
MD5 and SHA1 stuff.
2000-07-05 11:44:01 +00:00
kleink
b8a4d7adf9 Need an internal name for fork(). 2000-06-26 06:32:54 +00:00
kleink
03f996bd0c Add internal names for brk() and sbrk(). 2000-06-23 15:40:36 +00:00
fvdl
7df0ccbadc Add new RPC code, based on Sun's TI-RPC code. Adapted to not use XTI,
but sockets instead, internally. Old, backward compatible interfaces
maintained.
2000-06-02 23:11:05 +00:00
kleink
cd628af723 Need an internal name for send(); noticed by itojun. 2000-05-08 13:38:44 +00:00
itojun
92db021bdc use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
backend and are more robust against SIOCGIFCONF alignment issue.
now getifaddrs always takes care of the issue.  (sync with kame tree)
use weak symbol just in case.
2000-04-24 10:24:46 +00:00
itojun
c6bf4b09bd supply weak alias for IPv6-related library additions. sorry to be late. 2000-04-24 09:27:30 +00:00
christos
a86a7b415a protect getopt_long. 2000-04-02 21:27:14 +00:00
minoura
78b105698a Move dl* function definitions to libc on ELF.
Based on the patch supplied by Takuya Shiozaki <tshiozak@astec.co.jp>.
See http://mail-index.netbsd.org/tech-userlevel/2000/02/23/0000.html.
2000-04-02 15:35:47 +00:00
kleink
31f60ab101 No longer need internal names for strtoq() and strtouq(). 2000-03-08 20:17:19 +00:00
kleink
e4d7c2e329 Add ISO C99 long long integer general utility interfaces; partially addresses
PR standards/9482.
2000-03-06 18:32:22 +00:00
mycroft
1c86155f3b Ditto for nlist(). 2000-01-23 01:35:49 +00:00
mycroft
fb345096b7 Don't do the namespace hack for timezone() here; it causes lint, and we don't
need it anyway.
2000-01-22 21:43:15 +00:00
thorpej
0bbf216692 Implement XDR routines for 64-bit integer data types:
- xdr_int64_t(), xdr_u_int64_t(), per NetBSD convention.
- xdr_hyper(), xdr_u_hyper(), xdr_longlong_t(), xdr_u_longlong_t(), a'la
  Solaris, implemented in terms of the above.
1999-12-01 18:34:21 +00:00
wennmach
7b7d5b8b06 Added #defines for svis, strsvis, strsvisx 1999-11-25 16:54:15 +00:00
kleink
749057fddc Need internal names for these, too. 1999-09-20 15:07:21 +00:00
kleink
252971afdb Add indirect reference stubs for inet_[ap]ton() for environments not supporting
weak aliases; addresses PR lib/7435 but leaves the original file intact.
1999-09-15 14:21:01 +00:00
mycroft
ceae8b05d6 getsubopt(3) has a weak alias. 1999-08-17 05:20:23 +00:00
sommerfe
bb8c6c869a move __getcwd prototypes to libc-private header file.
XXX duplicate the prototype in getcwd regression test (which needs to
call the syscall directly for reasonably complete testing).
1999-03-26 22:23:57 +00:00
kleink
55cb8b09ce Functionally back out namespace.h revision 1.7 and perror.c revision 1.15;
perror() is an identifier reserved by ANSI/ISO C, and in case of a redefition
the behavior is undefined.
1999-03-09 13:14:36 +00:00
kleink
e2b924d2ae Add l64a_r(), a reentrant version of l64a(); found in the Multithreading
Extension of SVID4.
1999-02-06 15:04:05 +00:00
explorer
b131132411 add sha1 functions, like md5/4 1999-02-04 05:08:58 +00:00
lukem
9a137f1f22 namespace protect hesiod stuff 1999-01-25 00:13:28 +00:00
lukem
1cc0315b28 protect nsdispatch. sort entries 1999-01-20 11:48:49 +00:00
kleink
6348b7d5b5 * On architectures using ELF, and conditionally on those in transition, rename
_ASM_LABEL(cerror) and _ASM_LABEL(curbrk) to _C_LABEL(__cerror) and
_C_LABEL(__curbrk) (or their respective architecture-specific equivalents) to
avoid possible name clashes with identifiers used in user applications.
* Do the same for minbrk on all architectures to avoid a GCC-specific (and
on ELF architectures effectively useless) symbol reference renaming in MI code.
1999-01-14 22:48:18 +00:00
thorpej
50611666b1 Need an internal name for the (new) sys_nsig. 1998-11-30 20:43:06 +00:00
christos
f8dfd806d0 in the __str{error,signal} functions make the third argument size_t since
it is really a size. This does not affect the external interface, so there
should be no reason to bump the libc #
1998-11-15 17:21:08 +00:00
kleink
1070537dd5 Need internal names for MD[45]{Init,Final,Update}(). 1998-10-20 17:04:45 +00:00
kleink
3e8c90f694 Replace use of getdtablesize() with (the non-deprecated) sysconf(), hence no
need for an internal name for the former any more; suggested by Matthew Green.
1998-10-18 13:56:21 +00:00
kleink
bedf769000 getsubopt() isn't used internally. 1998-10-16 20:35:20 +00:00
kleink
571ab7ae88 Need an internal name for herror(). 1998-10-16 20:26:02 +00:00
kleink
d898f65fdd Need an internal name for tzname. 1998-10-16 12:56:44 +00:00
kleink
796b7ae4bf Need an internal name for signal(). 1998-10-16 12:47:45 +00:00
kleink
73ef151b8c Need an internal name for fgetln(). 1998-10-16 12:39:54 +00:00
kleink
b0decd2b79 Need an internal name for dn_expand(). 1998-10-15 09:28:13 +00:00
kleink
7a85778bf7 Need internal names for {end,set}hostent(). 1998-10-14 19:41:03 +00:00
kleink
886f927ec6 Need internal names for res_init(), res_mkquery(), res_query() and res_search(). 1998-10-14 19:13:01 +00:00
kleink
dc86984b00 Need internal names for ftruncate(), lseek(), mmap(), pread() and pwrite(). 1998-10-14 11:25:18 +00:00
kleink
0d8a0f5d93 Need an internal name for inet_aton(). 1998-10-13 21:03:31 +00:00
kleink
b1683a098a Need internal names for gethostby{addr,name}(). 1998-10-13 20:54:02 +00:00
kleink
a01bbaa113 Need an internal name for getdomainname(). 1998-10-13 20:40:29 +00:00
kleink
24a514c54c Need an internal name for strsep(). 1998-10-13 20:32:09 +00:00
kleink
352f441050 Need an internal name for strdup(). 1998-10-13 20:27:55 +00:00
kleink
f5092a6c94 Need an internal name for isatty(). 1998-10-13 15:05:02 +00:00
kleink
d541ca6d80 Need internal names for isinf() and isnan(). 1998-10-13 14:43:36 +00:00
kleink
ee1afe8b7c Need internal names for snprintf() and vsnprintf(). 1998-10-13 14:19:21 +00:00
kleink
8b3da7b7a8 Need an internal name for fdopen(). 1998-10-13 14:07:04 +00:00
kleink
329b130573 Add an internal name for getdtablesize(), since it's being used internally. 1998-10-08 13:49:16 +00:00
kleink
9d2eb0ba97 Add missing renaming of tcgetsid(). 1998-09-27 18:14:14 +00:00
kleink
0e34636229 Add an internal name for strtok_r(). 1998-09-27 17:57:49 +00:00
kleink
4048e12f31 Add wrappers around mutex and rwlock run-time initialization. 1998-09-14 11:03:05 +00:00
kleink
a0006ac87d Add asctime_r(), ctime_r(), gmtime_r() and localtime_r(). 1998-09-10 16:02:59 +00:00
mycroft
f1f53ef7e8 Add an internal name for perror(3). 1998-07-28 12:22:31 +00:00
mycroft
7e67c1c500 Delint. 1998-07-27 13:44:25 +00:00
mycroft
4024f73640 const poisoning. 1998-07-26 13:34:18 +00:00
jtc
499d79dfdc Add support for multiple reader-single writer locks which will be used
in stdio.  Although there is no POSIX.1 lock of this type, XPG 4.2 has
specified one that is suitable for our purposes and that we'll have to
implement anyway.
1998-01-22 08:20:05 +00:00
jtc
c157b15a65 Add FLOCKFILE() and FUNLOCKFILE() macro definitions to be used in
making stdio thread-safe.
1998-01-19 07:29:11 +00:00
jtc
3f4892e0d9 Header file which describes mechanism that will be used by libc for
thread safety of library internals.
1998-01-16 10:15:08 +00:00
kleink
916831ec4e Add lockf(), an alternate interface to perform advisory record locking;
per XPG4.2.
1997-12-20 20:23:15 +00:00
kleink
8bfc0cef1e Add basename() and dirname(), from XPG4.2. 1997-11-02 16:48:25 +00:00
christos
446ebe5c2c Remove _tztab() declaration now that timezone() migrated to libcompat. 1997-10-16 23:08:21 +00:00
mrg
74f573d85d remove advertising clause from all my licenses. 1997-10-10 05:39:47 +00:00
jtc
b5f2501072 Put TNF copyright on this file 1997-07-21 14:17:52 +00:00
jtc
43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
christos
00406df87c Add prototype declarations 1997-07-13 20:28:49 +00:00
mrg
5a1ec9814a allow rcmd() to use something other than rsh protocol. 1997-05-26 14:18:29 +00:00
cgd
1c44409a29 clean up Id 1995-02-27 13:02:12 +00:00
jtc
2deb4892f4 Initial set of ANSI clean namespace mappings. 1995-02-09 04:49:01 +00:00