12.07.2015 Views

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FILEDESC (9) <strong>NetBSD</strong> <strong>Kernel</strong> Developer’s <strong>Manual</strong> FILEDESC (9)<strong>NAME</strong>filedesc, dupfdopen, falloc, fd_getfile, fdalloc, fdcheckstd, fdclear, fdclone,fdcloseexec, fdcopy, fdexpand, fdfree, fdinit, fdrelease, fdremove, fdshare,fdunshare —file descriptor tables and operationsSYNOPSIS#include #include intfalloc(struct lwp ∗l , struct file ∗∗resultfp , int ∗resultfd);struct file ∗fd_getfile(struct filedesc ∗fdp , int fd);intdupfdopen(struct lwp ∗l , int indx , int dfd , int mode , int error);intfdalloc(struct proc ∗p , int want , int ∗result);intfdcheckstd(struct lwp ∗l);voidfdclear(struct lwp ∗l);intfdclone(struct lwp ∗l , struct file ∗fp , int fd , int flag ,const struct fileops ∗fops , void ∗data);voidfdcloseexec(struct lwp ∗l);struct filedesc ∗fdcopy(struct proc ∗p);voidfdexpand(struct proc ∗p);voidfdfree(struct lwp ∗l);struct filedesc ∗fdinit(struct proc ∗p);intfdrelease(struct lwp ∗l , int fd);voidfdremove(struct filedesc ∗fdp , int fd);voidfdshare(struct proc ∗p1 , struct proc ∗p2);voidfdunshare(struct lwp ∗l);<strong>NetBSD</strong> 3.0 July 24, 2006 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!