summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2007-07-03from Nicholas Marriott:Jason McIntyre
ttyname_r returns an error number, rather than setting errno. ok millert
2007-07-03from ginsbach@netbsd, -r1.18:Jason McIntyre
Document that getopt_long(3) can and will accept unique abbreviated long option names. This feature has been present since getopt_long(3) was first released in NetBSD 1.5. This is also standard GNU getopt_long(3) behavior. ok millert
2007-06-30Update to tzcode2007f from elsie.nci.nih.govTodd C. Miller
2007-06-29Document behavior when no conversion could be performed. AdaptedTodd C. Miller
from FreeBSD. With help from jmc@.
2007-06-26It seems st_size is not always a good estimator for the number ofRay Lai
directory entries. ZFS, for instance, sets st_size to the number of entries. Use the same algorithm for the initial estimate but keep a minimum to prevent a divide by zero. When the buffer is filled, instead of re-using the same flawed algorithm, double the buffer size. Also add check for integer overflow. Bug reported by Ed Ravin, ZFS testing environment provided by Bryan Allen. OK millert
2007-06-21The `len' argument is guaranteed to be > 0 upon successful completion.Moritz Jodeit
ok jmc@ ray@ millert@
2007-06-12``dot'' notationJason McIntyre
is more readable than `.' notation zap some silly .Tn whilst here;
2007-06-11Document the Bluetooth network protocols and mention that there is AF_BLUETOOTHUwe Stuehler
2007-06-07convert some displays to lists, since the format is more suitable;Jason McIntyre
plus a little cleanup;
2007-06-05_FD_LOCK/UNLOCK() is libpthread specific and not needed for librthread, soKurt Miller
isolate its usage to libpthread only and replace with generic non-static mutex support in the one place it is needed: - remove _FD_LOCK/UNLOCK from lseek and ftruncate in libc and make the functions weak so that libpthread can override with its own new versions that do the locking. - remove _thread_fd_lock/unlock() weak functions from libc and adjust libpthread for the change. - add generic _thread_mutex_lock/unlock/destroy() weak functions in libc to support non-static mutexes in libc and add libpthread and librthread implementations for them. libc can utilize non-static mutexes via the new _MUTEX_LOCK/UNLOCK/DESTROY() macros. Actually these new macros can support both static and non-static mutexes but currently only using them for non-static. - make opendir/closedir/readdir/readdir_r/seekdir/telldir() thread-safe for both thread libraries by using a non-static mutex in the struct _dirdesc (typedef DIR), utilizing it in the *dir functions and remove remaining and incorrect _FD_LOCK/UNLOCK() use in libc. - add comments to both thread libraries to indicate libc depends on the current implementation of static mutex initialization. suggested by marc@ - major bump libc and libpthread due to function removal, structure change and weak symbol conversions. okay marc@, tedu@
2007-06-05remove ipx-related stuff. objections nobody. major bump by kurt in a fewHenning Brauer
2007-06-05one more IPX removal; ok henningJason McIntyre
2007-06-01more adosfs removal;Jason McIntyre
2007-06-01mark the non-handling of 48 bits units with XXXOtto Moerbeek
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-31Xr clock_gettime. pointed there by art. ok jmc.Kjell Wooding
2007-05-31asyncronous -> asynchronous;Jason McIntyre
from Chad Dougherty, documentation/5493
2007-05-30add a new kevent filter type for timers. this allows processes to createTed Unangst
a series of oneshot or periodic timers. capped to a global limit. from freebsd via brad. ok art pedro
2007-05-29when producing a v1 label, set the version!!!!Otto Moerbeek
2007-05-29Updated disklabel format to support larger disks and partitions. WeOtto Moerbeek
free room in struct partition by packing fragment size and fragments/block more tighlty and use the resulting space to make offset and size 48 bits. For the disk part we use spare fields in struct disklabel. Kernel converts in-mem copy of the on-disk label if needed, disklabel(8) writes new version. We are careful to only change fields not used by bootloaders. Conception of basic scheme by deraadt. ok deraadt@ krw@
2007-05-29mention new option 2 for nosuidcoredumpTed Unangst
2007-05-28tweaks; ok thibJason McIntyre
2007-05-27cleanup the nfssvc() system call.Thordur I. Bjornsson
* Remove alot of dead kerberos code like the options for NFSSVC_AUTHIN and NFSSVC_AUTHFAIL wich where originally to get the kerberos auth info into the kernel. (that hasnt worked for long, if ever.) Also remove some helper functions and associated goo, however theres still alot of it left. * Remove NFSSVC_BIOD, biod's where replaced with kernel threads a long time ago. * NFSSVC_MNTD wich was is NQNFS leftover. Update the man page and nfsd(8). nfssvc(2) besides being special has only one user in the tree nfsd(8), therefore no library bumps are needed. (discussed with deraadt@). ok beck@, "go a head" deraadt@ Tested by ckuethe@
2007-05-25"boundries" -> "boundaries" in various comments. Started by Diego Casati.Kenneth R Westerback
2007-05-23Remove unnecessary locking. There is no need for serializing calls toKurt Miller
these functions and each use of the fd is already protected. No externally visible changes. okay marc@ millert@
2007-05-21add EOVERFLOW and ECANCELED here too.Jasper Lievisse Adriaanse
reminded and ok jmc@
2007-05-21Add ECANCELED and EOVERFLOW. For canceled (async) operations and conversionJasper Lievisse Adriaanse
overflows, respectively. (EOVERFLOW from espie@) don't bump libc, as there are currently no functions that use them, but it doesn't hurt to have them around. as discussed with deraadt@, espie@, miod@ and otto@ ok deraadt@ espie@ miod@ otto@
2007-05-20Typos.Ray Lai
OK jmc@.
2007-05-18Remove no-op code. From tbert.Ray Lai
OK moritz@ and jaredy@
2007-05-17Don't save strlen results in an int. Remove a variable that's usedRay Lai
only once while here. From tbert. OK jaredy@.
2007-05-17LSRCS should refer to the C source version of asm files 'put it in' deraadt@Dale Rahn
2007-05-17Improve reentrancy by not using global variable. Removes twoRay Lai
wrappers around fopen/fclose. From tbert. OK millert@, tedu@, and itojun@.
2007-05-17Unbreak libc on arm. -mojMats O Jansson
2007-05-16Wrap some functions, labels, and variables in #ifdefs correspondingRay Lai
to #ifdefs where they are used. Found by lint by bret dot lambert at gmail. OK deraadt@.
2007-05-15fix some lint 'xxx used, but not defined' warnings by properly addingOtto Moerbeek
stuff to LSRCS
2007-05-12Document errno usage. From Tobias Stoeckmann.Ray Lai
Earlier diff OK jmc@, with nit by otto@.
2007-05-12Use size_t for strlen results.Ray Lai
OK moritz@.
2007-05-12Clean up macros according to style. From tbert <bret dot lambert at gmail>.Ray Lai
OK moritz@ and jaredy@.
2007-05-10grammar,Marc Espie
okay jmc@
2007-05-10document net.inet.tcp.keepinittime;Jason McIntyre
spotted by Daniel Ouellet; help/ok claudio
2007-05-10Use syslog_r instead of syslog in getaddrinfo. Slowly makingRay Lai
getaddrinfo reentrant. OK millert@ and deraadt@.
2007-05-02macros at start of line require a `.';Jason McIntyre
2007-05-02Document the lack of error return value in arc4random.Pierre-Yves Ritschard
Sync the documentation in getpid with arc4random's format.
2007-04-10Support for optional args separated with whitespace was removedTodd C. Miller
some time ago--it caused too many problems.
2007-04-01clarify return values, prompted by moritz; ok moritz jmcTheo de Raadt
2007-03-30document accept can return EINTR. ok millert@ jmc@Kurt Miller
2007-03-25eliminate call to abort(), which is very bad in libs. I forgat howOtto Moerbeek
this diff came into my tree, apologies for not naming the contributor. ok tedu@ deraadt@
2007-03-21Add support for mounting arbitrary sessions, from Enache AdrianPedro Martelletto
OK deraadt@ mjc@ canacar@ krw@, with much input from Enache himself
2007-03-19Get rid of useless #if 0 block, especially since the code is includedRay Lai
immediately after. OK millert@.
2007-03-07manual page update by Bruce M. Simpson <bms@FreeBSD.org> toJason McIntyre
reflect how shutdown() behaves with PF_INET and PF_INET6 sockets; help/ok millert otto