Commit Graph

217 Commits

Author SHA1 Message Date
joerg
b9cf7d31ab Add the constant database reader (cdbr(3)) and writer ((cdbw(3)).
They implement a space efficent write-once database with fast access
path. Switch the services(5) database to use cdb. The size of the
database file decreases from 2.1MB disk space to 307KB. Access
performance is about the same if setservent(0) is used and about an
order of magnitude faster otherwise. services_mkdb defaults to the new
format, but can optionally create the old db(3) format as well for
statically linked legacy applications.
2010-04-25 00:54:44 +00:00
tnozaki
19f5aa7162 MB_LEN_MAX should moved from MD to MI. 2010-03-28 14:08:22 +00:00
tsarna
1f4f234ea9 Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
Discussed on tech-net.
2009-10-02 02:45:28 +00:00
christos
f227975929 Version fts one more time! This is the most versioned API ever... Bump
fts_level from short to int to avoid a potential DoS.
From Maksymilian Arciemowicz
2009-08-16 19:33:38 +00:00
joerg
d6e219476b Add a fast, platform independent hash function to libc.
The algorithm used is the Jenkins hash.  The name (mi_vector_hash)
reflects the nature of the hash function.
Add glue for libc ATF tests and include a test case to make sure that
(mis)alignment and endianess are handled correctly.

Bump libc minor to 169.
2009-07-20 17:03:36 +00:00
joerg
09d5d44150 Add SHA224 implementation to libc.
Make libcrypto use the SHA2 implementation of libc.
Bump minor versions of libc and libcrypto.
2009-05-26 08:04:11 +00:00
perry
be11851995 Add versions of stpcpy(3), stpncpy(3), strnlen(3), all from FreeBSD.
These are defined in the latest POSIX

Also make related updates to documentation, mostly from FreeBSD,
though I cleaned a few other things up along the way.

Bump shlib_version.

We are still missing strcoll_l, strerror_l, strsignal, strxfrm_l to be
POSIX conformant.
2009-05-01 17:27:01 +00:00
christos
59a755a40f merge libbind and bump. 2009-04-12 17:07:16 +00:00
christos
d4bf2b400d take the opportunity of the glob_pattern_p and add memrchr. 2009-04-10 23:14:07 +00:00
christos
461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
tnozaki
38eee9115b add more item for major bump:
_ctype_ table in ctype.h and gen/ctype_.c has insufficient bitwidth.
2009-01-05 07:50:23 +00:00
ad
12c911ef99 Add more items for major bump. 2008-12-28 10:59:20 +00:00
matt
0ad7281825 Add new ptree (Patricia / RADIX tree) implementation to NetBSD. 2008-11-20 23:50:08 +00:00
matt
cac8e44915 Add C99 functions imaxabs and imaxdiv. 2008-08-04 21:29:27 +00:00
matt
48717a981d Move rb.c from sys/lib/libkern to common so it can be in both libc and libkern. 2008-06-30 19:03:59 +00:00
ad
c6f43a476e Crank libc minor for getlogin_r 2008-06-25 11:12:01 +00:00
christos
3873655b27 updates from bind-9-5-0 2008-06-21 20:41:48 +00:00
yamt
49716be5e2 a little more about fpos_t. 2008-05-03 07:06:30 +00:00
christos
640f4f7d25 mention thread local support. 2008-05-01 15:52:31 +00:00
christos
a8706a45b4 mention ldexp, frexp, modf. 2008-04-27 09:26:20 +00:00
tnozaki
690d9c4d8a add comment about renaming of setlocale -> __setlocale_mb_len_max32. 2008-03-24 12:54:38 +00:00
yamt
7f068c6aa5 mention fpos_t 2008-03-23 15:33:26 +00:00
christos
749de7f2a4 Since _file is a short, check that the fd fits in it, otherwise bail with
EMFILE. We treat _file as an unsigned short to double our range, with a
special case for -1 (closed). Make a note of what we should do about stdio
if we ever bump libc. We could change _file in the future compatibly to an
int by putting it in the extension space but for now we don't bother.
2008-03-13 15:40:00 +00:00
ad
749400b704 Crank minor for atomic ops. 2008-02-10 18:47:06 +00:00
ad
bbc79e58a6 Pull in my modules code for review/test/hacking. 2008-01-16 12:34:50 +00:00
christos
6d28b23da6 - add dehumanize_number
- decls for humanize_number and dehumanize_number are in stdlib.h
2007-12-14 17:26:19 +00:00
ad
ae87f94d1d Bump libc/libpthread minor for thr_curcpu()/pthread_curcpu_np(). 2007-11-27 21:06:41 +00:00
ad
3c776c8aa6 Bump libc minor for _lwp_ctl, libpthread constructor changes. 2007-11-13 17:13:14 +00:00
ad
bdd61de26b Add _lwp_setname/_lwp_getname to libc. 2007-11-07 00:52:25 +00:00
he
fd961c4429 Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new libc function, getpeereid() to easily get at the euid and egid.
As a consequence, bump libc's minor number.

Document the LOCAL_PEEREID socket option in unix(4).

Based on contribution by Arne H. Juul, minor modifications by myself.
2007-08-09 15:23:01 +00:00
joerg
e4fc1154a4 Add native mremap system call based on the UVM implementation for
Linux compat. Add code to enforce alignment of the new location.
Special thanks to wizd for helping with the man page.
2007-07-17 17:42:07 +00:00
dsl
b2dd7438f9 Change beacuse of extra parameter to mount(2). 2007-07-14 16:09:48 +00:00
ad
154a7ed75c Add: _lwp_kill, _lwp_detach, _lwp_park, _lwp_unpark, _lwp_unpark_all,
sched_yield.
2007-01-16 07:07:45 +00:00
christos
146343edd5 add ssp code and bump. 2006-11-08 20:58:23 +00:00
christos
77f9f63fa2 add _r functions for syslog from OpenBSD 2006-10-25 23:49:31 +00:00
christos
54097ce7af PR/34238: Aleksey Cheusov: add wcsdup, wcscasecmp and wcsncasecmp functions 2006-08-22 20:50:46 +00:00
christos
cbfb283c65 - Add strndup and stresep
- Use stresep so in fstab so that we can mount paths with white space in them.
2006-08-12 23:49:53 +00:00
martin
cb10eb2bc2 Bump libc to 145 (fhandle_t is gone) 2006-07-31 16:39:23 +00:00
christos
084b59473e bump because of fts_length and sl_delete 2006-07-27 15:48:56 +00:00
martin
0a09af8063 Bump minor to 143 (getfh versioned) 2006-07-13 12:04:13 +00:00
mrg
e2eb31d3a3 version the socket(2) syscall. for compat30 socket, we use
EPROTONOSUPPORT instead of EAFNOSUPPORT.

from pavel@ with a little bit of clean up from myself.

XXX: netbsd32 (and perhaps other emulations) should be able
XXX: to call the standard socket calls for this i think, but
XXX: revisit this at another time.
2006-06-26 21:23:56 +00:00
rpaulo
69687a2d6c Bump minor for recent IPv6 API changes. 2006-05-09 11:17:37 +00:00
salo
2118fde310 Add setttyentpath(), functionally equivalent to setttyent() but takes an
additional argument to read the ttys information from an alternate path
istead of _PATH_TTYS.

Required for upcoming init(8) changes.

Mostly from <apb>.

Bump libc minor.
2006-04-17 23:29:21 +00:00
tnozaki
f9de1ba57e add c99 wcstof(3) and wcstold(3).
requested by skrll AT netbsd DOT org, thanks.

bump libc minor 138 -> 139.
2006-04-15 12:17:22 +00:00
christos
8d5214b18a PR/33163: Auster Vl.: fts: cant allocate memory | filename too long
Change the ftp_pathlen and fts_namelen to u_int from u_short so that
pathnames > 32K work.
2006-03-30 01:23:50 +00:00
kleink
bc89c06cbf Add strtof(3) and strtold(3); welcome libc 12.137. 2006-03-15 17:35:17 +00:00
agc
740a95c15f Add Todd Miller's ftw(3) and nftw(3) file-tree walking functionality,
from OpenBSD.

Bump libc minor to 136.
2005-12-30 23:07:31 +00:00
christos
cc85a7cfd9 add getenv_r and ttyname_r 2005-09-25 20:08:01 +00:00
elad
050dc98aca Bump libc minor after adding SHA2 routines. 2005-08-23 17:50:44 +00:00
christos
3303764533 64 bit inode changes 2005-08-19 02:04:54 +00:00