summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getifaddrs.c
Commit message (Collapse)AuthorAgeFilesLines
* sysctl(NET_RT_IFLIST) up to several (currently 5) times.ume2002-07-251-8/+29
| | | | | | | | This will make the behavior robuster if many addresses are added after the size estimation of storage at the first sysctl. Reviewed by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> MFC after: 1 week
* Fix the style of the SCM ID's.obrien2002-03-221-1/+4
| | | | I believe have made all of libc .c's as consistent as possible.
* - cope with sa_len < sizeof(struct sockaddr).ume2001-10-021-35/+44
| | | | | | | | From: Patrik Lindergren <patrik@datacom.nu> - delint (pointer cast issue). from netbsd-current Obtained from: KAME MFC after: 1 week
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-241-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
* defined HAVE_IFM_DATA for (free|net|open)bsdume2000-10-281-0/+5
| | | | | Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> Obtained from: KAME Project
* add getifaddrs(3) from bsdi. this is a magic function which lets you grabitojun2000-07-051-0/+379
interface addresses in a portable manner, without headache of SIOCGIFCONF or sysctl. it is in bsdi/openbsd/netbsd already. from kame tree (actually, mandatory for latest kame tree).
OpenPOWER on IntegriCloud