Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
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@
|
|
With help from otto@
|
|
on libraries themselves. Works by setting up the debugging flags then
calling dlopen() to do the heavy lifting. ok drahn
|
|
in lazy binding. ok art@, kurt@
|
|
combined GCC and ISO committees managed to make out of it.
With this, gcc >= 4.3 can grok its way through it correctly.
okay kettenis@, with some help figuring stuff out.
|
|
also discussed on tech@ a while ago.
ok pedro@ tedu@ thib@
|
|
as _ng_sl_add() now returns a value. The only consumer of that
interface is netgroup_mkdb(8). Adapted from NetBSD.
OK deraadt@
|
|
be MI since we removed stuff that was arch-dependent). The Configure script
still rebuilds a copy of that file, and we check it for diffs.
okay millert@
|
|
is never set now that the unionfs support has been removed from
readdir(). OK pedro@
|
|
okay theo
|
|
working again.
help from millert@, ok deraadt@ pedro@
|
|
|
|
|
|
export of the protocol. you shall not add non-protocol stuff to such
a file, period.
|
|
- move TIMEOUT* defines to arpa/tftp.h, as they are used several times
in tftpd and tftp, and the values are part of the RFC definition.
- tftpd and tftp did count the total retransmission time in retries
instead in seconds. fixed.
- tftpd rexmt timeout was hardcoded by a define and therefore didn't
changed when the timeout option was sent. fixed.
- limit total retransmission timeout in tftp to also 255 seconds.
- replace obvious atoi()'s by strtonum().
ok claudio@
|
|
Note:
While testing the new option, we noticed that our stable tftpd has
a problem if any option is set (e.g. tsize) and you try to put a file.
This has nothing todo with our new blksize option. We fix this as
next.
ok claudio@
|
|
By Steven G. Kargl <kargl at troutmask dot apl dot washington.edu>
From FreeBSD
|
|
|
|
|
|
- Fix semantics: seekdir(pos); telldir() shoud return pos. The code
that implements this will be made faster in a later commit.
- We loose documented behaviour (after closedir() the telldir()
positions are not valid anymore). This was never in Posix, and most
other systems have nothing like it.
Diff originally from Paul Thorn, rewritten by me using some FreeBSD
code. "slap it in" deraadt@
|
|
|
|
updated but the function itself never was; ok millert
|
|
|
|
|
|
As discussed with espie@, ok millert@
|
|
tell user to get it through stdint.h (note old sys/types.h still works,
for now).
okay millert@, jmc@
|
|
|
|
|
|
is reentrant in its current implementation anyway.
Surfing on the recent major version bump, ok millert@ deraadt@
|
|
|
|
|
|
1997 (yes, really).
|
|
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable
|
|
Use correct values for _POSIX_TTY_NAME_MAX and _POSIX_LOGIN_NAME_MAX
Define MAXLOGNAME in terms of LOGIN_NAME_MAX
OK krw@
|
|
|
|
separate errno.h. sys/errno.h now only contains errno values (which
is included byerrno.h). OK deraadt@
|
|
|
|
OK deraadt@
|
|
|
|
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace
pollution issues, including the byte order defines. OK deraadt@
|
|
|
|
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.
|
|
should take intptr_t, not int, but we don't presently have intptr_t
available from unistd.h. OK marco@
|
|
jason@. Man page fixes by jmc@, prodding by jsg@. ok mickey@
|
|
(not really useful for now, it mostly helps some programs which want
to use it, it will become useful when we have full 16 bits locale).
|
|
|
|
From Solar Designer based on changes in FreeBSD. OK deraadt@
|