Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | raise readability bit. | ume | 2005-05-13 | 1 | -7/+7 |
| | |||||
* | free ypbuf only when yp_match() succeed. | ume | 2005-05-13 | 1 | -1/+1 |
| | |||||
* | NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines | ume | 2005-05-13 | 2 | -21/+8 |
| | | | | | NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now. | ||||
* | Provide more POSIX-complaint ttyname_r(3) interface[1], which is slightly | delphij | 2005-05-13 | 2 | -22/+41 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | different from what has been offered in libc_r (the one spotted in the original PR which is found in libthr has already been removed by David's commit, which is rev. 1.44 of lib/libthr/thread/thr_private.h): - Use POSIX standard prototype for ttyname_r, which is, int ttyname_r(int, char *, size_t); Instead of: char *ttyname_r(int, char *, size_t); This is to conform IEEE Std 1003.1, 2004 Edition [1]. - Since we need to use standard errno for return code, include errno.h in ttyname.c - Update ttyname(3) implementation according to reflect the API change. - Document new ttyname_r(3) behavior - Since we already make use of a thread local storage for ttyname(3), remove the BUGS section. - Remove conflicting ttyname_r related declarations found in libc_r. Hopefully this change should not have changed the API/ABI, as the ttyname_r symbol was never introduced before the last unistd.h change which happens a couple of days before. [1] http://www.opengroup.org/onlinepubs/009695399/functions/ttyname.html Requested by: Tom McLaughlin <tmclaugh sdf lonestar org> Through PR: threads/76938 Patched by: Craig Rodrigues <rodrigc crodrigues org> (with minor changes) Prompted by: mezz@ | ||||
* | Connect MLINKS for ttyname_r(3), and add prototype into unistd.h. | delphij | 2005-05-11 | 1 | -1/+1 |
| | |||||
* | Avoid (unnecessarily) casting away const within uuid_is_nil. | delphij | 2005-05-11 | 1 | -2/+2 |
| | |||||
* | Fix race by using atomic operation, with this change, both libpthread | davidxu | 2005-05-06 | 1 | -3/+5 |
| | | | | and libthr now can run profiling on SMP. | ||||
* | Document the fact that accept(2) may return EINVAL when addrlen is | keramida | 2005-05-04 | 1 | -0/+4 |
| | | | | | | | | negative (in addition to returning EINVAL when called on a descriptor that is not a socket). Submitted by: Arne H Juul <arnej@europe.yahoo-inc.com> PR: docs/80587 | ||||
* | The correct description for mode "w" is | des | 2005-05-04 | 1 | -1/+1 |
| | | | | | | | | (((truncate to zero length) or (create)) (text file)) (for writing) and not ((truncate file to zero length) or (create text file)) (for writing) MFC after: 1 week | ||||
* | do mutex lock for each yp calls. with this, | ume | 2005-05-03 | 1 | -13/+65 |
| | | | | | http://cvsweb.netbsd.org/bsdweb.cgi/src/regress/lib/libpthread/resolv/ is working. | ||||
* | Cleanup for getgrouplist(3): | delphij | 2005-05-03 | 1 | -8/+6 |
| | | | | | | | | - Use /*- instead of /* for copyright section - Include unistd.h for prototype of it - Sort and separate includes as described in style(9) - ANSIfy the function defination - Use const for the traversing iterator | ||||
* | fix signed/unsigned comparison warnings. | ume | 2005-05-03 | 1 | -5/+5 |
| | | | | Obtained from: NetBSD | ||||
* | Include paths.h for prototype of getbootfile(3). | delphij | 2005-05-03 | 1 | -0/+2 |
| | |||||
* | the 3rd argument of getsockname() should be socklen_t*. | ume | 2005-05-02 | 2 | -2/+4 |
| | | | | Submitted by: stefanf | ||||
* | oops, we don't need previous change. | ume | 2005-05-01 | 1 | -8/+4 |
| | |||||
* | make it compilable without YP definition. | ume | 2005-05-01 | 1 | -5/+9 |
| | |||||
* | don't see RES_USE_INET6 when called from getipnodeby*(). | ume | 2005-05-01 | 1 | -6/+14 |
| | |||||
* | oops, gethostbyaddr(3) must return h_addr as an IPv4-mapped | ume | 2005-04-30 | 3 | -6/+17 |
| | | | | | IPv6 address when RES_USE_INET6 was set, according to RFC 2133 section 6.2. | ||||
* | handling RES_USE_INET6 better. | ume | 2005-04-30 | 1 | -4/+5 |
| | |||||
* | _ht_gethostbyaddr didn't handle RES_USE_INET6 correctly. | ume | 2005-04-30 | 1 | -1/+1 |
| | |||||
* | _gethostbynisname() didn't support RES_USE_INET6. | ume | 2005-04-30 | 1 | -0/+9 |
| | |||||
* | _ht_gethostbyname didn't handle RES_USE_INET6 correctly. | ume | 2005-04-30 | 1 | -6/+18 |
| | |||||
* | - do validation check and IPv4-mapped IPv6 address handling before | ume | 2005-04-29 | 2 | -36/+41 |
| | | | | | | | | | 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 | ||||
* | NETDB_INTERNAL is not fit, here. return NO_RECOVERY for h_errno. | ume | 2005-04-29 | 4 | -4/+4 |
| | |||||
* | our get{addr,name}info() is considered thread-safe. | ume | 2005-04-29 | 2 | -8/+0 |
| | |||||
* | we cannot use inet_ntoa(3), here. so, use inet_ntop(3), instead. | ume | 2005-04-29 | 2 | -5/+11 |
| | |||||
* | sync _map_v4v6_host*() with bind9's. it treats align better bit. | ume | 2005-04-28 | 4 | -18/+15 |
| | | | | Obtained from: BIND9 | ||||
* | we don't need mutex lock to call _gethostbynis*(), anymore. | ume | 2005-04-28 | 2 | -19/+2 |
| | |||||
* | make gethostby*() thread-safe. | ume | 2005-04-28 | 6 | -285/+478 |
| | |||||
* | _gethostbynis{addr,name}() can handle an IPv6, now. | ume | 2005-04-28 | 1 | -16/+11 |
| | |||||
* | make getnetby*() thread-safe. | ume | 2005-04-28 | 8 | -175/+339 |
| | |||||
* | hide implementation specific internal functions from netdb.h. | ume | 2005-04-27 | 6 | -0/+17 |
| | | | | it is needed to make get{host,net}by*() thread-safe. | ||||
* | Provide stub functions for i386_set_ldt() and i386_get_ldt() even when | peter | 2005-04-26 | 2 | -7/+4 |
| | | | | | compiling as an amd64 support binary. They will return EINVAL on an amd64 kernel, but this simplifies other #ifdefs that were getting a bit nasty. | ||||
* | No longer use _amd64_set_gsbase(). Use i386_set_gsbase() even when | peter | 2005-04-26 | 6 | -166/+2 |
| | | | | building for amd64. | ||||
* | our get{proto,serv}by*() use a thread-specific data space. | ume | 2005-04-26 | 2 | -2/+2 |
| | |||||
* | add IPv6 awareness for NIS query of gethostby*(). | ume | 2005-04-26 | 2 | -25/+56 |
| | | | | Inspired by: NetBSD | ||||
* | ensure parsing numeric address before any host query. | ume | 2005-04-25 | 2 | -100/+126 |
| | | | | Inspired by: NetBSD | ||||
* | remove unused variable. | ume | 2005-04-25 | 1 | -3/+1 |
| | |||||
* | Remove unused file. | delphij | 2005-04-25 | 1 | -63/+0 |
| | | | | | | | Confirmed by: tjr [1] [1] PERFORCE CHANGESET 57044: http://perforce.freebsd.org/changeView.cgi?CH=57044 | ||||
* | if last line didn't have trailing space, network address was also | ume | 2005-04-24 | 1 | -10/+11 |
| | | | | treated as an alias. | ||||
* | Optimize the instruction alignment. | alc | 2005-04-23 | 1 | -2/+1 |
| | |||||
* | Eliminate an unpredictable branch from bcmp(). | alc | 2005-04-21 | 1 | -5/+4 |
| | | | | Reviewed by: bde | ||||
* | Do not try to store 64 bits into 32 bit errno variable. With the changed libc | kan | 2005-04-21 | 1 | -1/+1 |
| | | | | | data layout, this was corrupting _PathLocale variable leading to programs dumping core in non-default locales. | ||||
* | - add getproto{byname,bynumber,ent}_r for internal use within libc. | ume | 2005-04-19 | 4 | -53/+181 |
| | | | | - make getproto{byname,bynumber,ent} thread-safe. | ||||
* | - nuke deprecated and unused getnodeby(3). | ume | 2005-04-19 | 1 | -31/+0 |
| | | | | | | - remove unused variable. Obtained from: KAME | ||||
* | rename the NIS related fields to have yp_ prefix. | ume | 2005-04-18 | 4 | -38/+38 |
| | | | | Suggested by: delphij | ||||
* | Do not check whether a pointer is NULL, since free(3) already takes care of | delphij | 2005-04-18 | 1 | -6/+3 |
| | | | | | | this case. Reviewed by: ume | ||||
* | Add a sysctl that returns the full path of a process' text file. | das | 2005-04-18 | 1 | -3/+9 |
| | | | | | This information is needed by things like `gdb -p' and Sun's javac, and previously it could only be obtained via procfs | ||||
* | Fix build for !YP case. | delphij | 2005-04-17 | 1 | -0/+4 |
| | | | | | BTW. Shall we change these fields to have yp_ prefix? That will make the code easier to read. | ||||
* | libc-internal interfaces should have two underscores in front | ume | 2005-04-17 | 4 | -12/+12 |
| | | | | | | of their names. Pointed out by: das |