Lines Matching defs:fd
174 int fd, error;
183 error = falloc(p, &fp, &fd, vfs_context_current());
193 fp_free(p, fd, fp);
209 procfdtbl_releasefd(p, fd, NULL);
211 fp_drop(p, fd, fp, 1);
214 *retval = fd;
242 AUDIT_ARG(fd, uap->s);
296 AUDIT_ARG(fd, uap->s);
344 int fd = uap->s;
351 AUDIT_ARG(fd, uap->s);
359 error = fp_getfsock(p, fd, &fp, &head);
542 file_drop(fd);
592 int fd = uap->s;
595 AUDIT_ARG(fd, uap->s);
596 error = file_socket(fd, &so);
675 file_drop(fd);
702 int fd, error, sv[2];
712 error = falloc(p, &fp1, &fd, vfs_context_current());
720 sv[0] = fd;
722 error = falloc(p, &fp2, &fd, vfs_context_current());
730 sv[1] = fd;
913 AUDIT_ARG(fd, uap->s);
962 write_uap.fd = uap->s;
1004 AUDIT_ARG(fd, uap->s);
1327 AUDIT_ARG(fd, uap->s);
1382 read_uap.fd = uap->s;
1430 AUDIT_ARG(fd, uap->s);
1558 AUDIT_ARG(fd, uap->s);
1596 AUDIT_ARG(fd, uap->s);
1852 /* The fd's in the buffer must expand to be pointers, thus we need twice as much space */
2048 * int sendfile(int fd, int s, off_t offset, off_t *nbytes,
2051 * Send a file specified by 'fd' and starting at 'offset' to a socket
2083 AUDIT_ARG(fd, uap->fd);
2090 if ((error = fp_getfvp(p, uap->fd, &fp, &vp))) {
2183 nuap.fd = uap->s;
2433 nuap.fd = uap->s;
2446 file_drop(uap->fd);