| /freebsd-13.1/contrib/apr/file_io/unix/ |
| H A D | pipe.c | 41 fd_flags = fcntl(thepipe->filedes, F_GETFL, 0); in pipeblock() 52 if (fcntl(thepipe->filedes, F_SETFL, fd_flags) == -1) { in pipeblock() 59 if (ioctl(thepipe->filedes, FIONBIO, &on, sizeof(on)) < 0) { in pipeblock() 75 int fd_flags = fcntl(thepipe->filedes, F_GETFL, 0); in pipenonblock() 87 if (fcntl(thepipe->filedes, F_SETFL, fd_flags) == -1) { in pipenonblock() 95 if (ioctl(thepipe->filedes, FIONBIO, &on, sizeof(on)) < 0) { in pipenonblock() 150 (*file)->filedes = *dafile; in apr_os_pipe_put_ex() 182 int filedes[2]; in file_pipe_create() local 184 if (pipe(filedes) == -1) { in file_pipe_create() 190 (*in)->filedes = filedes[0]; in file_pipe_create() [all …]
|
| H A D | filedup.c | 40 rv = dup3(old_file->filedes, (*new_file)->filedes, flags); in file_dup() 42 rv = dup2(old_file->filedes, (*new_file)->filedes); in file_dup() 49 if ((flags = fcntl((*new_file)->filedes, F_GETFD)) == -1) in file_dup() 53 if (fcntl((*new_file)->filedes, F_SETFD, flags) == -1) in file_dup() 59 rv = dup(old_file->filedes); in file_dup() 68 (*new_file)->filedes = rv; in file_dup() 174 old_file->filedes = -1; in apr_file_setaside()
|
| H A D | readwrite.c | 55 int bytesread = read(thefile->filedes, thefile->buffer, in file_read_buffered() 116 rv = read(thefile->filedes, buf, *nbytes); in apr_file_read() 129 rv = read(thefile->filedes, buf, *nbytes); in apr_file_read() 164 lseek(thefile->filedes, offset, SEEK_SET); in apr_file_write() 188 rv = write(thefile->filedes, buf, *nbytes); in apr_file_write() 248 lseek(thefile->filedes, offset, SEEK_SET); in apr_file_writev() 255 if ((bytes = writev(thefile->filedes, vec, nvec)) < 0) { in apr_file_writev() 364 if (fsync(thefile->filedes)) { in apr_file_sync() 389 if (fdatasync(thefile->filedes)) { 391 if (fcntl(thefile->filedes, F_FULLFSYNC)) { [all …]
|
| H A D | flock.c | 46 while ((rc = fcntl(thefile->filedes, fc, &l)) < 0 && errno == EINTR) in apr_file_lock() 72 while ((rc = flock(thefile->filedes, ltype)) < 0 && errno == EINTR) in apr_file_lock() 99 while ((rc = fcntl(thefile->filedes, F_SETLKW, &l)) < 0 in apr_file_unlock() 109 while ((rc = flock(thefile->filedes, LOCK_UN)) < 0 && errno == EINTR) in apr_file_unlock()
|
| H A D | open.c | 32 int fd = file->filedes; in file_cleanup() 37 file->filedes = -1; in file_cleanup() 52 file->filedes = fd; in file_cleanup() 211 (*new)->filedes = fd; in apr_file_open() 281 *thefile = file->filedes; in apr_os_file_get() 297 (*file)->filedes = *dafile; in apr_os_file_put() 391 if ((flags = fcntl(thefile->filedes, F_GETFD)) == -1) in APR_IMPLEMENT_INHERIT_SET() 395 if (fcntl(thefile->filedes, F_SETFD, flags) == -1) in APR_IMPLEMENT_INHERIT_SET()
|
| H A D | seek.c | 38 if (lseek(thefile->filedes, pos, SEEK_SET) != -1) { in setptr() 87 rv = lseek(thefile->filedes, *offset, where); in apr_file_seek() 132 if (ftruncate(fp->filedes, offset) == -1) { in apr_file_trunc()
|
| /freebsd-13.1/contrib/tcsh/ |
| H A D | mi.termios.c | 151 int tcgetattr(filedes, termios_p) in tcgetattr() argument 152 int filedes; in tcgetattr() 158 if (ioctl(filedes, TIOCGETP, &sgbuf) < 0 159 || ioctl(filedes, TIOCGETC, (struct sgttyb *) &tcbuf) < 0) 282 int tcsetattr(filedes, opt_actions, termios_p) in tcsetattr() argument 283 int filedes; in tcsetattr() 387 return ioctl(filedes, TIOCSETP, &sgbuf) < 0 && 388 ioctl(filedes, TIOCSETC, (struct sgttyb *) &tcbuf) < 0 ?
|
| /freebsd-13.1/contrib/apr/threadproc/unix/ |
| H A D | proc.c | 106 if (attr->child_in && (attr->child_in->filedes != -1)) in apr_procattr_child_in_set() 140 if (attr->child_out && (attr->child_out->filedes != -1)) in apr_procattr_child_out_set() 174 if (attr->child_err && (attr->child_err->filedes != -1)) in apr_procattr_child_err_set() 431 attr->child_in->filedes != STDIN_FILENO) { in apr_proc_create() 432 dup2(attr->child_in->filedes, STDIN_FILENO); in apr_proc_create() 440 attr->child_out->filedes != STDOUT_FILENO) { in apr_proc_create() 441 dup2(attr->child_out->filedes, STDOUT_FILENO); in apr_proc_create() 449 attr->child_err->filedes != STDERR_FILENO) { in apr_proc_create() 450 dup2(attr->child_err->filedes, STDERR_FILENO); in apr_proc_create() 597 if (attr->child_in && (attr->child_in->filedes != -1)) { in apr_proc_create() [all …]
|
| /freebsd-13.1/contrib/ntp/include/ |
| H A D | timepps-SunOS.h | 189 int filedes; /* file descriptor */ member 207 int filedes, /* file descriptor */ in time_pps_create() argument 220 if (ioctl(filedes, I_PUSH, "ppsclock") < 0) { in time_pps_create() 236 (*handle)->filedes = filedes; in time_pps_create() 435 if (ioctl(handle->filedes, CIOGETEV, (caddr_t) &ev) < 0) { in time_pps_fetch()
|
| H A D | timepps-Solaris.h | 210 int filedes; /* file descriptor */ member 233 int filedes, /* file descriptor */ in time_pps_create() argument 249 if (ioctl(filedes, TIOCSPPS, &one) < 0) { in time_pps_create() 265 punit->filedes = filedes; in time_pps_create() 498 if (ioctl(punit->filedes, TIOCGPPSEV, (caddr_t) &ev) < 0) { in time_pps_fetch()
|
| H A D | timepps-SCO.h | 189 int filedes; /* file descriptor */ member 209 int filedes, /* file descriptor */ in time_pps_create() argument 235 (*handle)->filedes = filedes; in time_pps_create() 425 if (ioctl(instance->filedes, TIOCDCDTIMESTAMP, &tv) < 0) { in time_pps_fetch()
|
| /freebsd-13.1/contrib/apr/poll/unix/ |
| H A D | wakeup.c | 95 if ((flags = fcntl(wakeup_pipe[0]->filedes, F_GETFD)) == -1) in apr_poll_create_wakeup_pipe() 99 if (fcntl(wakeup_pipe[0]->filedes, F_SETFD, flags) == -1) in apr_poll_create_wakeup_pipe() 105 if ((flags = fcntl(wakeup_pipe[1]->filedes, F_GETFD)) == -1) in apr_poll_create_wakeup_pipe() 109 if (fcntl(wakeup_pipe[1]->filedes, F_SETFD, flags) == -1) in apr_poll_create_wakeup_pipe()
|
| H A D | select.c | 100 fd = aprset[i].desc.f->filedes; in apr_poll() 160 fd = aprset[i].desc.f->filedes; in apr_poll() 253 fd = (apr_os_sock_t)descriptor->desc.f->filedes; in impl_pollset_add() 261 fd = descriptor->desc.f->filedes; in impl_pollset_add() 267 fd = descriptor->desc.f->filedes; in impl_pollset_add() 307 fd = descriptor->desc.f->filedes; in impl_pollset_remove() 412 fd = pollset->p->query_set[i].desc.f->filedes; in impl_pollset_poll()
|
| H A D | port.c | 242 fd = descriptor->desc.f->filedes; in impl_pollset_add() 286 fd = descriptor->desc.f->filedes; in impl_pollset_remove() 378 fd = ep->pfd.desc.f->filedes; in impl_pollset_poll() 512 fd = descriptor->desc.f->filedes; in impl_pollcb_add() 534 fd = descriptor->desc.f->filedes; in impl_pollcb_remove()
|
| H A D | poll.c | 107 pollset[i].fd = aprset[i].desc.f->filedes; in apr_poll() 192 pollset->p->pollset[pollset->nelts].fd = descriptor->desc.f->filedes; in impl_pollset_add() 196 pollset->p->pollset[pollset->nelts].fd = (SOCKET)descriptor->desc.f->filedes; in impl_pollset_add() 350 pollcb->pollset.ps[pollcb->nelts].fd = descriptor->desc.f->filedes; in impl_pollcb_add()
|
| H A D | epoll.c | 189 descriptor->desc.f->filedes, &ev); in impl_pollset_add() 225 descriptor->desc.f->filedes, &ev); in impl_pollset_remove() 400 descriptor->desc.f->filedes, &ev); in impl_pollcb_add() 425 descriptor->desc.f->filedes, &ev); in impl_pollcb_remove()
|
| H A D | kqueue.c | 166 fd = descriptor->desc.f->filedes; in impl_pollset_add() 212 fd = descriptor->desc.f->filedes; in impl_pollset_remove() 385 fd = descriptor->desc.f->filedes; in impl_pollcb_add() 418 fd = descriptor->desc.f->filedes; in impl_pollcb_remove()
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | lockf.c | 44 lockf(int filedes, int function, off_t size) in lockf() argument 69 __libc_interposing[INTERPOS_fcntl])(filedes, F_GETLK, &fl) in lockf() 85 __libc_interposing[INTERPOS_fcntl])(filedes, cmd, &fl)); in lockf()
|
| /freebsd-13.1/sys/kern/ |
| H A D | vfs_acl.c | 437 AUDIT_ARG_FD(uap->filedes); in sys___acl_get_fd() 438 error = getvnode(td, uap->filedes, in sys___acl_get_fd() 457 AUDIT_ARG_FD(uap->filedes); in sys___acl_set_fd() 458 error = getvnode(td, uap->filedes, in sys___acl_set_fd() 513 AUDIT_ARG_FD(uap->filedes); in sys___acl_delete_fd() 514 error = getvnode(td, uap->filedes, in sys___acl_delete_fd() 570 AUDIT_ARG_FD(uap->filedes); in sys___acl_aclcheck_fd() 571 error = getvnode(td, uap->filedes, in sys___acl_aclcheck_fd()
|
| /freebsd-13.1/lib/libc/posix1e/ |
| H A D | acl_delete.c | 76 acl_delete_fd_np(int filedes, acl_type_t type) in acl_delete_fd_np() argument 80 return (___acl_delete_fd(filedes, type)); in acl_delete_fd_np()
|
| /freebsd-13.1/contrib/apr/docs/ |
| H A D | incomplete_types | 19 HFILE filedes; 22 int filedes; 57 filetype filedes; 60 it is still not safe for a programmers to access the filedes field directly 62 type is. So for example printing the filedes using printf would yield wildly
|
| /freebsd-13.1/contrib/apr/mmap/unix/ |
| H A D | mmap.c | 98 if (file == NULL || file->filedes == -1 || file->buffered) in apr_mmap_create() 121 read(file->filedes, mm, size); in apr_mmap_create() 133 mm = mmap(NULL, size, native_flags, MAP_SHARED, file->filedes, offset); in apr_mmap_create()
|
| /freebsd-13.1/sys/sys/ |
| H A D | timepps.h | 179 time_pps_create(int filedes, pps_handle_t *handle) in time_pps_create() argument 184 error = ioctl(filedes, PPS_IOC_CREATE, 0); in time_pps_create() 187 *handle = filedes; in time_pps_create()
|
| /freebsd-13.1/contrib/apr/network_io/unix/ |
| H A D | sendrecv.c | 334 file->filedes, /* open file descriptor of the file to be sent */ in apr_socket_sendfile() 350 file->filedes, /* open file descriptor of the file to be sent */ in apr_socket_sendfile() 472 rv = sendfile(file->filedes, /* file to be sent */ in apr_socket_sendfile() 587 rv = sendfile(file->filedes, /* file to be sent */ in apr_socket_sendfile() 759 file->filedes, /* file descriptor to send */ in apr_socket_sendfile() 782 file->filedes, /* file descriptor to send */ in apr_socket_sendfile() 900 parms.file_descriptor = file->filedes; in apr_socket_sendfile() 1014 sfv[curvec].sfv_fd = file->filedes; in apr_socket_sendfile()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_pipe2.c | 121 int err, filedes[2]; in ATF_TC_BODY() local 143 err = pipe2(filedes, O_CLOEXEC); in ATF_TC_BODY()
|