summaryrefslogtreecommitdiffstats
path: root/libc/inet/getaddrinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* guard IPv6 stuffPeter S. Mazinger2011-03-031-0/+4
| | | | | | disable IPv6 related stuff if feature is disabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* fix a few build errors for the no threads caseAustin Foxley2010-04-281-0/+2
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* getaddrinfo.c: include tls.h before resolv.hAustin Foxley2009-11-301-0/+1
| | | | | | | | This is needed because tls.h ends up includeing nptl/descr.h which needs the full res_state definition. resolv.h also ends up including tls.h, but _without_ the full res_state struct it errors. Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Extend __gen_tempname with mode argumentMikhail Gusarov2009-11-091-1/+1
| | | | | | | | | | sem_open(3) needs to create a temporary file in a way which can't be efficiently implemented in terms of POSIX API. Extend __gen_tempname with mode_t mode argument in order to ease sem_open implementation. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-181-5/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-181-21/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Avoid type-punned pointers that break strict-aliasingRon2009-07-051-3/+6
| | | | | Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* heed compiler warnings about checking non-defined variables in #if directivesDenis Vlasenko2008-12-141-2/+2
|
* getaddrinfo: runp->ifa_addr indeed can be NULL, don't dereference itDenis Vlasenko2008-12-091-0/+2
| | | | | ifaddrs.c: cosmetics, no code changes
* getaddrinfo: remove superfluout indentation, fix incorrect one.Denis Vlasenko2008-12-081-61/+64
| | | | | remove one superfluous statement.
* - fix loop for checking ifaddr on both IPv4 and IPv6Bernhard Reutner-Fischer2008-12-081-2/+2
|
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-201-11/+11
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-201-1/+1
|
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-181-1/+1
|
* getaddrinfo.c: improve readabilityDenis Vlasenko2008-10-281-30/+26
|
* getaddrinfo.c: reformat. no code changesDenis Vlasenko2008-10-281-738/+630
|
* - fix typo in r23808Bernhard Reutner-Fischer2008-10-271-1/+1
|
* libc/inet/getaddrinfo.c: const'ify some data;Denis Vlasenko2008-10-271-26/+45
| | | | | | | | | avoid using zero-filled constants in bss: text data bss dec hex filename 3182 24 48 3254 cb6 getaddrinfo_old.o 3280 0 0 3280 cd0 getaddrinfo.o
* - remove gethostbyname_r relocationBernhard Reutner-Fischer2008-09-111-1/+0
|
* Move ifaddrs.h from uClibc-internal location libc/inet/ to include/, and makeRicard Wanderlof2008-08-281-1/+1
| | | | | it conditionally included among the installed header files depending on UCLIBC_HAS_AI_ADDRCONFIG.
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-231-3/+3
|
* Simplified check_pf() so it returns a bit vector in an unsigned int,Ricard Wanderlof2008-07-011-18/+74
| | | | instead of modifying the contents of two bools.
* Removed include/ifaddrs.h and put contents in libc/inet/ifaddrs.h, as we do notRicard Wanderlof2008-06-271-1/+1
| | | | need the file outside of uClibc anyway.
* Added support for the AI_ADDRCONFIG flag in the hints->ai_flags parameter to ↵Ricard Wanderlof2008-06-271-8/+35
| | | | getaddrinfo(3).
* - adds several config-options to allow for turning off certain featuresBernhard Reutner-Fischer2008-06-031-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | like o UCLIBC_HAS_GNU_ERROR o UCLIBC_HAS_BSD_ERR o UCLIBC_HAS_PTY o UCLIBC_HAS_GETPT (1) o UCLIBC_SYSCALL_STUBS o UCLIBC_SYSCALL_STUB_WARNING o UCLIBC_LINUX_SPECIFIC (2) o UCLIBC_BSD_SPECIFIC (3) o UCLIBC_NTP_LEGACY (4) o UCLIBC_SV4_DEPRECATED (5) o UCLIBC_HAVE_REALTIME (6) o UCLIBC_HAVE_ADVANCED_REALTIME (7) o UCLIBC_HAVE_EPOLL (8) o UCLIBC_HAVE_XATTR (9) o UCLIBC_HAVE_PROFILING (10) (1) make non-standard getpt optional and implement standard posix_openpt (2) fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(), personality() ppoll(), setresuid() (3) mincore(), getdomainname(), setdomainname() (4) ntp_adjtime(), ntp_gettime() aliases (5) ustat() [use statfs(2) in your code instead] (6) All marked as "(REALTIME)" in SUSv3 (7) All marked as "(ADVANCED REALTIME)" in SUSv3 (8) epoll_create(), epoll_ctl(), epoll_wait() (9) all Extended Attributes (10) helpers for gcc's -finstrument-functions - Fixes _dl_exit() - Implements sleep(3) for !UCLIBC_HAVE_REALTIME - Implements usleep(3) for !UCLIBC_HAVE_REALTIME - adds #warning about incorrect posix_fadvise{,64}() - removes unused and unwanted uselib() Net outcome is that an allnoconfig with HAVE_SHARED is now about 88k instead of formerly 130k.
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-191-5/+5
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* Ricard Wanderlof writes:Mike Frysinger2008-02-231-9/+0
| | | | | | | The following definitions in getaddrinfo.c seem redundant as they _are_ defined in the public netdb.h header, contrary to the comment. AI_DEFAULT is not, however it is not used in the file either so can be safely removed.
* Added AI_NUMERICSERV flag and check if the string is not just a numberCarmelo Amoroso2008-02-071-2/+6
| | | | | | when AI_NUMERICSERV flag set. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger2006-01-221-1/+0
| | | | is a useless attempt
* some global data relocs gonePeter S. Mazinger2006-01-161-0/+1
|
* make DODEBUG=y happy, update sysdeps/common/* copyrightPeter S. Mazinger2006-01-141-2/+2
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-51/+63
| | | | missing headers, other jump relocs removed
* hide the internal __in6addr_any/__in6addr_loopback symbolsMike Frysinger2006-01-081-1/+1
|
* create __if_nametoindex hidden alias and use itMike Frysinger2006-01-061-0/+1
|
* mmap/mremap/socket/rewind gonePeter S. Mazinger2005-12-081-1/+1
|
* Again rpc ;-( , all *inet*, *addr*Peter S. Mazinger2005-12-081-15/+19
|
* Hide morePeter S. Mazinger2005-12-071-2/+7
|
* More hiding, including __mempcpyPeter S. Mazinger2005-12-031-2/+4
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-23/+27
|
* Hide some of mem* and str*Peter S. Mazinger2005-11-271-0/+2
|
* Oops.Eric Andersen2002-11-211-0/+1
|
* Cleanup use of in6addr_loopback and in6addr_anyEric Andersen2002-11-211-1/+1
|
* Fix missing defines. Forgot to check this in.Eric Andersen2002-03-191-0/+9
| | | | -Erik
* Bart Visscher <magick@Linux-Fan.com> has added some missing IPV6 support, andEric Andersen2002-03-191-0/+863
added several additional reentrant networking functions such that iptables now runs with IPV6 support.