#
8fb3f3f6 |
| 21-Mar-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Remove 'register' keyword.
|
#
68a6b5e1 |
| 15-Mar-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Remove trailing characters from #endif. Actually this #endif is not needed, so remove leading characters also.
|
#
fd8e4ebc |
| 18-Feb-2002 |
Mike Barcroft <mike@FreeBSD.org> |
o Move NTOHL() and associated macros into <sys/param.h>. These are deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the
o Move NTOHL() and associated macros into <sys/param.h>. These are deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland.
Tested on: alpha, i386 Reviewed by: bde, jake, tmm
show more ...
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs, release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs, release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7, release/2.2.6, release/2.2.5_cvs, release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs, release/2.1.6_cvs, release/2.1.6.1 |
|
#
3951b8e3 |
| 27-Dec-1996 |
Bill Paul <wpaul@FreeBSD.org> |
Small yet significant tweaks/cleanups:
- getservent: o put _yp_check() proto under #ifdef YP where it belongs o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL termin
Small yet significant tweaks/cleanups:
- getservent: o put _yp_check() proto under #ifdef YP where it belongs o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying
- gethostbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long
- getnetbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying
- ether_addr: o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying (in this case it's BUFSIZ + 2 bytes, but it happens that BUFSIZ == YPMAXRECORD.
- gethostbydns: o nuke stray 'return(NULL)' in __dns_getanswer() (harmless but looks silly)
These are 2.2 candidates. I will wait a few days to make sure these don't break anything and then, if there are no objections, move them to the 2.2 branch.
show more ...
|
#
afb5b8ed |
| 05-Dec-1996 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
Eliminate 3 more examples of gratutiously passing arrays by address.
Everyone please call ParaSoft today and say "I will buy 57 copies of Insure++ tomorrow, but first I want a FreeBSD version." :-)
|
Revision tags: release/2.1.5_cvs |
|
#
51295a4d |
| 12-Jul-1996 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
#
217ae632 |
| 01-Jun-1996 |
Bill Paul <wpaul@FreeBSD.org> |
Improve NIS performace of getservbyname() and getservbyport(). Both these functions are implimented as wrappers around getservent(), which means it's up to getservent() to do all the work. The NIS su
Improve NIS performace of getservbyname() and getservbyport(). Both these functions are implimented as wrappers around getservent(), which means it's up to getservent() to do all the work. The NIS support in getservent() only allows it to scan through the services.byname map one entry at a time until it finds the requested service name/port. This can be painfully slow due to the overhead involved (lots and lots of successive RPCs).
To fix this, we allow getservbyname() and getservbyport() to signal getservent() that if NIS is turned on (there's a '+' in /etc/services), the usual yp_first()/yp_next() linear search should be abandoned and yp_match() used instead. This causes getservent() to immediately locate the requested entry instead of wasting time groping through the whole map.
The downside is that this trick is accomplished by exporting a couple of pointers from getservent.c which getservbyname.c and getservbyport.c can preset in order to tell getservent() what to do. If all three functions were in the same source module, then the extra cruft could be delcared static to avoid poluting the global symbol space. Maybe they should be combined anyway. For now I've settled on prepending lots of underscores.
show more ...
|
#
70520b51 |
| 29-Jan-1996 |
Mike Pritchard <mpp@FreeBSD.org> |
Getpwent() and getservent() can wind up calling free() with an invalid pointer if a call to yp_first() fails. Closes PR # 964, and possibly # 952.
|
Revision tags: release/2.1.0_cvs |
|
#
215032be |
| 04-Nov-1995 |
Bill Paul <wpaul@FreeBSD.org> |
Add NIS support to getservent(3) functions (getservbyport() and getservbyname() both call getservent() to do most of the work, so we only need to modify this file to take care of everybody).
Note th
Add NIS support to getservent(3) functions (getservbyport() and getservbyname() both call getservent() to do most of the work, so we only need to modify this file to take care of everybody).
Note that there is only one NIS services map (services.byname) even though there are getservbyname() and getservbyport() library functions.
show more ...
|
Revision tags: release/2.0.5_cvs, release/2.0, release/1.1.5.1_cvs |
|
#
58f0484f |
| 27-May-1994 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
BSD 4.4 Lite Lib Sources
|
#
79bbdc60 |
| 06-Apr-2010 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
Use the stored length value instead of calculating it by strlen().
|
#
e622b479 |
| 04-Apr-2010 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
Add capability to use a db version of services. It is enabled by specifying `db' as source of service in /etc/nsswitch.conf.
MFC after: 2 weeks
|
#
dc6ab8dd |
| 04-Apr-2010 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
Reduce duplicate code.
MFC after: 2 weeks
|
#
aea86367 |
| 04-Apr-2010 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
Treat '+' as special only when in compat mode, and simplify the logic bit.
MFC after: 2 weeks
|
#
8390eaed |
| 04-Apr-2010 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
Stop adding trailing '\n'. The servent_unpack() doesn't expect lines terminated with '\n'.
MFC after: 2 weeks
|
Revision tags: release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0 |
|
#
c879ae35 |
| 09-Jan-2007 |
Warner Losh <imp@FreeBSD.org> |
Per Regents of the University of Calfornia letter, remove advertising clause.
# If I've done so improperly on a file, please let me know.
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
06a99fe3 |
| 28-Apr-2006 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
- Extend the nsswitch to support Services, Protocols and Rpc databases. - Make nsswitch support caching.
Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
|
#
d3ac2b30 |
| 15-Apr-2006 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
- make reentrant version of netdb functions glibc style API, and expose them to outside of libc. - make netdb functions NSS friendly.
Reviewed by: arch@ and current@ (no objection)
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
d8f77b45 |
| 20-Aug-2005 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Include <sys/types.h> and <limits.h> ourselves, don't assume they are included through <pthread.h>.
gen/sem.c: Prerequisite for <_semaphore.h> net/getprotoent.c: USHRT_MAX net/getservent.c: USHRT_M
Include <sys/types.h> and <limits.h> ourselves, don't assume they are included through <pthread.h>.
gen/sem.c: Prerequisite for <_semaphore.h> net/getprotoent.c: USHRT_MAX net/getservent.c: USHRT_MAX stdio/ungetwc.c: MB_LEN_MAX stdio/vfwscanf.c: MB_LEN_MAX
show more ...
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
a2a77501 |
| 28-Apr-2005 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
make getnetby*() thread-safe.
|
#
a87b3988 |
| 18-Apr-2005 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
rename the NIS related fields to have yp_ prefix.
Suggested by: delphij
|
#
ffe49790 |
| 18-Apr-2005 |
Xin LI <delphij@FreeBSD.org> |
Do not check whether a pointer is NULL, since free(3) already takes care of this case.
Reviewed by: ume
|
#
6d44c5c7 |
| 17-Apr-2005 |
Xin LI <delphij@FreeBSD.org> |
Fix build for !YP case.
BTW. Shall we change these fields to have yp_ prefix? That will make the code easier to read.
|
#
109e5709 |
| 17-Apr-2005 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
libc-internal interfaces should have two underscores in front of their names.
Pointed out by: das
|
#
96f79dca |
| 15-Apr-2005 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
- add getserv{byname,byport,ent}_r for internal use within libc. - make getserv{byname,byport,ent} thread-safe.
Reviewed by: gnn
|