summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: polishing.ru2001-02-101-32/+43
|
* Improve language and code examples.nik2001-02-101-31/+41
| | | | | PR: docs/24961 Submmitted by: Tony Finch <dot@dotat.at>
* Describe the arguments to gethostbyaddr.nik2001-02-091-1/+46
| | | | | | PR: docs/24225 Submitted by: Joakim Henriksson <jurduth@ludd.luth.se> Patch from: ben
* mdoc(7) police: Change -filled displays (which just happenru2001-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.
* Fix typo: compatability -> compatibility.asmodai2001-02-061-1/+3
| | | | | | Compatability is not an existing english word. Add $FreeBSD$.
* strcpy -> strlcpy paranoianectar2001-02-021-1/+4
| | | | | Submitted by: Mike Heffner <mheffner@vt.edu> Reviewed by: freebsd-audit
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-014-45/+28
|
* s/err1/errx/.ume2001-01-261-2/+2
| | | | | | http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=1673 Obtained from: KAME
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-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
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.ru2001-01-121-1/+1
|
* man(7) -> mdoc(7).ru2001-01-121-77/+100
|
* gethostbyname2() is able to lookup AF_INET6.alex2001-01-061-10/+0
| | | | | PR: 23823 Noticed by: Andrew Arensburger <arensb@ooblick.com>
* Prepare for mdoc(7)NG.ru2000-12-293-18/+18
|
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-1/+1
|
* mdoc(7) police: use canonical form of .Dd macro.ru2000-12-111-1/+2
|
* - __ivaliduser_sa() was introduced for forthcoming IPv6 support to lpdume2000-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
* mdoc(7) police: Er macro usage cleanup.ru2000-11-221-1/+1
|
* mdoc(7) police: Nm -> Fn where appropriate.ru2000-11-202-5/+5
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-1/+0
|
* Fix memory leak.sumikawa2000-10-291-0/+2
| | | | Obtained from: KAME
* 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
* Make RES_OPTIONS=inet6 work.ume2000-10-271-0/+4
| | | | | | Basically PR22196, but slightly modified. PR: bin/22196
* Fix pthread cancellation point propagation.jasone2000-10-121-5/+5
|
* Use issetugid instead of comparing get[ug]id and gete[ug]id.nectar2000-09-301-5/+2
| | | | Suggested by: Don Lewis <Don.Lewis@tsc.tdk.com>
* Ignore HESIOD_CONFIG and HES_DOMAIN environmental variables fornectar2000-09-291-2/+12
| | | | | | set-user-ID and set-group-ID programs. Suggested by: Danny Braniss <danny@cs.huji.ac.il>
* off-by-1 error in string length validationitojun2000-09-251-7/+6
| | | | From: Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
* Change from using poll(2) to kqueue/kevent when waiting for a DNSps2000-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
* Set h_errno when an error is encountered.nectar2000-09-101-2/+9
| | | | | PR: bin/21092 Submitted by: Alexander Kabaev <ak03@gte.com>
* Fix getipnodebyname(3) bug.nectar2000-09-071-3/+4
| | | | Submitted by: ume
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-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
* Yank out the NOPOLL conditionals. libc_r no longer needs it, and thispeter2000-09-041-106/+28
| | | | | library depends on other things that come *way* later than poll() now (sigset size changes in particular)
* The API change mentioned in the previous revision has been backed out, sojhb2000-08-221-5/+0
| | | | | | back out the corresponding documentation. Noticed by: brian, ume
* Don't retry connecting via the same medium.ume2000-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
* mention getipnodeby* and get{addr,name}info are not thread-safe. (sync with ↵itojun2000-08-096-21/+110
| | | | | | | kame) s/.Os KAME/.Os/ comment From: Greg Thompson
* Use _close() instead of close() in addrconfig() to keep it from becoming ajasone2000-07-211-3/+3
| | | | potential cancellation point in libc_r.
* Copy canonname for *ahost, into static buffer.ume2000-07-201-10/+10
| | | | Obtained from: KAME Project
* Alocate rcmd{,_af}()'s *ahost argument using malloc() (wellbrian2000-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
* To define A RR to root (.) is valid in DNS. So, h_name = "" shouldn'tume2000-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>
* Const'ify parameters to ethers(3) routines as appropriate.archie2000-07-182-10/+10
|
* Try and fix the worst of some highly bogus malloc/free resourcepeter2000-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.
* reject empty scopeid. use strtoul() for checking all-numericness ofitojun2000-07-091-8/+15
| | | | | portname. explicitly reject empty numeric portname. sync with kame. based on comments from itohy@netbsd.org
* sync with more recent kame tree.itojun2000-07-052-45/+254
| | | | | - correct scoped notation separator (s/@/%/) - include example and more references
* sync with latest kame.itojun2000-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)
* sync with kame.itojun2000-07-051-29/+50
| | | | | - better return code. from enami@netbsd - do not use "class" as variable name. C++ guy had trouble with it.
* add getifaddrs(3) from bsdi. this is a magic function which lets you grabitojun2000-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).
* Previous commit broke the case of chained CNAME entries. Instead handlekris2000-07-031-6/+18
| | | | | | | the bogus case by being stricter about errors. Submitted by: itojun Obtained from: KAME
* Fix a nasty bug which would leave the struct hostent incompletely filled outkris2000-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
* Don't call _getipnodebyname_multi(). It fixes the problem thatume2000-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.
* Re-commit DNS IPv6 transport support with fixes for IPv4 onlyume2000-06-192-59/+153
| | | | | | kernel and compatibility issue. Obtained from: KAME Project
OpenPOWER on IntegriCloud