summaryrefslogtreecommitdiff
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: polishing.Ruslan Ermilov2001-02-101-32/+43
| | | | Notes: svn path=/head/; revision=72314
* Improve language and code examples.Nik Clayton2001-02-101-31/+41
| | | | | | | | PR: docs/24961 Submmitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=72311
* Describe the arguments to gethostbyaddr.Nik Clayton2001-02-091-1/+46
| | | | | | | | | PR: docs/24225 Submitted by: Joakim Henriksson <jurduth@ludd.luth.se> Patch from: ben Notes: svn path=/head/; revision=72251
* mdoc(7) police: Change -filled displays (which just happenRuslan Ermilov2001-02-072-2/+2
| | | | | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins. Notes: svn path=/head/; revision=72126
* Fix typo: compatability -> compatibility.Jeroen Ruigrok van der Werven2001-02-061-1/+3
| | | | | | | | | Compatability is not an existing english word. Add $FreeBSD$. Notes: svn path=/head/; revision=72092
* strcpy -> strlcpy paranoiaJacques Vidrine2001-02-021-1/+4
| | | | | | | | Submitted by: Mike Heffner <mheffner@vt.edu> Reviewed by: freebsd-audit Notes: svn path=/head/; revision=71929
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-014-45/+28
| | | | Notes: svn path=/head/; revision=71895
* s/err1/errx/.Hajimu UMEMOTO2001-01-261-2/+2
| | | | | | | | | http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=1673 Obtained from: KAME Notes: svn path=/head/; revision=71678
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-01-2415-52/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=71579
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.Ruslan Ermilov2001-01-121-1/+1
| | | | Notes: svn path=/head/; revision=70974
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-121-77/+100
| | | | Notes: svn path=/head/; revision=70959
* gethostbyname2() is able to lookup AF_INET6.Alexander Langer2001-01-061-10/+0
| | | | | | | | PR: 23823 Noticed by: Andrew Arensburger <arensb@ooblick.com> Notes: svn path=/head/; revision=70710
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-293-18/+18
| | | | Notes: svn path=/head/; revision=70481
* mdoc(7) police: removed history info from the .Os FreeBSD call.Ruslan Ermilov2000-12-141-1/+1
| | | | Notes: svn path=/head/; revision=70015
* mdoc(7) police: use canonical form of .Dd macro.Ruslan Ermilov2000-12-111-1/+2
| | | | Notes: svn path=/head/; revision=69857
* - __ivaliduser_sa() was introduced for forthcoming IPv6 support to lpdHajimu UMEMOTO2000-12-041-102/+170
| | | | | | | | | | | | | | | | - iruserok_sa() and __ivaliduser_af() were re-organized to use __ivaliduser_sa() - __icheckhost() was re-written to use getaddrinfo() instead of getipnodebyname() - better handling of multiple destination addresses in rcmd() These changes were basically taken from KAME and changed to fit our rcmd.c. Obtained from: KAME Notes: svn path=/head/; revision=69575
* mdoc(7) police: Er macro usage cleanup.Ruslan Ermilov2000-11-221-1/+1
| | | | Notes: svn path=/head/; revision=69051
* mdoc(7) police: Nm -> Fn where appropriate.Ruslan Ermilov2000-11-202-5/+5
| | | | Notes: svn path=/head/; revision=68946
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68945
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-1/+0
| | | | Notes: svn path=/head/; revision=68575
* Fix memory leak.Munechika SUMIKAWA2000-10-291-0/+2
| | | | | | | Obtained from: KAME Notes: svn path=/head/; revision=67894
* defined HAVE_IFM_DATA for (free|net|open)bsdHajimu UMEMOTO2000-10-281-0/+5
| | | | | | | | Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> Obtained from: KAME Project Notes: svn path=/head/; revision=67800
* Make RES_OPTIONS=inet6 work.Hajimu UMEMOTO2000-10-271-0/+4
| | | | | | | | | Basically PR22196, but slightly modified. PR: bin/22196 Notes: svn path=/head/; revision=67709
* Fix pthread cancellation point propagation.Jason Evans2000-10-121-5/+5
| | | | Notes: svn path=/head/; revision=66999
* Use issetugid instead of comparing get[ug]id and gete[ug]id.Jacques Vidrine2000-09-301-5/+2
| | | | | | | Suggested by: Don Lewis <Don.Lewis@tsc.tdk.com> Notes: svn path=/head/; revision=66485
* Ignore HESIOD_CONFIG and HES_DOMAIN environmental variables forJacques Vidrine2000-09-291-2/+12
| | | | | | | | | set-user-ID and set-group-ID programs. Suggested by: Danny Braniss <danny@cs.huji.ac.il> Notes: svn path=/head/; revision=66451
* off-by-1 error in string length validationJun-ichiro itojun Hagino2000-09-251-7/+6
| | | | | | | From: Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> Notes: svn path=/head/; revision=66374
* Change from using poll(2) to kqueue/kevent when waiting for a DNSPaul Saab2000-09-121-32/+30
| | | | | | | | | | | | response to return. This will stop processes waiting on DNS requests from being woken up when a select collision occurs. This was tested on mx1.FreeBSD.org (outgoing mail for the FreeBSD.org mailing lists.) Reviewed by: jlemon, peter Notes: svn path=/head/; revision=65772
* Set h_errno when an error is encountered.Jacques Vidrine2000-09-101-2/+9
| | | | | | | | PR: bin/21092 Submitted by: Alexander Kabaev <ak03@gte.com> Notes: svn path=/head/; revision=65702
* Fix getipnodebyname(3) bug.Jacques Vidrine2000-09-071-3/+4
| | | | | | | Submitted by: ume Notes: svn path=/head/; revision=65558
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you canJacques Vidrine2000-09-0622-725/+2217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD Notes: svn path=/head/; revision=65532
* Yank out the NOPOLL conditionals. libc_r no longer needs it, and thisPeter Wemm2000-09-041-106/+28
| | | | | | | | library depends on other things that come *way* later than poll() now (sigset size changes in particular) Notes: svn path=/head/; revision=65453
* The API change mentioned in the previous revision has been backed out, soJohn Baldwin2000-08-221-5/+0
| | | | | | | | | back out the corresponding documentation. Noticed by: brian, ume Notes: svn path=/head/; revision=64958
* Don't retry connecting via the same medium.Hajimu UMEMOTO2000-08-101-16/+8
| | | | | | | | | | | I changed to close to original code before merging IPv6 support. It seems having delay before another try is useless. However, I'm not sure that delay means. So, I leave it as-is. PR: bin/20515 Notes: svn path=/head/; revision=64493
* mention getipnodeby* and get{addr,name}info are not thread-safe. (sync with ↵Jun-ichiro itojun Hagino2000-08-096-21/+110
| | | | | | | | | | kame) s/.Os KAME/.Os/ comment From: Greg Thompson Notes: svn path=/head/; revision=64469
* Use _close() instead of close() in addrconfig() to keep it from becoming aJason Evans2000-07-211-3/+3
| | | | | | | potential cancellation point in libc_r. Notes: svn path=/head/; revision=63704
* Copy canonname for *ahost, into static buffer.Hajimu UMEMOTO2000-07-201-10/+10
| | | | | | | Obtained from: KAME Project Notes: svn path=/head/; revision=63682
* Alocate rcmd{,_af}()'s *ahost argument using malloc() (wellBrian Somers2000-07-202-3/+14
| | | | | | | | | | | | | | strdup()) rather than pointing it at something that's free()d (via freeaddrinfo(res)) before the function returns. I appreciate that this is an API change, but it's the only way (AFAIK) of doing this without breaking existing code that uses rcmd{,_af}(). Pointed out by: phkmalloc Notes: svn path=/head/; revision=63622
* To define A RR to root (.) is valid in DNS. So, h_name = "" shouldn'tHajimu UMEMOTO2000-07-191-2/+2
| | | | | | | | | | | be treated as NULL. PR: bin/19816 Submitted by: Bill Fenner <fenner@research.att.com> Reviewed by: Atsushi Onoe <onoe@sm.sony.co.jp> Notes: svn path=/head/; revision=63490
* Const'ify parameters to ethers(3) routines as appropriate.Archie Cobbs2000-07-182-10/+10
| | | | Notes: svn path=/head/; revision=63474
* Try and fix the worst of some highly bogus malloc/free resourcePeter Wemm2000-07-111-1/+1
| | | | | | | | | | | | | | management involving rcmd_af(), getaddrinfo(), freeaddrinfo(), etc. We set *ahost to point to ai->canonname; and later free the ai-> stuff and still leave the old pointers in *ahost to the freed data. Perhaps the best way to deal with this is a static buffer or a static strdup() that is freed on the next iteration or something. This gives me headaches just thinking about this. The new 'AJ' default for malloc() tripped this up. Notes: svn path=/head/; revision=62939
* reject empty scopeid. use strtoul() for checking all-numericness ofJun-ichiro itojun Hagino2000-07-091-8/+15
| | | | | | | | portname. explicitly reject empty numeric portname. sync with kame. based on comments from itohy@netbsd.org Notes: svn path=/head/; revision=62836
* sync with more recent kame tree.Jun-ichiro itojun Hagino2000-07-052-45/+254
| | | | | | | | - correct scoped notation separator (s/@/%/) - include example and more references Notes: svn path=/head/; revision=62625
* sync with latest kame.Jun-ichiro itojun Hagino2000-07-051-70/+208
| | | | | | | | | | | - permit numeric scopeid, be more careful about buffer size TODO: 2nd arg type should be socklen_t for RFC2553 conformance, but due to include file dependency it is not a easy thing to do (netdb.h does not have socklen_t) Notes: svn path=/head/; revision=62615
* sync with kame.Jun-ichiro itojun Hagino2000-07-051-29/+50
| | | | | | | | - better return code. from enami@netbsd - do not use "class" as variable name. C++ guy had trouble with it. Notes: svn path=/head/; revision=62614
* add getifaddrs(3) from bsdi. this is a magic function which lets you grabJun-ichiro itojun Hagino2000-07-053-2/+545
| | | | | | | | | 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). Notes: svn path=/head/; revision=62606
* Previous commit broke the case of chained CNAME entries. Instead handleKris Kennaway2000-07-031-6/+18
| | | | | | | | | | the bogus case by being stricter about errors. Submitted by: itojun Obtained from: KAME Notes: svn path=/head/; revision=62428
* Fix a nasty bug which would leave the struct hostent incompletely filled outKris Kennaway2000-07-031-1/+1
| | | | | | | | | | | when parsing certain DNS records during a reverse address resolution. Thus when code tries to examine the returned host name, it dereferences a null pointer :-( Problem noticed by: ps Notes: svn path=/head/; revision=62427
* Don't call _getipnodebyname_multi(). It fixes the problem thatHajimu UMEMOTO2000-06-201-190/+1216
| | | | | | | | | | | | getaddrinfo() accidentally returns IPv4 mapped IPv6 address instead of native IPv4 address. Now, getaddinfo() is scoped address ready. You can put scoped address within /etc/hosts. Obtained from: KAME Project. Notes: svn path=/head/; revision=61877
* Re-commit DNS IPv6 transport support with fixes for IPv4 onlyHajimu UMEMOTO2000-06-192-59/+153
| | | | | | | | | kernel and compatibility issue. Obtained from: KAME Project Notes: svn path=/head/; revision=61824