Lines Matching defs:fd

2241 	AUDIT_ARG(fd, uap->fd);
2243 if ( (error = file_vnode(uap->fd, &vp)) )
2248 file_drop(uap->fd);
2267 file_drop(uap->fd);
2353 AUDIT_ARG(fd, uap->fd);
2355 if ( (error = file_vnode(uap->fd, &vp)) )
2360 file_drop(uap->fd);
2379 file_drop(uap->fd);
2648 AUDIT_ARG(fd, uap->fd);
2649 if (per_thread && uap->fd == -1) {
2669 if ( (error = file_vnode(uap->fd, &vp)) )
2672 file_drop(uap->fd);
2730 file_drop(uap->fd);
2735 file_drop(uap->fd);
4179 if ( (error = fp_getfvp(p,uap->fd, &fp, &vp)) ) {
4185 file_drop(uap->fd);
4199 file_drop(uap->fd);
4204 file_drop(uap->fd);
4249 file_drop(uap->fd);
5106 AUDIT_ARG(fd, uap->fd);
5108 if ( (error = file_vnode(uap->fd, &vp)) )
5112 file_drop(uap->fd);
5120 file_drop(uap->fd);
5276 fchmod1(__unused proc_t p, int fd, struct vnode_attr *vap)
5281 AUDIT_ARG(fd, fd);
5283 if ((error = file_vnode(fd, &vp)) != 0)
5286 file_drop(fd);
5293 file_drop(fd);
5310 * uap->fd File descriptor of file to change mode
5346 error = fchmod1(p, uap->fd, &va);
5368 return(fchmod1(p, uap->fd, &va));
5455 AUDIT_ARG(fd, uap->fd);
5457 if ( (error = file_vnode(uap->fd, &vp)) )
5461 file_drop(uap->fd);
5498 file_drop(uap->fd);
5631 AUDIT_ARG(fd, uap->fd);
5635 if ((error = file_vnode(uap->fd, &vp)) != 0)
5638 file_drop(uap->fd);
5644 file_drop(uap->fd);
5703 int fd = uap->fd;
5705 AUDIT_ARG(fd, uap->fd);
5709 if ( (error = fp_lookup(p,fd,&fp,0)) ) {
5714 error = pshm_truncate(p, fp, uap->fd, uap->length, retval);
5749 file_drop(fd);
5806 * uap->fd The descriptor to synchronize
5811 * fp_getfvp:ENOTSUP fd does not refer to a vnode
5825 AUDIT_ARG(fd, uap->fd);
5827 if ( (error = fp_getfvp(p, uap->fd, &fp, &vp)) )
5830 file_drop(uap->fd);
5850 file_drop(uap->fd);
6911 getdirentries_common(int fd, user_addr_t bufp, user_size_t bufsize, ssize_t *bytesread,
6923 error = fp_getfvp(vfs_context_proc(&context), fd, &fp, &vp);
7003 file_drop(fd);
7015 AUDIT_ARG(fd, uap->fd);
7016 error = getdirentries_common(uap->fd, uap->buf, uap->count, &bytesread, &offset, 0);
7038 AUDIT_ARG(fd, uap->fd);
7039 error = getdirentries_common(uap->fd, uap->buf, uap->bufsize, &bytesread, &offset, VNODE_READDIR_EXTENDED);
7191 int fd = uap->fd;
7195 AUDIT_ARG(fd, fd);
7204 if ( (error = fp_getfvp(p, fd, &fp, &vp)) ) {
7282 file_drop(fd);
8724 int fd = -1;
8726 AUDIT_ARG(fd, uap->fd);
8731 if ((error = file_vnode(uap->fd, &vp)))
8733 fd = uap->fd;
8748 if (fd != -1)
8749 file_drop(fd);
8879 if ( (error = file_vnode(uap->fd, &vp)) ) {
8883 file_drop(uap->fd);
8902 file_drop(uap->fd);
8999 if ( (error = file_vnode(uap->fd, &vp)) ) {
9003 file_drop(uap->fd);
9019 file_drop(uap->fd);
9094 if ( (error = file_vnode(uap->fd, &vp)) ) {
9098 file_drop(uap->fd);
9111 file_drop(uap->fd);
9177 if ( (error = file_vnode(uap->fd, &vp)) ) {
9181 file_drop(uap->fd);
9193 file_drop(uap->fd);