Commit Graph

133 Commits

Author SHA1 Message Date
christos 14f3214d1a the sha2 functions have an _. 2005-09-26 02:12:24 +00:00
elad da7e4f7332 Fix weak aliasing after recent changes.
Inspired by comments from christos@, xtraeme@, mlelstv@, mhitch@, mrg@,
and uwe@; all the bugs are mine.
2005-09-25 22:20:59 +00:00
christos cc85a7cfd9 add getenv_r and ttyname_r 2005-09-25 20:08:01 +00:00
veego 14464ad9fd Last change to namespace.h had an wrong entry: in6addr_nodelocal_allrouters
instead of in6addr_linklocal_allrouters.
Bump the shared library minor version.

Thanks to Klaus Klein for the hint what went wrong.
2005-08-07 20:32:58 +00:00
christos 99e58e3f96 add missing in6addr_linklocal_allrouters. 2005-08-07 16:00:01 +00:00
christos 86741d79ab - Fix the remaining indr_references so that they define lint symbols.
- Add an internal symbol for strerror_r (thanks klaus for noticing)
- Remove internal __strerror
2005-07-30 15:21:20 +00:00
christos e99183b649 Add comments at the end of #endif's; Requested by Havard Eidnes. 2005-07-17 16:07:36 +00:00
christos 55b453fa3c don't play #define games with lint. Breaks pass2. 2005-07-16 17:12:36 +00:00
yamt 176be94d27 add fgetwln. 2005-05-15 13:09:13 +00:00
christos fad5d2cf7a statvfs is both a function name and a struct tag. Defining it to _statvfs
causes lint to complain because it sees both struct statvfs and struct
_statvfs. Fix by changing the macro to have arguments.
XXX[1]: Probably this should be done for the rest of the functions that have
        the same names as struct tags.
XXX[2]: Is there a better way?
2005-04-07 16:26:35 +00:00
christos 184974e05a PR/29849, PR/29850: Add getpwent_r and getgrent_r 2005-04-02 04:53:53 +00:00
kleink 54e5574ccd We have pselect(2) now; the local wrapper is no longer necessary. 2005-03-17 20:48:50 +00:00
kleink fd5cb0acea A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
2005-02-09 21:35:46 +00:00
lukem a3665ef9cf Implement getgroupmembership(3). This is similar to getgrouplist(3), except
that the "int maxgroups" and "int *ngroups" parameters are separated into
two separate parameters which makes it possible to call multiple nsswitch
back-ends and have the results correctly merged.
getgrouplist(3) is now implemented using getgroupmembership(3).

Proposed on tech-userlevel on December 1, 2004.
2005-01-06 15:10:45 +00:00
kleink 9508efa066 Internally rename getdevmajor(); noted by Geoff Wing. 2004-12-16 12:30:04 +00:00
nathanw 5229c9f993 Nuke threadlib.h. Library defensive threading is now provided through the
normal pthread.h interface.
Move stubs for libc back into a libc-internal header.
2004-12-14 00:23:19 +00:00
lukem 45a7a69275 Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getpwent(3).
Per my proposal on tech-userlevel.

Implement getpwgid_r() and getpwnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getpwent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETPW_R_SIZE_MAX to sysconf(3).

Fix the compat `+' prototype override so getpwnam(3) and getpwuid(3) DTRT.

Improve the description of pw_class and pw_gecos.
2004-10-05 04:45:54 +00:00
lukem 71532e5cb8 crank copyright 2004-10-04 04:16:26 +00:00
lukem c54f283e46 Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getgrent(3).
Per my proposal on tech-userlevel.

Implement getgrgid_r() and getgrnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getgrent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETGR_R_SIZE_MAX to sysconf(3).
2004-10-04 04:11:33 +00:00
dogcow 96178d4078 insert a missing quotation mark. 2004-08-20 04:44:11 +00:00
christos ea369b9669 Deal with RESCUEDIR 2004-08-19 22:25:49 +00:00
ginsbach f56858739a namespace protection for gethostent() 2004-08-17 14:10:06 +00:00
christos cd8fc4ae1f delete duplicate namespace protection. 2004-06-02 20:54:58 +00:00
christos 6f3786f41c namespace protection for resolver routines. 2004-05-21 15:35:05 +00:00
christos e878251743 Add headers that ISC software [bind9] needs to include 2004-05-20 22:26:22 +00:00
christos 8681712dac de-lint 2004-05-20 19:51:55 +00:00
christos 89abd4929c import isc specific header files. 2004-05-20 19:49:41 +00:00
drochner db594c6591 After discussion with christos, turn fgetstr() into an internal function.
Its API in inherently non-threadsafe (and it depends on certain properties
of the underlying stdio implementation), so it shouldn't be a first-class
function for general use, polluting the application namespace.
Also remove the FLOCKFILE() code from it - this is under control of the
calling function now.
(XXX I'm not sure whether the FLOCKFILE() should be kept in fgetln(),
this function cannot be used in multiple threads anyway. It doesn't
hurt much, and it might prevent corruption of internal FILE structures.)
2004-05-10 16:47:11 +00:00
kleink a060c8818b We now need an internal name for fileno(), since when buildling libc
_REENTRANT we can no longer use the macro version from <stdio.h>.
2004-05-09 17:27:53 +00:00
kleink 537be69d5c Remove internal names for dbm_*(3); these are not required at this time. 2004-04-27 20:03:45 +00:00
christos 4e510a4ef6 protect fgetstr 2004-04-21 00:02:26 +00:00
atatat 8d5507a13f Weak aliases for sysctlfoobar() functions. 2004-04-08 05:45:26 +00:00
kleink 8e54f10bf7 * Turn isinf(3) and isnan(3) into C99-style macros.
* Make it possible for ports to override these (i.e., VAX).
* Remove isnanl(), which was internal to libc only.
2004-03-04 23:42:38 +00:00
christos 7782337bb7 _r functions for services and protocols; also add the inet_cidr_* function
which will come next.
2004-02-19 19:22:51 +00:00
matt 7fff5acf50 Constify the _-sigaction_sigtramp tramp argument. 2003-09-27 03:14:59 +00:00
jdolecek bb21f0beb4 remove pw_dup() 2003-09-18 09:24:35 +00:00
itojun f6da4d89f2 weak alias for pw_dup 2003-09-13 22:28:12 +00:00
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