Commit Graph

9 Commits

Author SHA1 Message Date
christos
c5e820cae4 PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
  would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
  builds)

approved by core@
2012-03-13 21:13:30 +00:00
christos
8056bccd98 Protect against stack smashes (Maksymilian Arciemowicz) 2011-04-03 22:14:15 +00:00
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
christos
efa6baa28d return NULL instead of core-dumping when we could not open the services file/db 2007-03-21 02:35:39 +00:00
christos
55b31470bb use indirect lookup. 2006-07-28 15:14:45 +00:00
christos
754fca0e0d use a db version of services if one is there. 2006-07-27 22:03:49 +00:00
kleink
4e3cae58ff 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.
2005-04-18 19:39:45 +00:00
enami
119b5f631a Don't call end{serv,proto}ent_r() on return. It results dangling pointer. 2004-03-04 02:30:41 +00:00
christos
8059eed1bc Re-entrant versions of services and prorocols functions. 2004-02-19 19:21:44 +00:00