Re: Refactoring process-local file descriptor data

2014-09-09 Thread Kent R. Spillner
-current build on amd64 fails in libkvm: === libkvm cc -O2 -pipe -g -D_LIBKVM -c -fpic -DPIC /usr/src/lib/libkvm/kvm_proc2.c -o kvm_proc2.so cc -O2 -pipe -g -D_LIBKVM -c -p /usr/src/lib/libkvm/kvm_proc2.c -o kvm_proc2.po cc -O2 -pipe -g -D_LIBKVM -c /usr/src/lib/libkvm/kvm_proc2.c -o

Re: Refactoring process-local file descriptor data

2014-09-07 Thread Jean-Philippe Ouellet
On Wed, Sep 03, 2014 at 03:31:50PM -0500, Kent R. Spillner wrote: Need to re-roll for -current? Yep, sorry. I knew the the dup3 changes would break it when I saw them go in but I've been busy with classes and stuff. Here's a new version. This one considerably less tested than previous versions,

Re: Refactoring process-local file descriptor data

2014-09-03 Thread Kent R. Spillner
Need to re-roll for -current? /usr/src/sys/kern/kern_descrip.c: In function 'dodup3': /usr/src/sys/kern/kern_descrip.c:312: error: 'struct filedesc' has no member named 'fd_ofileflags' cc -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main -Wno-uninitialized

Re: Refactoring process-local file descriptor data

2014-08-10 Thread Jean-Philippe Ouellet
Ping? On Sun, Jul 13, 2014 at 03:45:44PM -0400, Jean-Philippe Ouellet wrote: Updated for mallocarray() and free(size). On Thu, Jul 10, 2014 at 04:13:38PM -0400, Jean-Philippe Ouellet wrote: This diff adds another struct between filedesc and file to store process-local per-descriptor

Re: Refactoring process-local file descriptor data

2014-07-13 Thread Jean-Philippe Ouellet
Updated for mallocarray() and free(size). On Thu, Jul 10, 2014 at 04:13:38PM -0400, Jean-Philippe Ouellet wrote: This diff adds another struct between filedesc and file to store process-local per-descriptor information. Currently, the only thing in this struct is the file pointer and some

Refactoring process-local file descriptor data

2014-07-10 Thread Jean-Philippe Ouellet
This diff adds another struct between filedesc and file to store process-local per-descriptor information. Currently, the only thing in this struct is the file pointer and some flags, however I have another patch on top of this that adds capsicum capabilities to it. (And another that uses