Commit Graph

91 Commits

Author SHA1 Message Date
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