OpenGrok
Cross Reference: getservent_r.c
xref
: /
src
/
lib
/
libc
/
net
/
getservent_r.c
Home
|
History
|
Annotate
|
Download
|
only in
net
History log of
/src/lib/libc/net/getservent_r.c
Revision
Date
Author
Comments
1.13
12-Mar-2022
christos
reallocarr returns errno. preserve it.
1.12
12-Mar-2022
nia
getservent_r: use reallocarr
CVSv ----------------------------------------------------------------------
1.11
15-Oct-2011
christos
close on exec fixes:
- open + fcntl -> open O_CLOEXEC
- configuration database file descriptors that can stay open are now opened
fopen(db, "re")
1.10
25-Apr-2010
joerg
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.
1.9
06-Jan-2008
christos
PR/37708: A.Leo.: getservbyname, segetaddrinfo sefgfaults when user has no
rights for reading ``/etc/services''
1.8
14-Sep-2006
christos
branches: 1.8.8;
when re-opening the file only set SV_FIRST, don't clear accidentally SV_DB
because it leads to core-dumps.
1.7
28-Jul-2006
joerg
db->seq expects an u_int as fourth argument.
1.6
27-Jul-2006
christos
use a db version of services if one is there.
1.5
18-Apr-2005
kleink
Move the (at this time private) get{proto,serv}ent_r() prototypes and
data structures into the libc sources until the interface gets redone.
Approved by christos.
1.4
25-Feb-2004
taca
branches: 1.4.6;
Semantic fix for allocation size for malloc() and realloc() previously
modified. Allocation unit isn't sizeof(char **) but sizeof(char *).
Noted by Geoff Wing.
1.3
24-Feb-2004
christos
Fix allocation size bug from Takahiro Kambe.
1.2
23-Feb-2004
christos
- fix a memory leak on the current line buffer.
- fix a memory leak on realloc failure.
1.1
19-Feb-2004
christos
Re-entrant versions of services and prorocols functions.
1.4.6.1
21-Apr-2005
tron
Pull up revision 1.5 (requested by kleink in ticket #172):
Move the (at this time private) get{proto,serv}ent_r() prototypes and
data structures into the libc sources until the interface gets redone.
Approved by christos.
1.8.8.1
09-Jan-2008
matt
sync with HEAD
Indexes created Tue Sep 30 20:09:53 GMT 2025