Age | Commit message (Collapse) | Author |
|
ttyname_r returns an error number, rather than setting errno.
ok millert
|
|
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
|
|
|
|
from FreeBSD. With help from jmc@.
|
|
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
|
|
ok jmc@ ray@ millert@
|
|
is more readable than
`.' notation
zap some silly .Tn whilst here;
|
|
|
|
plus a little cleanup;
|
|
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@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from Chad Dougherty, documentation/5493
|
|
a series of oneshot or periodic timers. capped to a global limit.
from freebsd via brad.
ok art pedro
|
|
|
|
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@
|
|
|
|
|
|
* 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@
|
|
|
|
these functions and each use of the fd is already protected. No externally
visible changes. okay marc@ millert@
|
|
reminded and ok jmc@
|
|
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@
|
|
OK jmc@.
|
|
OK moritz@ and jaredy@
|
|
only once while here. From tbert.
OK jaredy@.
|
|
|
|
wrappers around fopen/fclose. From tbert.
OK millert@, tedu@, and itojun@.
|
|
|
|
to #ifdefs where they are used. Found by lint by bret dot lambert
at gmail.
OK deraadt@.
|
|
stuff to LSRCS
|
|
Earlier diff OK jmc@, with nit by otto@.
|
|
OK moritz@.
|
|
OK moritz@ and jaredy@.
|
|
okay jmc@
|
|
spotted by Daniel Ouellet; help/ok claudio
|
|
getaddrinfo reentrant.
OK millert@ and deraadt@.
|
|
|
|
Sync the documentation in getpid with arc4random's format.
|
|
some time ago--it caused too many problems.
|
|
|
|
|
|
this diff came into my tree, apologies for not naming the contributor.
ok tedu@ deraadt@
|
|
OK deraadt@ mjc@ canacar@ krw@, with much input from Enache himself
|
|
immediately after.
OK millert@.
|
|
reflect how shutdown() behaves with PF_INET and PF_INET6 sockets;
help/ok millert otto
|