Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
from Martin Natano
|
|
and a count instead of calling the callback on each one, while also renders
the 'dispose' argument superfluous.
Move unp_*() prototypes from <sys/un.h> to <sys/unpcb.h>
ok claudio@ mpi@
|
|
Since we use the poll backend for select(2), care must be taken not
to set the fd's bit in writefds in this case. A kernel-only flag,
POLLNOHUP, is used by selscan() to tell the poll backend not to
return POLLHUP on EOF. This is currently only used by fifo_poll().
The fifofs regress now passes. OK guenther@
|
|
things like POLLOUT on a read-only fd more sensibly. Previously,
any poll events could be used regardless of the actual file flags
of the descriptor. The new fifo_poll() is effectively a pared down
soo_poll() with slightly different semantics to batter match FIFOs.
OK and feedback from guenther@
|
|
atime and mtime are UTIME_OMIT (at least for ufs, tmpfs, and ext2fs), and
to correctly handle a timestamp of -1.
ok millert@
|
|
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
from Martin Natano
|
|
in the normal, blocking case. No longer passes regress but that
will be fixed later. OK jca@
|
|
|
|
|
|
- rename uiomove() to uiomovei() and update all its users.
- introduce uiomove(), which is similar to uiomovei() but with a size_t.
- rewrite uiomovei() as an uiomove() wrapper.
ok kettenis@
|
|
|
|
|
|
objective: vnode.h doesn't include uvm_extern.h anymore.
followup changes: include uvm_extern.h or lock.h where necessary.
ok and help from deraadt
|
|
|
|
to include that than rdnvar.h. ok deraadt dlg
|
|
|
|
by mutating so_state before calling soo_poll(), call soo_poll() normally
but avoid setting SS_CANTRCVMORE in the reader's so_state on first open.
This fixes EOF detection in select/poll on the reader side when the write
side is closed. Also set SS_ISDISCONNECTED when the writer count reaches
zero so POLLHUP is set in revents. Unlike Unix domain sockets, we need
to clear the EOF indicator after it has been read so that subsequent
reads will block waiting for a new writer. This now passes regress.
|
|
|
|
ok mpi@ kspillner@
|
|
|
|
ok tedu@
|
|
after discussions with beck deraadt kettenis.
|
|
don't need to be married.
ok guenther miod beck jsing kettenis
|
|
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's
thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the
"most active" scheduler state for the process's threads.
tweaks kettenis@
feedback and ok matthew@
|
|
vflush(9) succeed.
Problem reported by Helg Bredow.
OK sthen@
|
|
working read() and write().
ok tedu@
|
|
when the fuse communication channel is broken and ENOSYS when the
libfuse callback does not exist.
Reported by Helg Bredow, thanks!
ok tedu@
|
|
pulled by <uvm/uvm_extern.h> and turn uvm_total() into a private
function.
The preferred way to get memory stats is through the VM_UVMEXP
sysctl(3) since VM_METER is just a wrapper on top of it. In the
kernel, use `uvmexp' directly instead of uvm_total().
This change does not remove <sys/vmmeter.h> from <uvm/uvm_extern.h>
to give some more time to port maintainers to fix their ports.
ok guenther@ as part of a larger diff.
|
|
through uvm/uvm.h and add proper includes for function definitions.
ok syl@
|
|
ok tedu@
|
|
ok beck@
|
|
|
|
make it a list of processes, and change P_NOZOMBIE and P_STOPPED from thread
flags to process flags. Add allprocess list for the code that just wants
to see processes.
ok tedu@
|
|
ok millert@.
|
|
can be further simplified.
ok kettenis@
|
|
Spotted by pelikan@
Some input from stsp@
OK stsp@, pelikan@
|
|
OK tedu@
"it looks good to me" from guenther@
|
|
Input from millert@.
Ok millert@, tedu@.
|
|
This way, if fuse unmounts a FS without FBT_DESTROY, the fuse_mnt pointer
is already invalidated. Also, on weird unmount situations with vnodes in
use, vflush() them before doing fuse_device_cleanup().
Tested with ntfs-3g, ok syl@.
|
|
of vnode in userspace.
"I think it's right" from tedu@.
|
|
the fuse device.
ok sthen@
|
|
libfuse is still open before sending fusebufs.
ok sthen@
|
|
Found the hard way and ok mpk@
|
|
|
|
tested with ajacoutot@ on gvfs+nautilus.
|
|
|