#
360415 |
|
27-Apr-2020 |
brooks |
MFC r359978:
Fix -Wvoid-pointer-to-enum-cast warnings.
This pattern is used in callbacks with void * data arguments and seems both relatively uncommon and relatively harmless. Silence the warning by casting through uintptr_t.
This warning is on by default in Clang 11.
Reviewed by: arichardson Obtained from: CheriBSD (partial) Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24425
|
#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
298830 |
|
29-Apr-2016 |
pfg |
libc: spelling fixes.
Mostly on comments.
|
#
288015 |
|
20-Sep-2015 |
rodrigc |
Add declarations to netdb_private.h to eliminate -Wmissing-prototypes warnings.
|
#
211276 |
|
13-Aug-2010 |
ume |
- When there is no room for returning the result, nss backend have to return ERANGE and terminate with NS_RETURN. - When gethostbyname_r(3) and the friends end with an error, set errno to the value nss backend returns, and return errno value.
PR: kern/131623 MFC after: 2 weeks
|
#
158791 |
|
21-May-2006 |
ume |
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1 on 64 bit arch.
X-MFC after: never
|
#
158477 |
|
12-May-2006 |
ume |
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1:
http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html
gethostbyaddr_r() is changed as well. It breaks ABI backward compatibility on 64 bit arch. So, we fix it on 32 bit arch only for now.
Reported by: Rostislav Krasny <rosti.bsd@gmail.com>
|
#
158115 |
|
28-Apr-2006 |
ume |
- 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
|
#
157779 |
|
15-Apr-2006 |
ume |
- 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)
|
#
156960 |
|
21-Mar-2006 |
ume |
Update the resolver in libc to BIND9's one.
Since, res_sendsigned(3) and the friends use MD5 functions, it is hard to include them without having MD5 functions in libc. So, res_sendsigned(3) is not merged into libc.
Since, res_update(3) in BIND9 is not binary compatible with our res_update(3), res_update(3) is leaved as is, except some necessary modifications. The res_update(3) and the friends are not essential part of the resolver. They are not defined in resolv.h but defined in res_update.h separately in BIND9. Further, they are not called from our tree. So, I hide them from our resolv.h, but leave them only for binary backward compatibility (perhaps, no one calls them).
Since, struct __res_state_ext is not exposed in BIND9, I hide it from our resolv.h. And, global variable _res_ext is removed. It breaks binary backward compatibility. But, since it is not used from outside of our libc, I think it is safe.
Reviewed by: arch@ (no objection)
|
#
145728 |
|
30-Apr-2005 |
ume |
oops, gethostbyaddr(3) must return h_addr as an IPv4-mapped IPv6 address when RES_USE_INET6 was set, according to RFC 2133 section 6.2.
|
#
145687 |
|
29-Apr-2005 |
ume |
- do validation check and IPv4-mapped IPv6 address handling before any query. - don't query against IPv6 link-local address. - use IN6_IS_ADDR_V4{MAPPED,COMPAT} macros. - use memcpy() instead of bcopy().
Inspired by: NetBSD
|
#
145635 |
|
28-Apr-2005 |
ume |
sync _map_v4v6_host*() with bind9's. it treats align better bit.
Obtained from: BIND9
|
#
145633 |
|
28-Apr-2005 |
ume |
make gethostby*() thread-safe.
|
#
145602 |
|
27-Apr-2005 |
ume |
hide implementation specific internal functions from netdb.h. it is needed to make get{host,net}by*() thread-safe.
|
#
145512 |
|
25-Apr-2005 |
ume |
ensure parsing numeric address before any host query.
Inspired by: NetBSD
|
#
116574 |
|
19-Jun-2003 |
kris |
Remove bogus non-reentrant "temporary" implementation of gethostbyaddr_r() that has been here for 6 years and 9 months.
Reviewed by: deischen MFC After: 1 week
|
#
113977 |
|
24-Apr-2003 |
nectar |
Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' by namespace.h.
Sponsored by: DARPA, Network Associates Laboratories
|
#
92986 |
|
22-Mar-2002 |
obrien |
Fix the style of the SCM ID's. I believe have made all of libc .c's as consistent as possible.
|
#
81586 |
|
13-Aug-2001 |
ru |
Removed duplicate VCS ID tags, as per style(9).
|
#
71579 |
|
24-Jan-2001 |
deischen |
Remove _THREAD_SAFE and make libc thread-safe by default by 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
|
#
67709 |
|
27-Oct-2000 |
ume |
Make RES_OPTIONS=inet6 work. Basically PR22196, but slightly modified.
PR: bin/22196
|
#
65532 |
|
06-Sep-2000 |
nectar |
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 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
|
#
52865 |
|
04-Nov-1999 |
ache |
Add unsigned char cast to isalpha
|
#
50476 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
31984 |
|
25-Dec-1997 |
alex |
Removed unnecessary initialization of hp in gethostbyaddr_r.
|
#
22993 |
|
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
#
21673 |
|
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
#
17903 |
|
29-Aug-1996 |
peter |
Merge in bind-4.9.4-P1 resolver...
|
#
17706 |
|
20-Aug-1996 |
julian |
Submitted by: John Birrell <cimaxp1!jb@werple.net.au>
Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended).
I've created a new header (pthread_np.h) for the non-POSIX stuff.
The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags.
also:
Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc.
also:
I should have sent this diff with the pthread(3) man page. It allows people to type
make -DWANT_LIBC_R world
to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r.
also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r.
|
#
17141 |
|
12-Jul-1996 |
jkh |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
#
8870 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
7324 |
|
24-Mar-1995 |
ache |
Change strtok() to strsep(), cause memory corruption for all programs which use strtok() too in the same time. Fix potential NULL reference, depends of /etc/hosts.conf format Fix the bug when service name fetched always from beginning of the line, not from parsed token.
|
#
3070 |
|
25-Sep-1994 |
pst |
get* rework and new bind code
|
#
2330 |
|
28-Aug-1994 |
csgr |
Fix gethostbyaddr(): call _getdnsbyaddr() instead of _getdnsbyname() ;-) Submitted by: Geoff
|
#
1992 |
|
09-Aug-1994 |
wollman |
Fixed typo.
|
#
1991 |
|
09-Aug-1994 |
wollman |
Add (substantially re-written) support for /etc/host.conf, and reintegrated 1.1.5 support for YP, fixing a bug in 1.1.5 that prevented YP from ever working reliably. (I'm amazed that there were no bug reports.)
IWBRNI someone could write a host.conf(5) manual page. Please look at the code before doing so; this version is somewhat more flexible in the format of its input.
|
#
1574 |
|
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1573, which included commits to RCS files with non-trunk default branches.
|
#
1573 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Lib Sources
|