Hajimu UMEMOTO
109e5709c0
libc-internal interfaces should have two underscores in front
...
of their names.
Pointed out by: das
2005-04-17 14:42:52 +00:00
Xin LI
5c83bb4912
Wrong working directory, sorry. The previous patch was what I have
...
seen in NetBSD's tree, and this one is what I have submitted for review.
Pointy hat to: me
2005-04-17 04:00:55 +00:00
Xin LI
f5d25e4900
Remove a check about whether sa->sa_len is equal to salen from
...
getnameinfo(3). POSIX standard does not require a sa_len field
in sockaddr struct, hence such requirement will cause problem
for portability.
PR: standards/80008
Requested by: Xin Liu <lx@knight.6test.edu.cn>
Reviewed by: freebsd-standards (das)
MFC After: 2 weeks
2005-04-17 03:56:07 +00:00
Hajimu UMEMOTO
62e8b17d72
Now, our getservbyname(3) is thread-safe. So, we don't need
...
to protect it with mutex lock.
2005-04-15 18:15:12 +00:00
Hajimu UMEMOTO
96f79dca76
- add getserv{byname,byport,ent}_r for internal use within libc.
...
- make getserv{byname,byport,ent} thread-safe.
Reviewed by: gnn
2005-04-15 18:09:39 +00:00
Hajimu UMEMOTO
159d2a98c5
hostalias() is not thread-safe. So, introduce _res_hostalias()
...
and use it.
Obtained from: BIND9
2005-04-15 14:42:29 +00:00
Hajimu UMEMOTO
f35528f852
remove needless res_init() call.
...
Inspired by: NetBSD
2005-04-14 11:44:43 +00:00
Hajimu UMEMOTO
e8ffd81605
unbreak build without YP defined.
...
Submitted by: Andrea Campi <andrea+freebsd_cvs_at_webcom.it>
2005-04-09 14:20:18 +00:00
Stefan Farfeleder
cf00abe993
Remove unused variables and assignments.
2005-04-08 21:24:23 +00:00
Hajimu UMEMOTO
2424b11851
- we are no longer shareing any resources to be locked between
...
getaddrinfo(3) and getipnodeby*(3).
- use definitions in reentrant.h.
- remove obsolete comment.
2005-04-06 15:36:34 +00:00
Hajimu UMEMOTO
148b7ece93
separate gai_strerror(3) from getaddrinfo.c.
...
Requested by: phantom
2005-04-06 12:45:51 +00:00
Hajimu UMEMOTO
d7057edb15
make yp stuff re-entrant.
...
Obtained from: NetBSD
2005-04-05 18:25:23 +00:00
Hajimu UMEMOTO
78ebcde839
add missing mutex unlock.
2005-04-05 17:13:28 +00:00
Hajimu UMEMOTO
9def31dcd7
make _files_getaddrinfo() re-entrant.
...
Obtained from: NetBSD
2005-04-04 19:45:27 +00:00
Hajimu UMEMOTO
0fbf0979c8
nuke the logic for AF_UNSPEC and simplify. once, it was introduced
...
to improve getaddrinfo(3). but, it is not needed for a long time
since getaddrinfo(3) became providing its own res_*N() functions.
2005-04-02 08:18:33 +00:00
Simon L. B. Nielsen
4bced63f6d
Add byteorder(9) to SEE ALSO.
...
MFC after: 3 days
2005-03-20 17:27:57 +00:00
Stefan Farfeleder
10248e3a93
- Use socklen_t.
...
- No need for two instances of 'num'.
2005-02-14 17:51:45 +00:00
Stefan Farfeleder
78e3eed071
Fix most cases where the address of an int is passed to a function expecting a
...
socklen_t * argument.
2005-02-14 17:42:58 +00:00
Alexey Zelkin
ed61386604
. Convert return type of gai_strerror() to 'const char *' as POSIX requires.
...
. Convert ai_errlist[] to simple 'char *' array, and appropriately
optimize gai_strerror()
2005-02-14 11:33:12 +00:00
Alexey Zelkin
03c51c7e90
EAI_ADDRFAMILY and EAI_NODATA are obsoleted, and not definined anymore,
...
so do not export these definitions via manual page
2005-02-14 11:24:58 +00:00
Ruslan Ermilov
0227791b40
Expand *n't contractions.
2005-02-13 22:25:33 +00:00
Ruslan Ermilov
6b806d21d1
Fixed the misplaced $FreeBSD$.
2005-02-09 18:07:17 +00:00
Hajimu UMEMOTO
8743b270c9
use strdup().
...
Obtained from: KAME
MFC after: 1 week
2005-01-28 19:35:42 +00:00
Hajimu UMEMOTO
a2a24ec881
make _getipnodebyname_multi() static.
2005-01-27 15:01:05 +00:00
Hajimu UMEMOTO
c224435ed9
implement AI_NUMERICSERV (as defined in RFC3493).
...
Obtained from: KAME
MFC after: 1 week
2005-01-27 14:45:11 +00:00
Hajimu UMEMOTO
8755b918a1
fill ai_canonname field for numeric hostname, by the given hostname.
...
follow new recommendation in RFC3493.
Obtained from: KAME
MFC after: 1 week
2005-01-27 14:41:56 +00:00
Hajimu UMEMOTO
d0d6a2c7cc
query A RR before AAAA RR.
...
MFC after: 1 week
2005-01-27 08:03:46 +00:00
Ruslan Ermilov
f000229472
Markup and grammar fixes.
2005-01-24 18:14:18 +00:00
George V. Neville-Neil
f579625397
Update man pages to be in line with guidelines for IPv6 in FreeBSD.
...
FreeBSD currently implements the most up to date IPv6 APIs for
option and route header parsing. This checkin marks the older APIs
as deprecated and points the reader to the newer pages.
Reviewed by: Jun-ichiro Itojun
Approved by: rwatson (mentor)
2005-01-24 11:23:14 +00:00
George V. Neville-Neil
b986ced475
Fix a dangling MKLINK from my last commit.
...
Approved by: rwatson (mentor)
2005-01-24 01:40:16 +00:00
George V. Neville-Neil
6617cf5778
Submitted by: George V. Neville-Neil (gnn at freebsd dot org)
...
Reviewed by: Kame Project (including Itojun-san, Jinmei-san and Suzuki-san)
Approved by: Robert Watson (robert at freebsd dot org)
Obtained from: Kame Project and OpenBSD
Replace manual pages that may have violated the IETF's Copyright.
All come from the Kame tree.
Several were from OpenBSD except for ip6.4, and the inet6* pages which were
rewritten by me.
All of the text is new and drawn from reading the code and
documentation.
2005-01-23 16:02:48 +00:00
George V. Neville-Neil
b8a3e40819
Submitted by: George V. Neville-Neil (gnn at freebsd dot org)
...
Approved by: Robert Watson (robert at freebsd dot org)
Remove files in preparation for replacement with totally new versions
of the manual pages.
Update the Makefile to handle the new file to be added.
2005-01-23 15:41:10 +00:00
Ruslan Ermilov
24a0682c64
Sort sections.
2005-01-20 09:17:07 +00:00
Ruslan Ermilov
6a5796e734
Eliminate macro calls inside literal displays.
2005-01-15 12:28:01 +00:00
Ruslan Ermilov
2d82ac3110
Scheduled mdoc(7) sweep.
2005-01-11 20:50:51 +00:00
Maxim Sobolev
7b6cc40479
Don't ignore the last line of config file (/etc/hosts, /etc/services, etc)
...
which doesn't end in \n, since it may be very confusing. Also this should
increase consistency, since most other config files work just fine regardless
of the presence of traling \n in the last line.
MFC After: 2 weeks
2005-01-03 11:07:45 +00:00
Tom Rhodes
8f79184fe2
Various markup and spelling fixes.
...
PR: 75574
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
2004-12-29 02:18:24 +00:00
Bjoern A. Zeeb
6c58990d47
Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
...
If turned on no NIS support and related programs will be built.
Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il>
PR: bin/68303
No objections: des, gshapiro, nectar
Reviewed by: ru
Approved by: rwatson (mentor)
MFC after: 2 weeks
2004-11-13 20:40:32 +00:00
Maxim Konovalov
e2494b93fc
o Backout rev. 1.16, see 1.3 commit log for more info.
...
Requested by: bde
o Remove unneeded sys/types.h and netinet/in.h from the synopsis and
the example.
o We do have struct in_addr in arpa/inet.h, so no need for netinet/in.h.
o Mention where AF_* constants defined are.
Educated by: bde
2004-10-09 17:13:58 +00:00
Maxim Konovalov
796a03f172
Reflect the fact addr2ascii(3) and ascii2addr(3) need sys/socket.h
...
for AF_* constants.
Submitted by: Matthew George
MFC after: 2 weeks
2004-09-29 17:54:30 +00:00
Yaroslav Tykhiy
23b5c802b8
Use the recently introduced RES_DFLRETRY parameter instead of a well-hidden
...
constant for the default number of retries.
2004-09-09 17:42:18 +00:00
Peter Pentchev
16d9177176
Bump the document date, since the content changed today.
...
Discussed with: ru
2004-08-06 15:29:54 +00:00
Peter Pentchev
808712c91c
Cross-reference getnameinfo(3), getaddrinfo(3), getipnodebyname(3) and
...
getipnodebyaddr(3).
PR: 54229
Submitted by: Samuel Tardieu <sam@inf.enst.fr>
MFC after: 2 weeks
2004-08-06 12:02:07 +00:00
Hajimu UMEMOTO
0def575fd7
now e.f.f.3.ip6.arpa is delegated, we no longer need to query ip6.int
...
Obtained from: KAME
2004-07-21 17:26:40 +00:00
Ruslan Ermilov
5792ef0983
Markup nits.
2004-07-07 20:15:31 +00:00
Ruslan Ermilov
1af1ea79a8
Markup fixes.
2004-07-05 07:21:55 +00:00
Ruslan Ermilov
30950a21e1
Eliminate double whitespace.
2004-07-03 22:30:10 +00:00
Ruslan Ermilov
1a0a934547
Mechanically kill hard sentence breaks.
2004-07-02 23:52:20 +00:00
Ruslan Ermilov
33992dc0ed
Markup, grammar, and spelling fixes.
2004-06-30 20:09:10 +00:00
Mike Pritchard
6b4a832600
Spelling fixes.
2004-06-21 20:10:35 +00:00