Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/filedesc.h
Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Lines | filecaps_init(struct filecaps *fcaps) | ||||
fcaps->fc_nioctls = -1; | fcaps->fc_nioctls = -1; | ||||
} | } | ||||
bool filecaps_copy(const struct filecaps *src, struct filecaps *dst, | bool filecaps_copy(const struct filecaps *src, struct filecaps *dst, | ||||
bool locked); | bool locked); | ||||
void filecaps_move(struct filecaps *src, struct filecaps *dst); | void filecaps_move(struct filecaps *src, struct filecaps *dst); | ||||
void filecaps_free(struct filecaps *fcaps); | void filecaps_free(struct filecaps *fcaps); | ||||
int closef(struct file *fp, struct thread *td); | int closef(struct file *fp, struct thread *td); | ||||
void closef_nothread(struct file *fp); | |||||
int dupfdopen(struct thread *td, struct filedesc *fdp, int dfd, int mode, | int dupfdopen(struct thread *td, struct filedesc *fdp, int dfd, int mode, | ||||
int openerror, int *indxp); | int openerror, int *indxp); | ||||
int falloc_caps(struct thread *td, struct file **resultfp, int *resultfd, | int falloc_caps(struct thread *td, struct file **resultfp, int *resultfd, | ||||
int flags, struct filecaps *fcaps); | int flags, struct filecaps *fcaps); | ||||
int falloc_noinstall(struct thread *td, struct file **resultfp); | void falloc_abort(struct thread *td, struct file *fp); | ||||
int _falloc_noinstall(struct thread *td, struct file **resultfp, u_int n); | |||||
#define falloc_noinstall(td, resultfp) _falloc_noinstall(td, resultfp, 1) | |||||
void _finstall(struct filedesc *fdp, struct file *fp, int fd, int flags, | void _finstall(struct filedesc *fdp, struct file *fp, int fd, int flags, | ||||
struct filecaps *fcaps); | struct filecaps *fcaps); | ||||
int finstall(struct thread *td, struct file *fp, int *resultfd, int flags, | int finstall(struct thread *td, struct file *fp, int *resultfd, int flags, | ||||
struct filecaps *fcaps); | |||||
int finstall_refed(struct thread *td, struct file *fp, int *resultfd, int flags, | |||||
struct filecaps *fcaps); | struct filecaps *fcaps); | ||||
int fdalloc(struct thread *td, int minfd, int *result); | int fdalloc(struct thread *td, int minfd, int *result); | ||||
int fdallocn(struct thread *td, int minfd, int *fds, int n); | int fdallocn(struct thread *td, int minfd, int *fds, int n); | ||||
int fdcheckstd(struct thread *td); | int fdcheckstd(struct thread *td); | ||||
void fdclose(struct thread *td, struct file *fp, int idx); | void fdclose(struct thread *td, struct file *fp, int idx); | ||||
void fdcloseexec(struct thread *td); | void fdcloseexec(struct thread *td); | ||||
void fdsetugidsafety(struct thread *td); | void fdsetugidsafety(struct thread *td); | ||||
struct filedesc *fdcopy(struct filedesc *fdp); | struct filedesc *fdcopy(struct filedesc *fdp); | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |