Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/filedesc.h
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | |||||
/* For backward compatibility. */ | /* For backward compatibility. */ | ||||
#define falloc(td, resultfp, resultfd, flags) \ | #define falloc(td, resultfp, resultfd, flags) \ | ||||
falloc_caps(td, resultfp, resultfd, flags, NULL) | falloc_caps(td, resultfp, resultfd, flags, NULL) | ||||
struct thread; | struct thread; | ||||
void filecaps_init(struct filecaps *fcaps); | void filecaps_init(struct filecaps *fcaps); | ||||
int 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); | ||||
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, | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |