Lines Matching refs:thread
217 struct thread;
231 int closef(struct file *fp, struct thread *td);
233 int dupfdopen(struct thread *td, struct filedesc *fdp, int dfd, int mode,
235 int falloc_caps(struct thread *td, struct file **resultfp, int *resultfd,
237 void falloc_abort(struct thread *td, struct file *fp);
238 int _falloc_noinstall(struct thread *td, struct file **resultfp, u_int n);
242 int finstall(struct thread *td, struct file *fp, int *resultfd, int flags,
244 int finstall_refed(struct thread *td, struct file *fp, int *resultfd, int flags,
246 int fdalloc(struct thread *td, int minfd, int *result);
247 int fdallocn(struct thread *td, int minfd, int *fds, int n);
248 int fdcheckstd(struct thread *td);
249 void fdclose(struct thread *td, struct file *fp, int idx);
250 void fdcloseexec(struct thread *td);
251 void fdsetugidsafety(struct thread *td);
255 void fdinstall_remapped(struct thread *td, struct filedesc *fdp);
256 void fdunshare(struct thread *td);
257 void fdescfree(struct thread *td);
266 int getvnode(struct thread *td, int fd, cap_rights_t *rightsp,
272 int fget_cap(struct thread *td, int fd, cap_rights_t *needrightsp,
329 void pdescfree(struct thread *td);
332 void pdunshare(struct thread *td);
334 void pwd_chdir(struct thread *td, struct vnode *vp);
335 int pwd_chroot(struct thread *td, struct vnode *vp);
336 int pwd_chroot_chdir(struct thread *td, struct vnode *vp);
342 struct pwd *pwd_hold(struct thread *td);