summaryrefslogtreecommitdiffstats
path: root/libc/inet/addr.c
Commit message (Collapse)AuthorAgeFilesLines
* Atsushi Nemoto writes:Eric Andersen2003-10-081-11/+11
| | | | | | | | | | | | | I found inappropriate data types are used in some places in networking codes. * tcp_seq is 32bit (u_long -> u_int32_t) * in_addt_t should be used for internet address (unsigned long -> in_addr_t) * socklen_t should be used for accept() This is a patch against uclibc-0.9.21 (can be applied for current CVS). 64bit platforms (sizeof(int)!=sizeof(long)) will need this. I believe this patch does not harm any 32bit platforms.
* Update inet_aton() to support an undocumented feature of inet_aton,Eric Andersen2003-08-041-7/+13
| | | | | | | | per UNIX Network Programming, Volume 1, second edition: An undocumented feature of inet_aton is that if addrptr is a null pointer, the function still performs it validation of the input string, but does not store the result.
* Fix a memory corruption bug.David McCullough2002-09-171-3/+6
| | | | | | With gcc, sizeof on a sized array argument to a function returns 4, not 16 as was expected in this code. This caused inet_ntoa to overwrite whatever came before the buffer in the BSS by up to 12 bytes.
* Cleanup namespace leaks by prepending __ to global stuff toEric Andersen2002-07-071-8/+4
| | | | | indicate it is (alledgedly) private. -Erik
* Make things more re-entrany, kill some cruft.Eric Andersen2002-06-171-5/+7
| | | | -Erik
* Swap in the new stdio code.Manuel Novoa III2002-03-121-10/+7
|
* Add in support for inet_netof, inet_lnaof, inet_makeaddr and hstrerror.David McCullough2002-01-171-0/+66
|
* Steven Carr noticed that uClibc's inet_aton() is stricter then inEric Andersen2001-12-201-1/+7
| | | | | | | | glibc, since no trailing blanks was permitted, such that inet_aton("192.168.1.1 ",&value); would work with glibc, and fail with uClibc. This brings uClibc's inet_aton() behavior into sync with glibc's behavior. -Erik
* Adjust naming for __FORCE_GLIBC__ to __FORCE_GLIBC and addEric Andersen2001-11-211-1/+1
| | | | | support for __FORCE_NOGLIBC per Brian Stafford <brian.stafford@office-logic.com>
* Update networking includes.Eric Andersen2001-02-051-0/+2
|
* A number of updates from Manuel Novoa III. Things look good...Eric Andersen2000-12-201-11/+33
|
* Bug ugly formatting updateEric Andersen2000-10-091-55/+53
|
* Lots and lots of cleanups.Eric Andersen2000-07-061-0/+1
| | | | -Erik
* Initial revision0_9_1Erik Andersen2000-05-141-0/+85