Age | Commit message (Collapse) | Author |
|
|
|
a string, being careful to deal with 0-length strings. Help and input
from jmc, ok deraadt
|
|
OK and input from deraadt, jmc, millert.
|
|
Document what "msgsz" argument really denotes;
from brian candler (freebsd pr #101145)
Don't say that "msgsz" can be less than 0, it cannot
as it's unsigned (POSIX has the same bug);
from ru@freebsd
ok millert deraadt
|
|
from simon barner (freebsd pr #57153);
ok millert deraadt
|
|
|
|
|
|
|
|
own brains out, and then takes lint down with it. To be investigated...
|
|
not to any process that is a descendant of the current process.
from ryan younce (freebsd pr #58710);
confirmed by otto and ok
|
|
kick started by netbsd pr 19603 from kevin p. neal.
rillig@netbsd seems to have adapted that, and i have in turn
adapted it again;
ok otto
|
|
|
|
|
|
NetBSD.
|
|
|
|
|
|
vague like that) REQUIRE a major crank. Yet it was not done for
getcwd. Now a lot of people are going to get screwed
|
|
kill some trailing whitespace;
|
|
and S_ISSOCK() macros.
OK deraadt@, OK and help from jmc@.
|
|
Log Message:
Switch from 4-clause to 2-clause BSD license.
Ok dillo@, board@.
|
|
ok jmc@
|
|
detctecion of underflow where it would otherwise not happen for FPUs
that have a larger register size than sizeof double (i386, m68k). ok
deraadt@ weingart@ kettenis@
|
|
from Matthew R. Dempsky <mrd at alkemio dot org>
ok deraadt
|
|
floppies and cd's were removable, displaying that fact in disklabel
output was unlikely to help. And the display in disklabel was the only
use of D_REMOVABLE in the tree.
ok marco@
|
|
Adjust design of file descriptor table to eliminate races
with both opening and closing of file descriptor entries
and eliminates one class of deadlocks. One nice side effect
of this change in design should be better performance for
applications that open and close many file descriptors due
to reduced fd_table_lock contention and fd entry reuse.
- Add entry states to manage use of entry and eliminate
some closing races. fd entries are not deallocated upon
close() now.
- Call _thread_fd_table_init with one of five discreet
modes to properly initialize an entry and manage the
state transition to open.
- When closing an entry hold the entry spinlock locked
across the state transition and the _thread_sys_close
call to close another race.
- Introduce a new lock type FD_RDWR_CLOSE that transitions
either a closed entry or an open entry into closing state
and then waits for a RDWR lock so that the lock queue can
unwind normally. All subsequent fd lock attempts for that
entry are rejected with EBADF until the fd is fully closed,
or reopened by dup2(). Once a thread holds the FD_RDWR_LOCK
it is safe to close() it or dup2() on it.
- When a thread creates a new fd there is a window of time
when another thread could attempt to use the fd before the
creating thread has initialized the entry for it. This can
result in improper status_flags for the entry, so record
the entries init mode, detect when this has happened and
correct the status_flags when needed.
reviewed by marc@ & brad@, tested by several, okay brad@
|
|
cool and recognizes __dead, and because shorter examples are clearer.
OK otto@.
|
|
not being used in the tree for anything obviously useful. Get it done
early so we can find if there are non-obvious uses out there.
ok deraadt@ beck@
|
|
OK otto@ and jaredy@.
|
|
with some guidance by me; ok jaredy@
|
|
flag from its optional argument if permutation is disabled. The
idea was that since "r:" would match "-r foo" then "r::" should
match "-r foo" too as long as we know that things have not been
reshuffled. Unfortunately, this causes incompatibilities with GNU
getopt_long when the POSIXLY_CORRECT environment variable is set.
OK deraadt@
|
|
|
|
ok deraadt@
|
|
|
|
|
|
from joachim schipper (pr #5228)
|
|
OK jmc@ miod@
|
|
ok jmc@
|
|
|
|
tweak whilst in here
|
|
- some indent
|
|
about them;
ok djm
|
|
when using removable media devices, along with changes to scsi_base to
detect such cases in tapes other devices. This makes tar, dd, and friends
report a semi useful error message instead of nonsense when there is nothing
in the device.
Includes libc minor bump, and will require the corresponding sets change.
ok krw@ deraadt@
|
|
|
|
|
|
|
|
it to errno.
ok deraadt@
|
|
|
|
|
|
from eren elci; tweaked by djm
ok djm
|
|
re-worded and ok djm
|