fd 261 daemons/execd/remoted_tls.c int fd; fd 268 daemons/execd/remoted_tls.c fd = socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol); fd 269 daemons/execd/remoted_tls.c if (fd < 0) { fd 276 daemons/execd/remoted_tls.c rc = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)); fd 279 daemons/execd/remoted_tls.c close(fd); fd 285 daemons/execd/remoted_tls.c rc = setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &optval, sizeof(optval)); fd 288 daemons/execd/remoted_tls.c close(fd); fd 293 daemons/execd/remoted_tls.c if (bind(fd, addr->ai_addr, addr->ai_addrlen) != 0) { fd 295 daemons/execd/remoted_tls.c close(fd); fd 299 daemons/execd/remoted_tls.c if (listen(fd, 10) == -1) { fd 301 daemons/execd/remoted_tls.c close(fd); fd 304 daemons/execd/remoted_tls.c return fd; fd 143 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); fd 296 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); fd 322 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); fd 139 daemons/pacemakerd/pcmkd_corosync.c int fd = -1, retries = 0, rv; fd 158 daemons/pacemakerd/pcmkd_corosync.c rc = corosync_cfg_fd_get(cfg_handle, &fd); fd 166 daemons/pacemakerd/pcmkd_corosync.c if (!(rv = crm_ipc_is_authentic_process(fd, (uid_t) 0,(gid_t) 0, &found_pid, fd 197 daemons/pacemakerd/pcmkd_corosync.c mainloop_add_fd("corosync-cfg", G_PRIORITY_DEFAULT, fd, &cfg_handle, &cfg_fd_callbacks); fd 230 daemons/pacemakerd/pcmkd_corosync.c int fd = -1; fd 236 daemons/pacemakerd/pcmkd_corosync.c if (cpg_fd_get(local_handle, &fd) != CS_OK) { fd 272 daemons/pacemakerd/pcmkd_corosync.c int fd = -1; fd 300 daemons/pacemakerd/pcmkd_corosync.c rc = cmap_fd_get(local_handle, &fd); fd 309 daemons/pacemakerd/pcmkd_corosync.c if (!(rv = crm_ipc_is_authentic_process(fd, (uid_t) 0,(gid_t) 0, &found_pid, fd 85 include/crm/common/internal.h int pcmk__write_sync(int fd, const char *contents); fd 86 include/crm/common/internal.h int pcmk__set_nonblocking(int fd); fd 147 include/crm/common/mainloop.h mainloop_io_t *mainloop_add_fd(const char *name, int priority, int fd, void *userdata, fd 128 include/crm/common/xml.h int write_xml_fd(xmlNode * xml_node, const char *filename, int fd, gboolean compress); fd 293 include/crm/lrmd.h int (*connect) (lrmd_t * lrmd, const char *client_name, int *fd); fd 109 include/portability.h int fd; /**< as Unix file descriptor */ fd 366 lib/cib/cib_file.c int rc, fd; fd 406 lib/cib/cib_file.c fd = mkstemp(tmp_cib); fd 407 lib/cib/cib_file.c if (fd < 0) { fd 415 lib/cib/cib_file.c if (fchmod(fd, S_IRUSR | S_IWUSR) < 0) { fd 421 lib/cib/cib_file.c if (cib_do_chown && (fchown(fd, cib_file_owner, cib_file_group) < 0)) { fd 429 lib/cib/cib_file.c if (write_xml_fd(cib_root, tmp_cib, fd, FALSE) <= 0) { fd 442 lib/cib/cib_file.c fd = mkstemp(tmp_digest); fd 443 lib/cib/cib_file.c if (fd < 0) { fd 448 lib/cib/cib_file.c if (cib_do_chown && (fchown(fd, cib_file_owner, cib_file_group) < 0)) { fd 452 lib/cib/cib_file.c close(fd); fd 455 lib/cib/cib_file.c rc = pcmk__write_sync(fd, digest); fd 460 lib/cib/cib_file.c close(fd); fd 463 lib/cib/cib_file.c close(fd); fd 110 lib/cluster/corosync.c int fd = -1; fd 144 lib/cluster/corosync.c rc = cmap_fd_get(cmap_handle, &fd); fd 152 lib/cluster/corosync.c if (!(rv = crm_ipc_is_authentic_process(fd, (uid_t) 0,(gid_t) 0, &found_pid, fd 346 lib/cluster/corosync.c int fd = 0; fd 391 lib/cluster/corosync.c rc = quorum_fd_get(pcmk_quorum_handle, &fd); fd 399 lib/cluster/corosync.c if (!(rv = crm_ipc_is_authentic_process(fd, (uid_t) 0,(gid_t) 0, &found_pid, fd 434 lib/cluster/corosync.c mainloop_add_fd("quorum", G_PRIORITY_HIGH, fd, dispatch, &quorum_fd_callbacks); fd 566 lib/cluster/corosync.c int fd = -1; fd 588 lib/cluster/corosync.c rc = cmap_fd_get(cmap_handle, &fd); fd 596 lib/cluster/corosync.c if (!(rv = crm_ipc_is_authentic_process(fd, (uid_t) 0,(gid_t) 0, &found_pid, fd 676 lib/cluster/corosync.c int fd = -1; fd 689 lib/cluster/corosync.c rc = cmap_fd_get(handle, &fd); fd 697 lib/cluster/corosync.c if (!(rv = crm_ipc_is_authentic_process(fd, (uid_t) 0,(gid_t) 0, &found_pid, fd 737 lib/cluster/corosync.c int fd = -1; fd 768 lib/cluster/corosync.c cs_rc = cmap_fd_get(cmap_handle, &fd); fd 777 lib/cluster/corosync.c rc = crm_ipc_is_authentic_process(fd, (uid_t) 0, (gid_t) 0, fd 124 lib/cluster/cpg.c int fd = -1; fd 143 lib/cluster/cpg.c rc = cpg_fd_get(local_handle, &fd); fd 151 lib/cluster/cpg.c if (!(rv = crm_ipc_is_authentic_process(fd, (uid_t) 0,(gid_t) 0, &found_pid, fd 788 lib/cluster/cpg.c int fd = -1; fd 828 lib/cluster/cpg.c rc = cpg_fd_get(handle, &fd); fd 836 lib/cluster/cpg.c if (!(rv = crm_ipc_is_authentic_process(fd, (uid_t) 0,(gid_t) 0, &found_pid, fd 868 lib/cluster/cpg.c mainloop_add_fd("corosync-cpg", G_PRIORITY_MEDIUM, fd, cluster, &cpg_fd_callbacks); fd 397 lib/common/io.c int fd; fd 406 lib/common/io.c fd = dirfd(directory); fd 407 lib/common/io.c if (fd < 0) { fd 412 lib/common/io.c if (fsync(fd) < 0) { fd 487 lib/common/io.c pcmk__write_sync(int fd, const char *contents) fd 490 lib/common/io.c FILE *fp = fdopen(fd, "w"); fd 517 lib/common/io.c pcmk__set_nonblocking(int fd) fd 519 lib/common/io.c int flag = fcntl(fd, F_GETFL); fd 524 lib/common/io.c if (fcntl(fd, F_SETFL, flag | O_NONBLOCK) < 0) { fd 369 lib/common/ipc_client.c pollfd.fd = crm_ipc_get_fd(api->ipc); fd 775 lib/common/ipc_client.c client->pfd.fd = -1; fd 808 lib/common/ipc_client.c client->pfd.fd = crm_ipc_get_fd(client); fd 809 lib/common/ipc_client.c if (client->pfd.fd < 0) { fd 825 lib/common/ipc_client.c if ((rv = pcmk__crm_ipc_is_authentic_process(client->ipc, client->pfd.fd, cl_uid, cl_gid, fd 903 lib/common/ipc_client.c int fd = 0; fd 905 lib/common/ipc_client.c if (client && client->ipc && (qb_ipcc_fd_get(client->ipc, &fd) == 0)) { fd 906 lib/common/ipc_client.c return fd; fd 927 lib/common/ipc_client.c } else if (client->pfd.fd < 0) { fd 934 lib/common/ipc_client.c client->pfd.fd = -EINVAL; fd 1403 lib/common/ipc_client.c int fd; fd 1417 lib/common/ipc_client.c qb_rc = qb_ipcc_fd_get(c, &fd); fd 1425 lib/common/ipc_client.c auth_rc = pcmk__crm_ipc_is_authentic_process(c, fd, refuid, refgid, &found_pid, fd 273 lib/common/logging.c enable_logfile(int fd) fd 275 lib/common/logging.c qb_log_ctl(fd, QB_LOG_CONF_ENABLED, QB_TRUE); fd 277 lib/common/logging.c qb_log_ctl(fd, QB_LOG_CONF_FILE_SYNC, 1); // Turn on synchronous writes fd 282 lib/common/logging.c qb_log_ctl(fd, QB_LOG_CONF_MAX_LINE_LEN, 800); fd 289 lib/common/logging.c disable_logfile(int fd) fd 291 lib/common/logging.c qb_log_ctl(fd, QB_LOG_CONF_ENABLED, QB_FALSE); fd 318 lib/common/logging.c int fd = 0; fd 364 lib/common/logging.c fd = qb_log_file_open(filename); fd 365 lib/common/logging.c if (fd < 0) { fd 367 lib/common/logging.c filename, strerror(-fd)); fd 368 lib/common/logging.c return -fd; // == +errno fd 372 lib/common/logging.c default_fd = fd; fd 381 lib/common/logging.c enable_logfile(fd); fd 456 lib/common/mainloop.c gint fd = g_io_channel_unix_get_fd(gio); fd 458 lib/common/mainloop.c crm_trace("%p.%d %d", data, fd, condition); fd 464 lib/common/mainloop.c return (adaptor->fn(fd, condition, adaptor->data) == 0); fd 541 lib/common/mainloop.c gio_poll_dispatch_update(enum qb_loop_priority p, int32_t fd, int32_t evts, fd 548 lib/common/mainloop.c res = qb_array_index(gio_map, fd, (void **)&adaptor); fd 550 lib/common/mainloop.c crm_err("Array lookup failed for fd=%d: %d", fd, res); fd 554 lib/common/mainloop.c crm_trace("Adding fd=%d to mainloop as adaptor %p", fd, adaptor); fd 557 lib/common/mainloop.c crm_err("Adaptor for descriptor %d is still in-use", fd); fd 561 lib/common/mainloop.c crm_err("Adaptor for descriptor %d is not in-use", fd); fd 566 lib/common/mainloop.c channel = g_io_channel_unix_new(fd); fd 568 lib/common/mainloop.c crm_err("No memory left to add fd=%d", fd); fd 609 lib/common/mainloop.c gio_poll_dispatch_add(enum qb_loop_priority p, int32_t fd, int32_t evts, fd 612 lib/common/mainloop.c return gio_poll_dispatch_update(p, fd, evts, data, fn, QB_TRUE); fd 616 lib/common/mainloop.c gio_poll_dispatch_mod(enum qb_loop_priority p, int32_t fd, int32_t evts, fd 619 lib/common/mainloop.c return gio_poll_dispatch_update(p, fd, evts, data, fn, QB_FALSE); fd 623 lib/common/mainloop.c gio_poll_dispatch_del(int32_t fd) fd 627 lib/common/mainloop.c crm_trace("Looking for fd=%d", fd); fd 628 lib/common/mainloop.c if (qb_array_index(gio_map, fd, (void **)&adaptor) == 0) { fd 724 lib/common/mainloop.c int fd; fd 751 lib/common/mainloop.c CRM_ASSERT(client->fd == g_io_channel_unix_get_fd(gio)); fd 975 lib/common/mainloop.c mainloop_add_fd(const char *name, int priority, int fd, void *userdata, fd 980 lib/common/mainloop.c if (fd >= 0) { fd 993 lib/common/mainloop.c client->fd = fd; fd 994 lib/common/mainloop.c client->channel = g_io_channel_unix_new(fd); fd 1010 lib/common/mainloop.c crm_trace("Added connection %d for %s[%p].%d", client->source, client->name, client, fd); fd 125 lib/common/pid.c int fd; fd 133 lib/common/pid.c fd = open(filename, O_RDONLY); fd 134 lib/common/pid.c if (fd < 0) { fd 138 lib/common/pid.c if ((fstat(fd, &sbuf) >= 0) && (sbuf.st_size < LOCKSTRLEN)) { fd 144 lib/common/pid.c if (read(fd, buf, sizeof(buf)) < 1) { fd 160 lib/common/pid.c close(fd); fd 222 lib/common/pid.c int fd = 0; fd 232 lib/common/pid.c fd = open(filename, O_CREAT | O_WRONLY | O_EXCL, 0644); fd 233 lib/common/pid.c if (fd < 0) { fd 238 lib/common/pid.c rc = write(fd, buf, LOCKSTRLEN); fd 239 lib/common/pid.c close(fd); fd 42 lib/common/procfs.c int fd, local_pid; fd 63 lib/common/procfs.c fd = open(procpath, O_RDONLY); fd 64 lib/common/procfs.c if (fd < 0 ) { fd 67 lib/common/procfs.c if (fstat(fd, &statbuf) < 0) { fd 68 lib/common/procfs.c close(fd); fd 71 lib/common/procfs.c close(fd); fd 650 lib/common/remote.c fds.fd = sock; fd 674 lib/common/schemas.c int fd = 0; fd 683 lib/common/schemas.c fd = mkstemp(filename); fd 684 lib/common/schemas.c write_xml_fd(xml_blob, filename, fd, FALSE); fd 1271 lib/common/xml.c write_xml_fd(xmlNode * xml_node, const char *filename, int fd, gboolean compress) fd 1277 lib/common/xml.c CRM_CHECK(xml_node && (fd > 0), return -EINVAL); fd 1278 lib/common/xml.c stream = fdopen(fd, "w"); fd 1014 lib/lrmd/lrmd_client.c lrmd_ipc_connect(lrmd_t * lrmd, int *fd) fd 1026 lib/lrmd/lrmd_client.c if (fd) { fd 1030 lib/lrmd/lrmd_client.c *fd = crm_ipc_get_fd(native->ipc); fd 1464 lib/lrmd/lrmd_client.c lrmd_tls_connect(lrmd_t * lrmd, int *fd) fd 1514 lib/lrmd/lrmd_client.c if (fd) { fd 1515 lib/lrmd/lrmd_client.c *fd = native->sock; fd 1524 lib/lrmd/lrmd_client.c lrmd_api_connect(lrmd_t * lrmd, const char *name, int *fd) fd 1531 lib/lrmd/lrmd_client.c rc = lrmd_ipc_connect(lrmd, fd); fd 1535 lib/lrmd/lrmd_client.c rc = lrmd_tls_connect(lrmd, fd); fd 155 lib/services/dbus.c int fd = dbus_watch_get_unix_fd(watch); fd 157 lib/services/dbus.c mainloop_io_t *client = mainloop_add_fd("dbus", G_PRIORITY_DEFAULT, fd, fd 160 lib/services/dbus.c crm_trace("Added DBus watch for file descriptor %d", fd); fd 78 lib/services/services_linux.c int fd; fd 82 lib/services/services_linux.c fd = signalfd(-1, &(data->mask), SFD_NONBLOCK); fd 83 lib/services/services_linux.c if (fd < 0) { fd 87 lib/services/services_linux.c return fd; fd 92 lib/services/services_linux.c sigchld_close(int fd) fd 94 lib/services/services_linux.c if (fd > 0) { fd 95 lib/services/services_linux.c close(fd); fd 101 lib/services/services_linux.c sigchld_received(int fd) fd 106 lib/services/services_linux.c if (fd < 0) { fd 109 lib/services/services_linux.c s = read(fd, &fdsi, sizeof(struct signalfd_siginfo)); fd 203 lib/services/services_linux.c sigchld_close(int fd) fd 210 lib/services/services_linux.c sigchld_received(int fd) fd 214 lib/services/services_linux.c if (fd < 0) { fd 219 lib/services/services_linux.c while (read(fd, &ch, 1) == 1) /*omit*/; fd 257 lib/services/services_linux.c svc_read_output(int fd, svc_action_t * op, bool is_stderr) fd 265 lib/services/services_linux.c if (fd < 0) { fd 285 lib/services/services_linux.c rc = read(fd, buf, buf_read_len); fd 559 lib/services/services_linux.c int fd; fd 563 lib/services/services_linux.c fd = op->opaque->stderr_fd; fd 566 lib/services/services_linux.c fd = op->opaque->stdout_fd; fd 572 lib/services/services_linux.c svc_read_output(fd, op, is_stderr); fd 574 lib/services/services_linux.c close(fd); fd 1010 lib/services/services_linux.c fds[0].fd = op->opaque->stdout_fd; fd 1014 lib/services/services_linux.c fds[1].fd = op->opaque->stderr_fd; fd 1018 lib/services/services_linux.c fds[2].fd = sigchld_open(data); fd 1037 lib/services/services_linux.c if ((fds[2].revents & POLLIN) && sigchld_received(fds[2].fd)) { fd 1073 lib/services/services_linux.c sigchld_close(fds[2].fd); fd 32 maint/gnulib/lib/accept.c rpl_accept (int fd, struct sockaddr *addr, socklen_t *addrlen) fd 34 maint/gnulib/lib/accept.c SOCKET sock = FD_TO_SOCKET (fd); fd 41 maint/gnulib/lib/accept4.c int fd; fd 70 maint/gnulib/lib/accept4.c fd = accept (sockfd, addr, addrlen); fd 71 maint/gnulib/lib/accept4.c if (fd < 0) fd 80 maint/gnulib/lib/accept4.c HANDLE old_handle = (HANDLE) _get_osfhandle (fd); fd 92 maint/gnulib/lib/accept4.c close (fd); fd 99 maint/gnulib/lib/accept4.c close (fd); fd 115 maint/gnulib/lib/accept4.c if ((fcntl_flags = fcntl (fd, F_GETFD, 0)) < 0 fd 116 maint/gnulib/lib/accept4.c || fcntl (fd, F_SETFD, fcntl_flags | FD_CLOEXEC) == -1) fd 119 maint/gnulib/lib/accept4.c close (fd); fd 132 maint/gnulib/lib/accept4.c if ((fcntl_flags = fcntl (fd, F_GETFL, 0)) < 0 fd 133 maint/gnulib/lib/accept4.c || fcntl (fd, F_SETFL, fcntl_flags | O_NONBLOCK) == -1) fd 136 maint/gnulib/lib/accept4.c close (fd); fd 145 maint/gnulib/lib/accept4.c set_binary_mode (fd, O_BINARY); fd 147 maint/gnulib/lib/accept4.c set_binary_mode (fd, O_TEXT); fd 150 maint/gnulib/lib/accept4.c return fd; fd 61 maint/gnulib/lib/acl-internal.h # define fchmod(fd, mode) (-1) fd 88 maint/gnulib/lib/acl-internal.h rpl_acl_get_fd (int fd) fd 90 maint/gnulib/lib/acl-internal.h return acl_get_fd (fd, ACL_TYPE_ACCESS); fd 98 maint/gnulib/lib/acl-internal.h # define acl_get_fd(fd) (NULL) fd 107 maint/gnulib/lib/acl-internal.h rpl_acl_set_fd (int fd, acl_t acl) fd 109 maint/gnulib/lib/acl-internal.h return acl_set_fd (fd, ACL_TYPE_ACCESS, acl); fd 117 maint/gnulib/lib/acl-internal.h # define acl_set_fd(fd, acl) (-1) fd 113 maint/gnulib/lib/af_alg.c int fd = fileno (stream); fd 117 maint/gnulib/lib/af_alg.c if (0 <= off && fstat (fd, &st) == 0 fd 130 maint/gnulib/lib/af_alg.c if (sendfile (ofd, fd, &off, nbytes) == nbytes) fd 135 maint/gnulib/lib/af_alg.c if (lseek (fd, off, SEEK_SET) != (off_t)-1) fd 36 maint/gnulib/lib/areadlink.c careadlinkatcwd (int fd, char const *filename, char *buffer, fd 41 maint/gnulib/lib/areadlink.c if (fd != AT_FDCWD) fd 29 maint/gnulib/lib/areadlink.h extern char *areadlinkat (int fd, char const *filename) fd 34 maint/gnulib/lib/areadlink.h extern char *areadlinkat_with_size (int fd, char const *filename, fd 58 maint/gnulib/lib/areadlinkat-with-size.c areadlinkat_with_size (int fd, char const *file, size_t size) fd 92 maint/gnulib/lib/areadlinkat-with-size.c r = readlinkat (fd, file, buf, buf_size); fd 42 maint/gnulib/lib/areadlinkat.c areadlinkat (int fd, char const *filename) fd 44 maint/gnulib/lib/areadlinkat.c return careadlinkat (fd, filename, NULL, 0, NULL, readlinkat); fd 70 maint/gnulib/lib/at-func.c AT_FUNC_NAME (int fd, char const *file AT_FUNC_POST_FILE_PARAM_DECLS) fd 74 maint/gnulib/lib/at-func.c if (fd == AT_FDCWD || IS_ABSOLUTE_FILE_NAME (file)) fd 90 maint/gnulib/lib/at-func.c char *proc_file = openat_proc_name (proc_buf, fd, file); fd 112 maint/gnulib/lib/at-func.c if (0 <= fd && fd == saved_cwd.desc) fd 122 maint/gnulib/lib/at-func.c if (fchdir (fd) != 0) fd 47 maint/gnulib/lib/backupfile.c # define fpathconf(fd, option) (errno = -1) fd 26 maint/gnulib/lib/binary-io.c set_binary_mode (int fd, int mode) fd 28 maint/gnulib/lib/binary-io.c if (isatty (fd)) fd 36 maint/gnulib/lib/binary-io.c return __gl_setmode (fd, mode); fd 50 maint/gnulib/lib/binary-io.h __gl_setmode (_GL_UNUSED int fd, _GL_UNUSED int mode) fd 63 maint/gnulib/lib/binary-io.h extern int set_binary_mode (int fd, int mode); fd 66 maint/gnulib/lib/binary-io.h set_binary_mode (int fd, int mode) fd 68 maint/gnulib/lib/binary-io.h return __gl_setmode (fd, mode); fd 73 maint/gnulib/lib/binary-io.h #define SET_BINARY(fd) ((void) set_binary_mode (fd, O_BINARY)) fd 32 maint/gnulib/lib/bind.c rpl_bind (int fd, const struct sockaddr *sockaddr, socklen_t len) fd 34 maint/gnulib/lib/bind.c SOCKET sock = FD_TO_SOCKET (fd); fd 65 maint/gnulib/lib/careadlinkat.c readlink_stk (int fd, char const *filename, fd 87 maint/gnulib/lib/careadlinkat.c idx_t link_length = preadlinkat (fd, filename, buf, buf_size); fd 168 maint/gnulib/lib/careadlinkat.c careadlinkat (int fd, char const *filename, fd 182 maint/gnulib/lib/careadlinkat.c return readlink_stk (fd, filename, buffer, buffer_size, alloc, fd 49 maint/gnulib/lib/careadlinkat.h char *careadlinkat (int fd, char const *filename, fd 43 maint/gnulib/lib/chdir-long.c int fd; fd 49 maint/gnulib/lib/chdir-long.c cdb->fd = AT_FDCWD; fd 55 maint/gnulib/lib/chdir-long.c return fchdir (cdb->fd); fd 61 maint/gnulib/lib/chdir-long.c if (0 <= cdb->fd) fd 63 maint/gnulib/lib/chdir-long.c bool close_fail = close (cdb->fd); fd 75 maint/gnulib/lib/chdir-long.c int new_fd = openat (cdb->fd, dir, fd 81 maint/gnulib/lib/chdir-long.c cdb->fd = new_fd; fd 91 maint/gnulib/lib/chown.c int fd = open (file, O_RDONLY | open_flags); fd 92 maint/gnulib/lib/chown.c if (0 <= fd fd 94 maint/gnulib/lib/chown.c && 0 <= (fd = open (file, O_WRONLY | open_flags)))) fd 99 maint/gnulib/lib/chown.c result = fchown (fd, uid, gid); fd 106 maint/gnulib/lib/chown.c && fstat (fd, &st) == 0 fd 109 maint/gnulib/lib/chown.c close (fd); fd 61 maint/gnulib/lib/clean-temp-private.h int volatile fd; fd 163 maint/gnulib/lib/clean-temp-simple.c ret = close (element->fd); fd 102 maint/gnulib/lib/clean-temp.c if (fileno (fp) != element->fd) fd 529 maint/gnulib/lib/clean-temp.c register_fd (int fd) fd 540 maint/gnulib/lib/clean-temp.c element->fd = fd; fd 558 maint/gnulib/lib/clean-temp.c int fd; fd 567 maint/gnulib/lib/clean-temp.c fd = open (file_name, flags | _O_TEMPORARY, mode); fd 570 maint/gnulib/lib/clean-temp.c fd = open (file_name, flags, mode); fd 572 maint/gnulib/lib/clean-temp.c if (fd >= 0) fd 573 maint/gnulib/lib/clean-temp.c register_fd (fd); fd 576 maint/gnulib/lib/clean-temp.c return fd; fd 618 maint/gnulib/lib/clean-temp.c int fd = fileno (fp); fd 619 maint/gnulib/lib/clean-temp.c if (!(fd >= 0)) fd 621 maint/gnulib/lib/clean-temp.c register_fd (fd); fd 663 maint/gnulib/lib/clean-temp.c int fd = try_tempname (file_name_tmpl, suffixlen, ¶ms, try_create_file); fd 666 maint/gnulib/lib/clean-temp.c if (fd >= 0) fd 670 maint/gnulib/lib/clean-temp.c register_fd (fd); fd 676 maint/gnulib/lib/clean-temp.c return fd; fd 685 maint/gnulib/lib/clean-temp.c close_temp (int fd) fd 687 maint/gnulib/lib/clean-temp.c if (fd < 0) fd 688 maint/gnulib/lib/clean-temp.c return close (fd); fd 716 maint/gnulib/lib/clean-temp.c if (element->fd == fd) fd 752 maint/gnulib/lib/clean-temp.c int fd = fileno (fp); fd 778 maint/gnulib/lib/clean-temp.c if (element->fd == fd) fd 165 maint/gnulib/lib/clean-temp.h extern int close_temp (int fd); fd 80 maint/gnulib/lib/cloexec.c dup_cloexec (int fd) fd 82 maint/gnulib/lib/cloexec.c return fcntl (fd, F_DUPFD_CLOEXEC, 0); fd 36 maint/gnulib/lib/cloexec.h int dup_cloexec (int fd); fd 34 maint/gnulib/lib/close.c close_nothrow (int fd) fd 40 maint/gnulib/lib/close.c result = _close (fd); fd 61 maint/gnulib/lib/close.c rpl_close (int fd) fd 64 maint/gnulib/lib/close.c int retval = execute_all_close_hooks (close_nothrow, fd); fd 66 maint/gnulib/lib/close.c int retval = close_nothrow (fd); fd 71 maint/gnulib/lib/close.c _gl_unregister_fd (fd); fd 43 maint/gnulib/lib/closedir.c int fd = dirfd (dirp); fd 54 maint/gnulib/lib/closedir.c _gl_unregister_dirp_fd (fd); fd 68 maint/gnulib/lib/closedir.c _gl_unregister_fd (fd); fd 32 maint/gnulib/lib/connect.c rpl_connect (int fd, const struct sockaddr *sockaddr, socklen_t len) fd 34 maint/gnulib/lib/connect.c SOCKET sock = FD_TO_SOCKET (fd); fd 81 maint/gnulib/lib/csharpcomp.c int fd[1]; fd 88 maint/gnulib/lib/csharpcomp.c DEV_NULL, true, true, false, fd); fd 97 maint/gnulib/lib/csharpcomp.c while (safe_read (fd[0], &c[count], 1) > 0) fd 109 maint/gnulib/lib/csharpcomp.c close (fd[0]); fd 127 maint/gnulib/lib/csharpcomp.c int fd[1]; fd 197 maint/gnulib/lib/csharpcomp.c NULL, false, true, true, fd); fd 201 maint/gnulib/lib/csharpcomp.c fp = fdopen (fd[0], "r"); fd 268 maint/gnulib/lib/csharpcomp.c int fd[1]; fd 275 maint/gnulib/lib/csharpcomp.c DEV_NULL, true, true, false, fd); fd 285 maint/gnulib/lib/csharpcomp.c while (safe_read (fd[0], &c[count], 1) > 0) fd 300 maint/gnulib/lib/csharpcomp.c close (fd[0]); fd 183 maint/gnulib/lib/diffseq.h OFFSET *const fd = ctxt->fdiag; /* Give the compiler a chance. */ fd 204 maint/gnulib/lib/diffseq.h fd[fmid] = xoff; fd 214 maint/gnulib/lib/diffseq.h fd[--fmin - 1] = -1; fd 218 maint/gnulib/lib/diffseq.h fd[++fmax + 1] = -1; fd 225 maint/gnulib/lib/diffseq.h OFFSET tlo = fd[d - 1]; fd 226 maint/gnulib/lib/diffseq.h OFFSET thi = fd[d + 1]; fd 235 maint/gnulib/lib/diffseq.h fd[d] = x; fd 269 maint/gnulib/lib/diffseq.h if (!odd && fmin <= d && d <= fmax && x <= fd[d]) fd 303 maint/gnulib/lib/diffseq.h OFFSET x = fd[d]; fd 389 maint/gnulib/lib/diffseq.h OFFSET x = MIN (fd[d], xlim); fd 34 maint/gnulib/lib/dirchownmod.c # define fchmod(fd, mode) (-1) fd 61 maint/gnulib/lib/dirchownmod.c dirchownmod (int fd, char const *dir, mode_t mkdir_mode, fd 66 maint/gnulib/lib/dirchownmod.c int result = (fd < 0 ? stat (dir, &st) : fstat (fd, &st)); fd 97 maint/gnulib/lib/dirchownmod.c result = (0 <= fd fd 98 maint/gnulib/lib/dirchownmod.c ? fchown (fd, owner, group) fd 119 maint/gnulib/lib/dirchownmod.c result = (HAVE_FCHMOD && 0 <= fd fd 120 maint/gnulib/lib/dirchownmod.c ? fchmod (fd, chmod_mode) fd 128 maint/gnulib/lib/dirchownmod.c if (0 <= fd) fd 131 maint/gnulib/lib/dirchownmod.c result = close (fd); fd 135 maint/gnulib/lib/dirchownmod.c close (fd); fd 205 maint/gnulib/lib/dirent.in.h _GL_EXTERN_C int _gl_register_dirp_fd (int fd, DIR *dirp) fd 207 maint/gnulib/lib/dirent.in.h _GL_EXTERN_C void _gl_unregister_dirp_fd (int fd); fd 242 maint/gnulib/lib/dirent.in.h (int fd) fd 244 maint/gnulib/lib/dirent.in.h _GL_CXXALIAS_RPL (fdopendir, DIR *, (int fd)); fd 248 maint/gnulib/lib/dirent.in.h (int fd) fd 251 maint/gnulib/lib/dirent.in.h _GL_CXXALIAS_SYS (fdopendir, DIR *, (int fd)); fd 259 maint/gnulib/lib/dirent.in.h (int fd) fd 32 maint/gnulib/lib/dirfd.c int fd; fd 38 maint/gnulib/lib/dirfd.c _gl_register_dirp_fd (int fd, DIR *dirp) fd 45 maint/gnulib/lib/dirfd.c new_dirp_fd->fd = fd; fd 55 maint/gnulib/lib/dirfd.c _gl_unregister_dirp_fd (int fd) fd 63 maint/gnulib/lib/dirfd.c if (dirp_fd->fd == fd) fd 70 maint/gnulib/lib/dirfd.c close (fd); fd 81 maint/gnulib/lib/dirfd.c int fd = DIR_TO_FD (dir_p); fd 82 maint/gnulib/lib/dirfd.c if (fd == -1) fd 91 maint/gnulib/lib/dirfd.c return dirp_fd->fd; fd 97 maint/gnulib/lib/dirfd.c return fd; fd 33 maint/gnulib/lib/dprintf.c dprintf (int fd, const char *format, ...) fd 49 maint/gnulib/lib/dprintf.c if (full_write (fd, output, len) < len) fd 34 maint/gnulib/lib/dup-safer-flag.c dup_safer_flag (int fd, int flag) fd 36 maint/gnulib/lib/dup-safer-flag.c return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD, fd 31 maint/gnulib/lib/dup-safer.c dup_safer (int fd) fd 33 maint/gnulib/lib/dup-safer.c return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); fd 34 maint/gnulib/lib/dup.c dup_nothrow (int fd) fd 40 maint/gnulib/lib/dup.c result = _dup (fd); fd 61 maint/gnulib/lib/dup.c dup_nothrow (int fd) fd 66 maint/gnulib/lib/dup.c dupfd = dup (fd); fd 68 maint/gnulib/lib/dup.c && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode)) fd 73 maint/gnulib/lib/dup.c if (!__libc_Back_ioFHToPath (fd, path, sizeof (path))) fd 84 maint/gnulib/lib/dup.c rpl_dup (int fd) fd 86 maint/gnulib/lib/dup.c int result = dup_nothrow (fd); fd 89 maint/gnulib/lib/dup.c result = _gl_register_dup (fd, result); fd 49 maint/gnulib/lib/dup2.c dup2_nothrow (int fd, int desired_fd) fd 55 maint/gnulib/lib/dup2.c result = _dup2 (fd, desired_fd); fd 71 maint/gnulib/lib/dup2.c ms_windows_dup2 (int fd, int desired_fd) fd 78 maint/gnulib/lib/dup2.c if (fd == desired_fd) fd 80 maint/gnulib/lib/dup2.c if ((HANDLE) _get_osfhandle (fd) == INVALID_HANDLE_VALUE) fd 85 maint/gnulib/lib/dup2.c return fd; fd 96 maint/gnulib/lib/dup2.c result = dup2_nothrow (fd, desired_fd); fd 111 maint/gnulib/lib/dup2.c klibc_dup2dirfd (int fd, int desired_fd) fd 125 maint/gnulib/lib/dup2.c if (__libc_Back_ioFHToPath (fd, path, sizeof (path))) fd 131 maint/gnulib/lib/dup2.c dupfd = klibc_dup2dirfd (fd, desired_fd); fd 139 maint/gnulib/lib/dup2.c klibc_dup2 (int fd, int desired_fd) fd 144 maint/gnulib/lib/dup2.c dupfd = dup2 (fd, desired_fd); fd 146 maint/gnulib/lib/dup2.c && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode)) fd 150 maint/gnulib/lib/dup2.c return klibc_dup2dirfd (fd, desired_fd); fd 160 maint/gnulib/lib/dup2.c rpl_dup2 (int fd, int desired_fd) fd 174 maint/gnulib/lib/dup2.c fd = desired_fd; fd 175 maint/gnulib/lib/dup2.c if (fd == desired_fd) fd 176 maint/gnulib/lib/dup2.c return fcntl (fd, F_GETFL) == -1 ? -1 : fd; fd 179 maint/gnulib/lib/dup2.c result = dup2 (fd, desired_fd); fd 185 maint/gnulib/lib/dup2.c if (fd != desired_fd && result != -1) fd 186 maint/gnulib/lib/dup2.c result = _gl_register_dup (fd, result); fd 132 maint/gnulib/lib/error.c is_open (int fd) fd 139 maint/gnulib/lib/error.c return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; fd 144 maint/gnulib/lib/error.c return 0 <= fcntl (fd, F_GETFL); fd 48 maint/gnulib/lib/execinfo.in.h backtrace_symbols_fd (void *const *buffer, int size, int fd) fd 52 maint/gnulib/lib/execinfo.in.h (void) fd; fd 84 maint/gnulib/lib/execute.c nonintr_close (int fd) fd 89 maint/gnulib/lib/execute.c retval = close (fd); fd 62 maint/gnulib/lib/execve.c unsigned int fd; fd 63 maint/gnulib/lib/execve.c for (fd = 0; fd < fdmax; fd++) fd 64 maint/gnulib/lib/execve.c close (fd); fd 37 maint/gnulib/lib/faccessat.c orig_faccessat (int fd, char const *name, int mode, int flag) fd 39 maint/gnulib/lib/faccessat.c return faccessat (fd, name, mode, flag); fd 58 maint/gnulib/lib/faccessat.c rpl_faccessat (int fd, char const *file, int mode, int flag) fd 60 maint/gnulib/lib/faccessat.c int result = orig_faccessat (fd, file, mode, flag); fd 65 maint/gnulib/lib/faccessat.c result = fstatat (fd, file, &st, 0); fd 61 maint/gnulib/lib/fchdir.c ensure_dirs_slot (size_t fd) fd 63 maint/gnulib/lib/fchdir.c if (fd < dirs_allocated) fd 64 maint/gnulib/lib/fchdir.c free (dirs[fd].name); fd 71 maint/gnulib/lib/fchdir.c if (new_allocated <= fd) fd 72 maint/gnulib/lib/fchdir.c new_allocated = fd + 1; fd 114 maint/gnulib/lib/fchdir.c _gl_unregister_fd (int fd) fd 116 maint/gnulib/lib/fchdir.c if (fd >= 0 && fd < dirs_allocated) fd 118 maint/gnulib/lib/fchdir.c free (dirs[fd].name); fd 119 maint/gnulib/lib/fchdir.c dirs[fd].name = NULL; fd 129 maint/gnulib/lib/fchdir.c _gl_register_fd (int fd, const char *filename) fd 133 maint/gnulib/lib/fchdir.c assure (0 <= fd); fd 135 maint/gnulib/lib/fchdir.c || (fstat (fd, &statbuf) == 0 && S_ISDIR (statbuf.st_mode))) fd 137 maint/gnulib/lib/fchdir.c if (!ensure_dirs_slot (fd) fd 138 maint/gnulib/lib/fchdir.c || (dirs[fd].name = get_name (filename)) == NULL) fd 141 maint/gnulib/lib/fchdir.c close (fd); fd 146 maint/gnulib/lib/fchdir.c return fd; fd 182 maint/gnulib/lib/fchdir.c _gl_directory_name (int fd) fd 184 maint/gnulib/lib/fchdir.c if (0 <= fd && fd < dirs_allocated && dirs[fd].name != NULL) fd 185 maint/gnulib/lib/fchdir.c return dirs[fd].name; fd 188 maint/gnulib/lib/fchdir.c if (0 <= fd) fd 190 maint/gnulib/lib/fchdir.c if (dup2 (fd, fd) == fd) fd 202 maint/gnulib/lib/fchdir.c fchdir (int fd) fd 204 maint/gnulib/lib/fchdir.c const char *name = _gl_directory_name (fd); fd 93 maint/gnulib/lib/fchmodat.c int fd = openat (dir, file, O_PATH | O_NOFOLLOW | O_CLOEXEC); fd 94 maint/gnulib/lib/fchmodat.c if (fd < 0) fd 95 maint/gnulib/lib/fchmodat.c return fd; fd 104 maint/gnulib/lib/fchmodat.c if (fstatat (fd, "", &st, AT_EMPTY_PATH) != 0) fd 107 maint/gnulib/lib/fchmodat.c close (fd); fd 113 maint/gnulib/lib/fchmodat.c close (fd); fd 121 maint/gnulib/lib/fchmodat.c sprintf (buf, fmt, fd); fd 124 maint/gnulib/lib/fchmodat.c close (fd); fd 30 maint/gnulib/lib/fchown-stub.c fchown (int fd, uid_t uid, gid_t gid) fd 69 maint/gnulib/lib/fchownat.c local_lchownat (int fd, char const *file, uid_t owner, gid_t group); fd 87 maint/gnulib/lib/fchownat.c rpl_fchownat (int fd, char const *file, uid_t owner, gid_t group, int flag) fd 91 maint/gnulib/lib/fchownat.c return local_lchownat (fd, file, owner, group); fd 106 maint/gnulib/lib/fchownat.c if (statat (fd, file, &st)) fd 109 maint/gnulib/lib/fchownat.c return fchownat (fd, file, owner, group, 0); fd 113 maint/gnulib/lib/fchownat.c return fchownat (fd, file, owner, group, flag); fd 61 maint/gnulib/lib/fclose.c int fd; fd 65 maint/gnulib/lib/fclose.c fd = fileno (fp); fd 66 maint/gnulib/lib/fclose.c if (fd < 0) fd 82 maint/gnulib/lib/fclose.c if (close (fd) < 0 && saved_errno == 0) fd 97 maint/gnulib/lib/fclose.c _gl_unregister_fd (fd); fd 173 maint/gnulib/lib/fcntl.c static int rpl_fcntl_DUPFD (int fd, int target); fd 175 maint/gnulib/lib/fcntl.c static int rpl_fcntl_DUPFD_CLOEXEC (int fd, int target); fd 178 maint/gnulib/lib/fcntl.c static int klibc_fcntl (int fd, int action, /* arg */...); fd 202 maint/gnulib/lib/fcntl.c fcntl (int fd, int action, /* arg */...) fd 216 maint/gnulib/lib/fcntl.c result = rpl_fcntl_DUPFD (fd, target); fd 223 maint/gnulib/lib/fcntl.c result = rpl_fcntl_DUPFD_CLOEXEC (fd, target); fd 231 maint/gnulib/lib/fcntl.c HANDLE handle = (HANDLE) _get_osfhandle (fd); fd 241 maint/gnulib/lib/fcntl.c if (0 <= dup2 (fd, fd)) fd 328 maint/gnulib/lib/fcntl.c result = fcntl (fd, action); fd 424 maint/gnulib/lib/fcntl.c result = fcntl (fd, action, x); fd 432 maint/gnulib/lib/fcntl.c result = fcntl (fd, action, p); fd 447 maint/gnulib/lib/fcntl.c rpl_fcntl_DUPFD (int fd, int target) fd 451 maint/gnulib/lib/fcntl.c result = dupfd (fd, target, 0); fd 462 maint/gnulib/lib/fcntl.c int flags = fcntl (fd, F_GETFD); fd 467 maint/gnulib/lib/fcntl.c result = fcntl (fd, F_DUPFD, target); fd 468 maint/gnulib/lib/fcntl.c if (0 <= result && fcntl (fd, F_SETFD, flags) == -1) fd 477 maint/gnulib/lib/fcntl.c result = _gl_register_dup (fd, result); fd 482 maint/gnulib/lib/fcntl.c result = fcntl (fd, F_DUPFD, target); fd 488 maint/gnulib/lib/fcntl.c rpl_fcntl_DUPFD_CLOEXEC (int fd, int target) fd 492 maint/gnulib/lib/fcntl.c result = dupfd (fd, target, O_CLOEXEC); fd 512 maint/gnulib/lib/fcntl.c result = fcntl (fd, F_DUPFD_CLOEXEC, target); fd 518 maint/gnulib/lib/fcntl.c result = _gl_register_dup (fd, result); fd 523 maint/gnulib/lib/fcntl.c result = rpl_fcntl_DUPFD (fd, target); fd 530 maint/gnulib/lib/fcntl.c result = rpl_fcntl_DUPFD (fd, target); fd 551 maint/gnulib/lib/fcntl.c klibc_fcntl (int fd, int action, /* arg */...) fd 560 maint/gnulib/lib/fcntl.c result = fcntl (fd, action, arg); fd 563 maint/gnulib/lib/fcntl.c && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode)) fd 574 maint/gnulib/lib/fcntl.c result = dup2 (fd, arg); fd 579 maint/gnulib/lib/fcntl.c if (DosQueryFHState (fd, &ulMode)) fd 589 maint/gnulib/lib/fcntl.c if (DosQueryFHState (fd, &ulMode)) fd 601 maint/gnulib/lib/fcntl.c if (DosSetFHState (fd, ulMode)) fd 138 maint/gnulib/lib/fcntl.in.h _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); fd 139 maint/gnulib/lib/fcntl.in.h _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); fd 145 maint/gnulib/lib/fcntl.in.h _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); fd 150 maint/gnulib/lib/fcntl.in.h _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); fd 214 maint/gnulib/lib/fcntl.in.h (int fd, char const *file, int flags, /* mode_t mode */ ...) fd 217 maint/gnulib/lib/fcntl.in.h (int fd, char const *file, int flags, /* mode_t mode */ ...)); fd 221 maint/gnulib/lib/fcntl.in.h (int fd, char const *file, int flags, /* mode_t mode */ ...) fd 225 maint/gnulib/lib/fcntl.in.h (int fd, char const *file, int flags, /* mode_t mode */ ...)); fd 35 maint/gnulib/lib/fd-hook.c int fd) fd 39 maint/gnulib/lib/fd-hook.c return primary (fd); fd 42 maint/gnulib/lib/fd-hook.c primary, fd); fd 46 maint/gnulib/lib/fd-hook.c execute_all_close_hooks (gl_close_fn primary, int fd) fd 48 maint/gnulib/lib/fd-hook.c return execute_close_hooks (anchor.private_next, primary, fd); fd 53 maint/gnulib/lib/fd-hook.c int fd, int request, void *arg) fd 57 maint/gnulib/lib/fd-hook.c return primary (fd, request, arg); fd 60 maint/gnulib/lib/fd-hook.c primary, fd, request, arg); fd 65 maint/gnulib/lib/fd-hook.c int fd, int request, void *arg) fd 67 maint/gnulib/lib/fd-hook.c return execute_ioctl_hooks (anchor.private_next, primary, fd, request, arg); fd 32 maint/gnulib/lib/fd-hook.h typedef int (*gl_close_fn) (int fd); fd 35 maint/gnulib/lib/fd-hook.h typedef int (*gl_ioctl_fn) (int fd, int request, void *arg); fd 51 maint/gnulib/lib/fd-hook.h int fd); fd 57 maint/gnulib/lib/fd-hook.h int fd, int request, void *arg); fd 68 maint/gnulib/lib/fd-hook.h int fd); fd 74 maint/gnulib/lib/fd-hook.h int fd); fd 78 maint/gnulib/lib/fd-hook.h extern int execute_all_close_hooks (gl_close_fn primary, int fd); fd 88 maint/gnulib/lib/fd-hook.h int fd, int request, void *arg); fd 94 maint/gnulib/lib/fd-hook.h int fd, int request, void *arg); fd 99 maint/gnulib/lib/fd-hook.h int fd, int request, void *arg); fd 40 maint/gnulib/lib/fd-safer-flag.c fd_safer_flag (int fd, int flag) fd 42 maint/gnulib/lib/fd-safer-flag.c if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) fd 44 maint/gnulib/lib/fd-safer-flag.c int f = dup_safer_flag (fd, flag); fd 46 maint/gnulib/lib/fd-safer-flag.c close (fd); fd 48 maint/gnulib/lib/fd-safer-flag.c fd = f; fd 51 maint/gnulib/lib/fd-safer-flag.c return fd; fd 37 maint/gnulib/lib/fd-safer.c fd_safer (int fd) fd 39 maint/gnulib/lib/fd-safer.c if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) fd 41 maint/gnulib/lib/fd-safer.c int f = dup_safer (fd); fd 43 maint/gnulib/lib/fd-safer.c close (fd); fd 45 maint/gnulib/lib/fd-safer.c fd = f; fd 48 maint/gnulib/lib/fd-safer.c return fd; fd 22 maint/gnulib/lib/fdatasync.c fdatasync (int fd) fd 26 maint/gnulib/lib/fdatasync.c return fsync (fd); fd 33 maint/gnulib/lib/fdopen.c fdopen_nothrow (int fd, const char *mode) fd 39 maint/gnulib/lib/fdopen.c result = _fdopen (fd, mode); fd 57 maint/gnulib/lib/fdopen.c rpl_fdopen (int fd, const char *mode) fd 63 maint/gnulib/lib/fdopen.c fp = fdopen_nothrow (fd, mode); fd 69 maint/gnulib/lib/fdopendir.c fdopendir (int fd) fd 75 maint/gnulib/lib/fdopendir.c if (__libc_Back_ioFHToPath (fd, path, sizeof (path))) fd 86 maint/gnulib/lib/fdopendir.c if (_gl_register_dirp_fd (fd, dirp)) fd 101 maint/gnulib/lib/fdopendir.c fdopendir (int fd) fd 103 maint/gnulib/lib/fdopendir.c DIR *dir = fdopendir_with_dup (fd, -1, NULL); fd 113 maint/gnulib/lib/fdopendir.c dir = fdopendir_with_dup (fd, -1, &cwd); fd 136 maint/gnulib/lib/fdopendir.c fdopendir_with_dup (int fd, int older_dupfd, struct saved_cwd const *cwd) fd 138 maint/gnulib/lib/fdopendir.c int dupfd = dup (fd); fd 147 maint/gnulib/lib/fdopendir.c if (dupfd < fd - 1 && dupfd != older_dupfd) fd 149 maint/gnulib/lib/fdopendir.c dir = fdopendir_with_dup (fd, dupfd, cwd); fd 154 maint/gnulib/lib/fdopendir.c close (fd); fd 160 maint/gnulib/lib/fdopendir.c if (fd1 != fd) fd 176 maint/gnulib/lib/fdopendir.c fd_clone_opendir (int fd, struct saved_cwd const *cwd) fd 183 maint/gnulib/lib/fdopendir.c char *proc_file = openat_proc_name (buf, fd, "."); fd 194 maint/gnulib/lib/fdopendir.c char const *name = _gl_directory_name (fd); fd 202 maint/gnulib/lib/fdopendir.c dup (fd); fd 212 maint/gnulib/lib/fdopendir.c if (fchdir (fd) != 0) fd 236 maint/gnulib/lib/fdopendir.c rpl_fdopendir (int fd) fd 239 maint/gnulib/lib/fdopendir.c if (fstat (fd, &st)) fd 246 maint/gnulib/lib/fdopendir.c return fdopendir (fd); fd 43 maint/gnulib/lib/fdutimensat.c fdutimensat (int fd, int dir, char const *file, struct timespec const ts[2], fd 47 maint/gnulib/lib/fdutimensat.c if (0 <= fd) fd 48 maint/gnulib/lib/fdutimensat.c result = futimens (fd, ts); fd 49 maint/gnulib/lib/fdutimensat.c if (file && (fd < 0 || (result == -1 && errno == ENOSYS))) fd 99 maint/gnulib/lib/flock.c flock (int fd, int operation) fd 101 maint/gnulib/lib/flock.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 180 maint/gnulib/lib/flock.c flock (int fd, int operation) fd 211 maint/gnulib/lib/flock.c r = fcntl (fd, cmd, &fl); fd 37 maint/gnulib/lib/fopen-safer.c int fd = fileno (fp); fd 39 maint/gnulib/lib/fopen-safer.c if (0 <= fd && fd <= STDERR_FILENO) fd 41 maint/gnulib/lib/fopen-safer.c int f = dup_safer (fd); fd 169 maint/gnulib/lib/fopen.c int fd; fd 179 maint/gnulib/lib/fopen.c fd = open (filename, open_direction | open_flags, fd 181 maint/gnulib/lib/fopen.c if (fd < 0) fd 184 maint/gnulib/lib/fopen.c if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) fd 186 maint/gnulib/lib/fopen.c close (fd); fd 192 maint/gnulib/lib/fopen.c fp = fdopen (fd, fdopen_mode_buf); fd 194 maint/gnulib/lib/fopen.c fp = fdopen (fd, mode); fd 199 maint/gnulib/lib/fopen.c close (fd); fd 210 maint/gnulib/lib/fopen.c int fd; fd 213 maint/gnulib/lib/fopen.c fd = open (filename, open_direction | open_flags, fd 215 maint/gnulib/lib/fopen.c if (fd < 0) fd 218 maint/gnulib/lib/fopen.c fp = fdopen (fd, fdopen_mode_buf); fd 222 maint/gnulib/lib/fopen.c close (fd); fd 55 maint/gnulib/lib/freadable.c int fd = fp->fd; fd 56 maint/gnulib/lib/freadable.c if (fd >= 0) fd 58 maint/gnulib/lib/freadable.c int flags = fcntl (fd, F_GETFL, NULL); fd 77 maint/gnulib/lib/freadseek.c int fd; fd 114 maint/gnulib/lib/freadseek.c fd = fileno (fp); fd 115 maint/gnulib/lib/freadseek.c if (fd >= 0 && lseek (fd, 0, SEEK_CUR) >= 0) fd 34 maint/gnulib/lib/freopen-safer.c protect_fd (int fd) fd 37 maint/gnulib/lib/freopen-safer.c if (value != fd) fd 75 maint/gnulib/lib/freopen.c int fd = fileno (result); fd 76 maint/gnulib/lib/freopen.c if (dup2 (fd, fd) < 0 && errno == EBADF) fd 80 maint/gnulib/lib/freopen.c if (nullfd != fd) fd 82 maint/gnulib/lib/freopen.c if (dup2 (nullfd, fd) < 0) fd 63 maint/gnulib/lib/fseterr.c int fd; fd 68 maint/gnulib/lib/fseterr.c fd = fileno (fp); fd 69 maint/gnulib/lib/fseterr.c fd2 = dup (fd); fd 72 maint/gnulib/lib/fseterr.c close (fd); fd 75 maint/gnulib/lib/fseterr.c if (dup2 (fd2, fd) < 0) fd 35 maint/gnulib/lib/fstat.c orig_fstat (int fd, struct stat *buf) fd 37 maint/gnulib/lib/fstat.c return fstat (fd, buf); fd 68 maint/gnulib/lib/fstat.c rpl_fstat (int fd, struct stat *buf) fd 73 maint/gnulib/lib/fstat.c const char *name = _gl_directory_name (fd); fd 83 maint/gnulib/lib/fstat.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 92 maint/gnulib/lib/fstat.c return stat_time_normalize (orig_fstat (fd, buf), buf); fd 33 maint/gnulib/lib/fstatat.c orig_fstatat (int fd, char const *filename, struct stat *buf, int flags) fd 35 maint/gnulib/lib/fstatat.c return fstatat (fd, filename, buf, flags); fd 62 maint/gnulib/lib/fstatat.c normal_fstatat (int fd, char const *file, struct stat *st, int flag) fd 64 maint/gnulib/lib/fstatat.c return stat_time_normalize (orig_fstatat (fd, file, st, flag), st); fd 77 maint/gnulib/lib/fstatat.c rpl_fstatat (int fd, char const *file, struct stat *st, int flag) fd 79 maint/gnulib/lib/fstatat.c int result = normal_fstatat (fd, file, st, flag); fd 95 maint/gnulib/lib/fstatat.c result = normal_fstatat (fd, file, st, flag & ~AT_SYMLINK_NOFOLLOW); fd 44 maint/gnulib/lib/fsync.c fsync (int fd) fd 46 maint/gnulib/lib/fsync.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 125 maint/gnulib/lib/ftruncate.c ftruncate (int fd, off_t length) fd 127 maint/gnulib/lib/ftruncate.c HANDLE handle = (HANDLE) _get_osfhandle (fd); fd 167 maint/gnulib/lib/ftruncate.c chsize_nothrow (int fd, long length) fd 173 maint/gnulib/lib/ftruncate.c result = _chsize (fd, length); fd 189 maint/gnulib/lib/ftruncate.c ftruncate (int fd, off_t length) fd 191 maint/gnulib/lib/ftruncate.c return chsize_nothrow (fd, length); fd 242 maint/gnulib/lib/fts.c #define FCHDIR(sp, fd) \ fd 244 maint/gnulib/lib/fts.c ? (cwd_advance_fd ((sp), (fd), true), 0) \ fd 245 maint/gnulib/lib/fts.c : fchdir (fd))) fd 281 maint/gnulib/lib/fts.c int fd = i_ring_pop (fd_ring); fd 282 maint/gnulib/lib/fts.c if (0 <= fd) fd 283 maint/gnulib/lib/fts.c close (fd); fd 306 maint/gnulib/lib/fts.c cwd_advance_fd (FTS *sp, int fd, bool chdir_down_one) fd 309 maint/gnulib/lib/fts.c fts_assert (old != fd || old == AT_FDCWD); fd 326 maint/gnulib/lib/fts.c sp->fts_cwd_fd = fd; fd 352 maint/gnulib/lib/fts.c int fd = (ISSET (FTS_CWDFD) fd 355 maint/gnulib/lib/fts.c return fd; fd 405 maint/gnulib/lib/fts.c int fd = open (".", O_SEARCH | O_CLOEXEC); fd 406 maint/gnulib/lib/fts.c if (fd < 0) fd 427 maint/gnulib/lib/fts.c close (fd); fd 702 maint/gnulib/lib/fts.c filesystem_type (FTSENT const *p, int fd) fd 728 maint/gnulib/lib/fts.c if (fd < 0 || fstatfs (fd, &fs_buf) != 0) fd 1111 maint/gnulib/lib/fts.c int fd; fd 1164 maint/gnulib/lib/fts.c if ((fd = diropen (sp, ".")) < 0) fd 1169 maint/gnulib/lib/fts.c cwd_advance_fd (sp, fd, true); fd 1173 maint/gnulib/lib/fts.c if (fchdir(fd)) fd 1176 maint/gnulib/lib/fts.c close (fd); fd 1180 maint/gnulib/lib/fts.c close (fd); fd 1702 maint/gnulib/lib/fts.c int fd = fd_ring->fts_fd_ring[i]; fd 1703 maint/gnulib/lib/fts.c if (fd < 0) fd 1704 maint/gnulib/lib/fts.c fprintf (stream, "%d: %d:\n", i, fd); fd 1707 maint/gnulib/lib/fts.c char *wd = getcwdat (fd, NULL, 0); fd 1708 maint/gnulib/lib/fts.c fprintf (stream, "%d: %d: %s\n", i, fd, wd); fd 1735 maint/gnulib/lib/fts.c int fd = i_ring_pop (&fd_w); fd 1736 maint/gnulib/lib/fts.c if (0 <= fd) fd 1745 maint/gnulib/lib/fts.c if (!same_fd (fd, parent_fd)) fd 1747 maint/gnulib/lib/fts.c char *cwd = getcwdat (fd, NULL, 0); fd 2004 maint/gnulib/lib/fts.c fts_safe_changedir (FTS *sp, FTSENT *p, int fd, char const *dir) fd 2016 maint/gnulib/lib/fts.c if (ISSET (FTS_CWDFD) && 0 <= fd) fd 2017 maint/gnulib/lib/fts.c close (fd); fd 2021 maint/gnulib/lib/fts.c if (fd < 0 && is_dotdot && ISSET (FTS_CWDFD)) fd 2035 maint/gnulib/lib/fts.c fd = parent_fd; fd 2041 maint/gnulib/lib/fts.c newfd = fd; fd 2042 maint/gnulib/lib/fts.c if (fd < 0 && (newfd = diropen (sp, dir)) < 0) fd 2078 maint/gnulib/lib/fts.c if (fd < 0) fd 23 maint/gnulib/lib/full-read.h extern size_t full_read (int fd, void *buf, size_t count); fd 58 maint/gnulib/lib/full-write.c full_rw (int fd, const void *buf, size_t count) fd 65 maint/gnulib/lib/full-write.c size_t n_rw = safe_rw (fd, ptr, count); fd 29 maint/gnulib/lib/full-write.h extern size_t full_write (int fd, const void *buf, size_t count); fd 31 maint/gnulib/lib/futimens.c futimens (int fd, struct timespec const times[2]) fd 36 maint/gnulib/lib/futimens.c return fdutimens (fd, NULL, times); fd 55 maint/gnulib/lib/fwritable.c int fd = fp->fd; fd 56 maint/gnulib/lib/fwritable.c if (fd >= 0) fd 58 maint/gnulib/lib/fwritable.c int flags = fcntl (fd, F_GETFL, NULL); fd 176 maint/gnulib/lib/get-rusage-as.c const int fd = -1; fd 179 maint/gnulib/lib/get-rusage-as.c int fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0666); fd 180 maint/gnulib/lib/get-rusage-as.c if (fd < 0) fd 239 maint/gnulib/lib/get-rusage-as.c mmap (NULL, pagesize, PROT_READ | PROT_WRITE, flags, fd, 0); fd 285 maint/gnulib/lib/get-rusage-as.c mmap (NULL, pagesize, PROT_READ | PROT_WRITE, flags, fd, 0); fd 324 maint/gnulib/lib/get-rusage-as.c close (fd); fd 74 maint/gnulib/lib/get_ppid_of.c int fd; fd 77 maint/gnulib/lib/get_ppid_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 78 maint/gnulib/lib/get_ppid_of.c if (fd >= 0) fd 81 maint/gnulib/lib/get_ppid_of.c ssize_t nread = read (fd, buf, sizeof (buf) - 1); fd 82 maint/gnulib/lib/get_ppid_of.c close (fd); fd 115 maint/gnulib/lib/get_ppid_of.c int fd; fd 118 maint/gnulib/lib/get_ppid_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 119 maint/gnulib/lib/get_ppid_of.c if (fd >= 0) fd 122 maint/gnulib/lib/get_ppid_of.c ssize_t nread = read (fd, buf, sizeof (buf) - 1); fd 123 maint/gnulib/lib/get_ppid_of.c close (fd); fd 152 maint/gnulib/lib/get_ppid_of.c int fd; fd 155 maint/gnulib/lib/get_ppid_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 156 maint/gnulib/lib/get_ppid_of.c if (fd >= 0) fd 159 maint/gnulib/lib/get_ppid_of.c ssize_t nread = read (fd, buf, sizeof (buf) - 1); fd 160 maint/gnulib/lib/get_ppid_of.c close (fd); fd 190 maint/gnulib/lib/get_ppid_of.c int fd; fd 193 maint/gnulib/lib/get_ppid_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 194 maint/gnulib/lib/get_ppid_of.c if (fd >= 0) fd 206 maint/gnulib/lib/get_ppid_of.c ssize_t nread = read (fd, buf.all, sizeof (buf.all)); fd 207 maint/gnulib/lib/get_ppid_of.c close (fd); fd 283 maint/gnulib/lib/get_ppid_of.c int fd; fd 286 maint/gnulib/lib/get_ppid_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 287 maint/gnulib/lib/get_ppid_of.c if (0 <= fd) fd 290 maint/gnulib/lib/get_ppid_of.c int ioctl_ok = 0 <= ioctl (fd, PIOCPSINFO, &buf); fd 291 maint/gnulib/lib/get_ppid_of.c close (fd); fd 105 maint/gnulib/lib/get_progname_of.c int fd; fd 108 maint/gnulib/lib/get_progname_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 109 maint/gnulib/lib/get_progname_of.c if (fd >= 0) fd 112 maint/gnulib/lib/get_progname_of.c ssize_t nread = read (fd, buf, sizeof (buf) - 1); fd 113 maint/gnulib/lib/get_progname_of.c close (fd); fd 158 maint/gnulib/lib/get_progname_of.c int fd; fd 161 maint/gnulib/lib/get_progname_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 162 maint/gnulib/lib/get_progname_of.c if (fd >= 0) fd 165 maint/gnulib/lib/get_progname_of.c ssize_t nread = read (fd, buf, sizeof (buf) - 1); fd 166 maint/gnulib/lib/get_progname_of.c close (fd); fd 223 maint/gnulib/lib/get_progname_of.c int fd; fd 226 maint/gnulib/lib/get_progname_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 227 maint/gnulib/lib/get_progname_of.c if (fd >= 0) fd 241 maint/gnulib/lib/get_progname_of.c ssize_t nread = read (fd, buf, sizeof (buf)); fd 242 maint/gnulib/lib/get_progname_of.c close (fd); fd 378 maint/gnulib/lib/get_progname_of.c int fd; fd 381 maint/gnulib/lib/get_progname_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 382 maint/gnulib/lib/get_progname_of.c if (0 <= fd) fd 385 maint/gnulib/lib/get_progname_of.c int ioctl_ok = 0 <= ioctl (fd, PIOCPSINFO, &buf); fd 386 maint/gnulib/lib/get_progname_of.c close (fd); fd 174 maint/gnulib/lib/getcwd.c int fd = AT_FDCWD; fd 276 maint/gnulib/lib/getcwd.c fd = __openat64 (fd, "..", O_RDONLY); fd 277 maint/gnulib/lib/getcwd.c if (fd < 0) fd 280 maint/gnulib/lib/getcwd.c parent_status = __fstat64 (fd, &st); fd 303 maint/gnulib/lib/getcwd.c dirstream = __fdopendir (fd); fd 357 maint/gnulib/lib/getcwd.c entry_status = __fstatat64 (fd, d->d_name, &st, AT_SYMLINK_NOFOLLOW); fd 480 maint/gnulib/lib/getcwd.c __close_nocancel_nostatus (fd); fd 38 maint/gnulib/lib/getfilecon.c int fgetfilecon (int fd, char **con); fd 83 maint/gnulib/lib/getfilecon.c rpl_fgetfilecon (int fd, char**con) fd 85 maint/gnulib/lib/getfilecon.c int ret = fgetfilecon (fd, con); fd 513 maint/gnulib/lib/getloadavg.c int fd, count, saved_errno; fd 515 maint/gnulib/lib/getloadavg.c fd = open (LINUX_LDAV_FILE, O_RDONLY | O_CLOEXEC); fd 516 maint/gnulib/lib/getloadavg.c if (fd == -1) fd 518 maint/gnulib/lib/getloadavg.c count = read (fd, ldavgbuf, sizeof ldavgbuf - 1); fd 520 maint/gnulib/lib/getloadavg.c (void) close (fd); fd 571 maint/gnulib/lib/getloadavg.c int fd = open (NETBSD_LDAV_FILE, O_RDONLY | O_CLOEXEC); fd 572 maint/gnulib/lib/getloadavg.c if (fd < 0) fd 573 maint/gnulib/lib/getloadavg.c return fd; fd 574 maint/gnulib/lib/getloadavg.c int nread = read (fd, readbuf, sizeof readbuf - 1); fd 576 maint/gnulib/lib/getloadavg.c close (fd); fd 879 maint/gnulib/lib/getloadavg.c int fd = open ("/dev/kmem", O_RDONLY | O_CLOEXEC); fd 880 maint/gnulib/lib/getloadavg.c if (0 <= fd) fd 882 maint/gnulib/lib/getloadavg.c channel = fd; fd 32 maint/gnulib/lib/getpeername.c rpl_getpeername (int fd, struct sockaddr *addr, socklen_t *addrlen) fd 34 maint/gnulib/lib/getpeername.c SOCKET sock = FD_TO_SOCKET (fd); fd 229 maint/gnulib/lib/getprogname.c int fd; fd 236 maint/gnulib/lib/getprogname.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 237 maint/gnulib/lib/getprogname.c if (0 <= fd) fd 240 maint/gnulib/lib/getprogname.c int ioctl_ok = 0 <= ioctl (fd, PIOCPSINFO, &buf); fd 241 maint/gnulib/lib/getprogname.c close (fd); fd 260 maint/gnulib/lib/getprogname.c int fd; fd 262 maint/gnulib/lib/getprogname.c fd = open (buf, O_RDONLY); fd 263 maint/gnulib/lib/getprogname.c if (0 <= fd) fd 265 maint/gnulib/lib/getprogname.c size_t n = read (fd, buf, 79); fd 287 maint/gnulib/lib/getprogname.c close (fd); fd 170 maint/gnulib/lib/getrandom.c int fd = randfd[devrandom]; fd 172 maint/gnulib/lib/getrandom.c if (fd < 0) fd 179 maint/gnulib/lib/getrandom.c fd = open (randdevice[devrandom], oflags); fd 180 maint/gnulib/lib/getrandom.c if (fd < 0) fd 186 maint/gnulib/lib/getrandom.c randfd[devrandom] = fd; fd 189 maint/gnulib/lib/getrandom.c return read (fd, buffer, length); fd 32 maint/gnulib/lib/getsockname.c rpl_getsockname (int fd, struct sockaddr *addr, socklen_t *addrlen) fd 34 maint/gnulib/lib/getsockname.c SOCKET sock = FD_TO_SOCKET (fd); fd 38 maint/gnulib/lib/getsockopt.c rpl_getsockopt (int fd, int level, int optname, void *optval, socklen_t *optlen) fd 40 maint/gnulib/lib/getsockopt.c SOCKET sock = FD_TO_SOCKET (fd); fd 71 maint/gnulib/lib/getumask.c int fd = open ("/proc/self/status", O_RDONLY); fd 72 maint/gnulib/lib/getumask.c if (fd >= 0) fd 74 maint/gnulib/lib/getumask.c ssize_t n = read (fd, buf, sizeof (buf)); fd 101 maint/gnulib/lib/getumask.c close (fd); fd 117 maint/gnulib/lib/getumask.c int fd = gen_register_open_temp (temp_filename, 0, O_RDWR, fd 119 maint/gnulib/lib/getumask.c if (fd >= 0) fd 122 maint/gnulib/lib/getumask.c if (fstat (fd, &statbuf) >= 0) fd 124 maint/gnulib/lib/getumask.c close_temp (fd); fd 46 maint/gnulib/lib/grantpt.c grantpt (int fd) fd 71 maint/gnulib/lib/grantpt.c if (fd != PTY_FILENO) fd 72 maint/gnulib/lib/grantpt.c if (__dup2 (fd, PTY_FILENO) < 0) fd 31 maint/gnulib/lib/ioctl.c rpl_ioctl (int fd, int request, ... /* {void *,char *} arg */) fd 42 maint/gnulib/lib/ioctl.c return ioctl (fd, (unsigned int) request, buf); fd 62 maint/gnulib/lib/ioctl.c primary_ioctl (int fd, int request, void *arg) fd 68 maint/gnulib/lib/ioctl.c if ((HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE) fd 76 maint/gnulib/lib/ioctl.c ioctl (int fd, int request, ... /* {void *,char *} arg */) fd 86 maint/gnulib/lib/ioctl.c return execute_all_ioctl_hooks (primary_ioctl, fd, request, arg); fd 88 maint/gnulib/lib/ioctl.c return primary_ioctl (fd, request, arg); fd 40 maint/gnulib/lib/isapipe.c isapipe (int fd) fd 42 maint/gnulib/lib/isapipe.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 73 maint/gnulib/lib/isapipe.c isapipe (int fd) fd 78 maint/gnulib/lib/isapipe.c int fstat_result = fstat (fd, &st); fd 23 maint/gnulib/lib/isapipe.h int isapipe (int fd); fd 145 maint/gnulib/lib/isatty.c _isatty_nothrow (int fd) fd 151 maint/gnulib/lib/isatty.c result = _isatty (fd); fd 168 maint/gnulib/lib/isatty.c isatty (int fd) fd 170 maint/gnulib/lib/isatty.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 178 maint/gnulib/lib/isatty.c if (_isatty_nothrow (fd)) fd 601 maint/gnulib/lib/javacomp.c int fd; fd 604 maint/gnulib/lib/javacomp.c fd = open (compiled_file_name, O_RDONLY | O_BINARY | O_CLOEXEC, 0); fd 605 maint/gnulib/lib/javacomp.c if (fd >= 0) fd 608 maint/gnulib/lib/javacomp.c if (safe_read (fd, header, 8) == 8) fd 614 maint/gnulib/lib/javacomp.c close (fd); fd 618 maint/gnulib/lib/javacomp.c close (fd); fd 640 maint/gnulib/lib/javacomp.c int fd[1]; fd 668 maint/gnulib/lib/javacomp.c DEV_NULL, true, true, false, fd); fd 673 maint/gnulib/lib/javacomp.c fp = fdopen (fd[0], "r"); fd 722 maint/gnulib/lib/javacomp.c int fd[1]; fd 750 maint/gnulib/lib/javacomp.c DEV_NULL, true, true, false, fd); fd 755 maint/gnulib/lib/javacomp.c fp = fdopen (fd[0], "r"); fd 1411 maint/gnulib/lib/javacomp.c int fd[1]; fd 1418 maint/gnulib/lib/javacomp.c DEV_NULL, true, true, false, fd); fd 1429 maint/gnulib/lib/javacomp.c while (safe_read (fd[0], &c[count], 1) > 0) fd 1448 maint/gnulib/lib/javacomp.c while (safe_read (fd[0], &c[0], 1) > 0) fd 1451 maint/gnulib/lib/javacomp.c close (fd[0]); fd 1527 maint/gnulib/lib/javacomp.c int fd[1]; fd 1534 maint/gnulib/lib/javacomp.c DEV_NULL, true, true, false, fd); fd 1545 maint/gnulib/lib/javacomp.c while (safe_read (fd[0], &c[count], 1) > 0) fd 1563 maint/gnulib/lib/javacomp.c while (safe_read (fd[0], &c[0], 1) > 0) fd 1566 maint/gnulib/lib/javacomp.c close (fd[0]); fd 60 maint/gnulib/lib/javaversion.c int fd[1]; fd 69 maint/gnulib/lib/javaversion.c DEV_NULL, false, true, false, fd); fd 75 maint/gnulib/lib/javaversion.c fp = fdopen (fd[0], "r"); fd 53 maint/gnulib/lib/lchmod.c int fd = open (file, O_PATH | O_NOFOLLOW | O_CLOEXEC); fd 54 maint/gnulib/lib/lchmod.c if (fd < 0) fd 55 maint/gnulib/lib/lchmod.c return fd; fd 65 maint/gnulib/lib/lchmod.c if (fstatat (fd, "", &st, AT_EMPTY_PATH) != 0) fd 68 maint/gnulib/lib/lchmod.c close (fd); fd 74 maint/gnulib/lib/lchmod.c close (fd); fd 82 maint/gnulib/lib/lchmod.c sprintf (buf, fmt, fd); fd 85 maint/gnulib/lib/lchmod.c close (fd); fd 32 maint/gnulib/lib/listen.c rpl_listen (int fd, int backlog) fd 34 maint/gnulib/lib/listen.c SOCKET sock = FD_TO_SOCKET (fd); fd 40 maint/gnulib/lib/lseek.c rpl_lseek (int fd, off_t offset, int whence) fd 44 maint/gnulib/lib/lseek.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 58 maint/gnulib/lib/lseek.c if (fstat (fd, &statbuf) < 0) fd 67 maint/gnulib/lib/lseek.c return _lseeki64 (fd, offset, whence); fd 69 maint/gnulib/lib/lseek.c return lseek (fd, offset, whence); fd 33 maint/gnulib/lib/mkfifoat.c rpl_mkfifoat (int fd, char const *file, mode_t mode) fd 42 maint/gnulib/lib/mkfifoat.c if (fstatat (fd, file, &st, AT_SYMLINK_NOFOLLOW) < 0) fd 57 maint/gnulib/lib/mkfifoat.c return mkfifoat (fd, file, mode); fd 69 maint/gnulib/lib/mkfifoat.c mkfifoat (_GL_UNUSED int fd, _GL_UNUSED char const *path, fd 33 maint/gnulib/lib/mknodat.c rpl_mknodat (int fd, char const *file, mode_t mode, dev_t dev) fd 42 maint/gnulib/lib/mknodat.c if (fstatat (fd, file, &st, AT_SYMLINK_NOFOLLOW) < 0) fd 57 maint/gnulib/lib/mknodat.c return mknodat (fd, file, mode, dev); fd 69 maint/gnulib/lib/mknodat.c mknodat (_GL_UNUSED int fd, _GL_UNUSED char const *path, fd 35 maint/gnulib/lib/msvc-nothrow.c _gl_nothrow_get_osfhandle (int fd) fd 41 maint/gnulib/lib/msvc-nothrow.c result = _get_osfhandle (fd); fd 36 maint/gnulib/lib/msvc-nothrow.h extern intptr_t _gl_nothrow_get_osfhandle (int fd); fd 69 maint/gnulib/lib/open.c int fd; fd 130 maint/gnulib/lib/open.c fd = orig_open (filename, fd 137 maint/gnulib/lib/open.c if (0 <= fd) fd 141 maint/gnulib/lib/open.c fd = orig_open (filename, flags & ~O_CLOEXEC, mode); fd 145 maint/gnulib/lib/open.c if (have_cloexec < 0 && 0 <= fd) fd 146 maint/gnulib/lib/open.c set_cloexec_flag (fd, true); fd 157 maint/gnulib/lib/open.c if (REPLACE_OPEN_DIRECTORY && fd < 0 && errno == EACCES fd 165 maint/gnulib/lib/open.c fd = open ("/dev/null", flags, mode); fd 166 maint/gnulib/lib/open.c if (0 <= fd) fd 167 maint/gnulib/lib/open.c fd = _gl_register_fd (fd, filename); fd 185 maint/gnulib/lib/open.c if (fd >= 0) fd 193 maint/gnulib/lib/open.c if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) fd 195 maint/gnulib/lib/open.c close (fd); fd 204 maint/gnulib/lib/open.c if (!REPLACE_OPEN_DIRECTORY && 0 <= fd) fd 205 maint/gnulib/lib/open.c fd = _gl_register_fd (fd, filename); fd 208 maint/gnulib/lib/open.c return fd; fd 47 maint/gnulib/lib/openat-priv.h char *openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file); fd 44 maint/gnulib/lib/openat-proc.c openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file) fd 107 maint/gnulib/lib/openat-proc.c dirlen = sprintf (result, PROC_SELF_FD_FORMAT, fd); fd 116 maint/gnulib/lib/openat-proc.c if (__libc_Back_ioFHToPath (fd, dir, sizeof dir)) fd 29 maint/gnulib/lib/openat-safer.c openat_safer (int fd, char const *file, int flags, ...) fd 45 maint/gnulib/lib/openat-safer.c return fd_safer (openat (fd, file, flags, mode)); fd 32 maint/gnulib/lib/openat.c orig_openat (int fd, char const *filename, int flags, mode_t mode) fd 34 maint/gnulib/lib/openat.c return openat (fd, filename, flags, mode); fd 69 maint/gnulib/lib/openat.c int fd; fd 116 maint/gnulib/lib/openat.c fd = orig_openat (dfd, filename, fd 123 maint/gnulib/lib/openat.c if (0 <= fd) fd 127 maint/gnulib/lib/openat.c fd = orig_openat (dfd, filename, flags & ~O_CLOEXEC, mode); fd 131 maint/gnulib/lib/openat.c if (have_cloexec < 0 && 0 <= fd) fd 132 maint/gnulib/lib/openat.c set_cloexec_flag (fd, true); fd 147 maint/gnulib/lib/openat.c if (fd >= 0) fd 155 maint/gnulib/lib/openat.c if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) fd 157 maint/gnulib/lib/openat.c close (fd); fd 165 maint/gnulib/lib/openat.c return fd; fd 183 maint/gnulib/lib/openat.c openat (int fd, char const *file, int flags, ...) fd 199 maint/gnulib/lib/openat.c return openat_permissive (fd, file, flags, mode, NULL); fd 214 maint/gnulib/lib/openat.c openat_permissive (int fd, char const *file, int flags, mode_t mode, fd 222 maint/gnulib/lib/openat.c if (fd == AT_FDCWD || IS_ABSOLUTE_FILE_NAME (file)) fd 227 maint/gnulib/lib/openat.c char *proc_file = openat_proc_name (buf, fd, file); fd 252 maint/gnulib/lib/openat.c if (0 <= fd && fd == saved_cwd.desc) fd 262 maint/gnulib/lib/openat.c err = fchdir (fd); fd 294 maint/gnulib/lib/openat.c int fd = open ("/", O_SEARCH | O_CLOEXEC); fd 296 maint/gnulib/lib/openat.c if (0 <= fd) fd 299 maint/gnulib/lib/openat.c char *proc_file = openat_proc_name (buf, fd, "."); fd 306 maint/gnulib/lib/openat.c close (fd); fd 36 maint/gnulib/lib/openat.h int openat_permissive (int fd, char const *file, int flags, mode_t mode, fd 62 maint/gnulib/lib/openat.h chownat (int fd, char const *file, uid_t owner, gid_t group) fd 64 maint/gnulib/lib/openat.h return fchownat (fd, file, owner, group, 0); fd 68 maint/gnulib/lib/openat.h lchownat (int fd, char const *file, uid_t owner, gid_t group) fd 70 maint/gnulib/lib/openat.h return fchownat (fd, file, owner, group, AT_SYMLINK_NOFOLLOW); fd 82 maint/gnulib/lib/openat.h chmodat (int fd, char const *file, mode_t mode) fd 84 maint/gnulib/lib/openat.h return fchmodat (fd, file, mode, 0); fd 88 maint/gnulib/lib/openat.h lchmodat (int fd, char const *file, mode_t mode) fd 90 maint/gnulib/lib/openat.h return fchmodat (fd, file, mode, AT_SYMLINK_NOFOLLOW); fd 102 maint/gnulib/lib/openat.h statat (int fd, char const *name, struct stat *st) fd 104 maint/gnulib/lib/openat.h return fstatat (fd, name, st, 0); fd 108 maint/gnulib/lib/openat.h lstatat (int fd, char const *name, struct stat *st) fd 110 maint/gnulib/lib/openat.h return fstatat (fd, name, st, AT_SYMLINK_NOFOLLOW); fd 37 maint/gnulib/lib/opendir-safer.c int fd = dirfd (dp); fd 39 maint/gnulib/lib/opendir-safer.c if (0 <= fd && fd <= STDERR_FILENO) fd 52 maint/gnulib/lib/opendir-safer.c int f = fcntl (fd, F_DUPFD_CLOEXEC, STDERR_FILENO + 1); fd 71 maint/gnulib/lib/opendir.c int fd = open (dir_name, O_RDONLY); fd 72 maint/gnulib/lib/opendir.c if (fd == -1 || _gl_register_dirp_fd (fd, dirp)) fd 76 maint/gnulib/lib/opendir.c close (fd); fd 167 maint/gnulib/lib/opendir.c int fd = dirfd (dirp); fd 168 maint/gnulib/lib/opendir.c if (0 <= fd && _gl_register_fd (fd, dir_name) != fd) fd 42 maint/gnulib/lib/os2-spawn.c dup_noinherit (int fd) fd 44 maint/gnulib/lib/os2-spawn.c fd = dup_cloexec (fd); fd 45 maint/gnulib/lib/os2-spawn.c if (fd < 0 && errno == EMFILE) fd 48 maint/gnulib/lib/os2-spawn.c return fd; fd 57 maint/gnulib/lib/os2-spawn.c fd_safer_noinherit (int fd) fd 59 maint/gnulib/lib/os2-spawn.c if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) fd 62 maint/gnulib/lib/os2-spawn.c int nfd = fd_safer_noinherit (dup_noinherit (fd)); fd 64 maint/gnulib/lib/os2-spawn.c close (fd); fd 68 maint/gnulib/lib/os2-spawn.c return fd; fd 72 maint/gnulib/lib/os2-spawn.c dup_safer_noinherit (int fd) fd 74 maint/gnulib/lib/os2-spawn.c return fd_safer_noinherit (dup_noinherit (fd)); fd 24 maint/gnulib/lib/os2-spawn.h extern int dup_safer_noinherit (int fd); fd 126 maint/gnulib/lib/pagealign_alloc.c const int fd = -1; fd 129 maint/gnulib/lib/pagealign_alloc.c static int fd = -1; /* Only open /dev/zero once in order to avoid limiting fd 133 maint/gnulib/lib/pagealign_alloc.c if (fd == -1) fd 135 maint/gnulib/lib/pagealign_alloc.c fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0666); fd 136 maint/gnulib/lib/pagealign_alloc.c if (fd < 0) fd 140 maint/gnulib/lib/pagealign_alloc.c ret = mmap (NULL, size, PROT_READ | PROT_WRITE, flags, fd, 0); fd 50 maint/gnulib/lib/passfd.c sendfd (int sock, int fd) fd 57 maint/gnulib/lib/passfd.c char buf[CMSG_SPACE (sizeof fd)]; fd 75 maint/gnulib/lib/passfd.c cmsg->cmsg_len = CMSG_LEN (sizeof fd); fd 77 maint/gnulib/lib/passfd.c memcpy (CMSG_DATA (cmsg), &fd, sizeof fd); fd 80 maint/gnulib/lib/passfd.c msg.msg_accrights = &fd; fd 81 maint/gnulib/lib/passfd.c msg.msg_accrightslen = sizeof fd; fd 93 maint/gnulib/lib/passfd.c sendfd (_GL_UNUSED int sock, _GL_UNUSED int fd) fd 113 maint/gnulib/lib/passfd.c int fd = -1; fd 117 maint/gnulib/lib/passfd.c char buf[CMSG_SPACE (sizeof fd)]; fd 142 maint/gnulib/lib/passfd.c cmsg->cmsg_len = CMSG_LEN (sizeof fd); fd 144 maint/gnulib/lib/passfd.c memcpy (CMSG_DATA (cmsg), &fd, sizeof fd); fd 145 maint/gnulib/lib/passfd.c msg.msg_controllen = CMSG_SPACE (sizeof fd); fd 158 maint/gnulib/lib/passfd.c if (cmsg == NULL || cmsg->cmsg_len != CMSG_LEN (sizeof fd) fd 165 maint/gnulib/lib/passfd.c memcpy (&fd, CMSG_DATA (cmsg), sizeof fd); fd 170 maint/gnulib/lib/passfd.c if (set_cloexec_flag (fd, true) < 0) fd 173 maint/gnulib/lib/passfd.c (void) close (fd); fd 180 maint/gnulib/lib/passfd.c msg.msg_accrights = &fd; fd 181 maint/gnulib/lib/passfd.c msg.msg_accrightslen = sizeof fd; fd 188 maint/gnulib/lib/passfd.c if (set_cloexec_flag (fd, true) < 0) fd 191 maint/gnulib/lib/passfd.c close (fd); fd 200 maint/gnulib/lib/passfd.c return fd; fd 25 maint/gnulib/lib/passfd.h extern int sendfd (int sock, int fd); fd 60 maint/gnulib/lib/pipe-filter-aux.h nonintr_close (int fd) fd 65 maint/gnulib/lib/pipe-filter-aux.h retval = close (fd); fd 74 maint/gnulib/lib/pipe-filter-aux.h nonintr_read (int fd, void *buf, size_t count) fd 79 maint/gnulib/lib/pipe-filter-aux.h retval = read (fd, buf, count); fd 88 maint/gnulib/lib/pipe-filter-aux.h nonintr_write (int fd, const void *buf, size_t count) fd 93 maint/gnulib/lib/pipe-filter-aux.h retval = write (fd, buf, count); fd 59 maint/gnulib/lib/pipe-filter-gi.c int fd[2]; fd 116 maint/gnulib/lib/pipe-filter-gi.c read (filter->fd[0], buf, bufsize > SSIZE_MAX ? SSIZE_MAX : bufsize); fd 173 maint/gnulib/lib/pipe-filter-gi.c write (filter->fd[1], wbuf, count > SSIZE_MAX ? SSIZE_MAX : count); fd 251 maint/gnulib/lib/pipe-filter-gi.c if ((fcntl_flags = fcntl (filter->fd[1], F_GETFL, 0)) < 0 fd 252 maint/gnulib/lib/pipe-filter-gi.c || fcntl (filter->fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) == -1 fd 253 maint/gnulib/lib/pipe-filter-gi.c || (fcntl_flags = fcntl (filter->fd[0], F_GETFL, 0)) < 0 fd 254 maint/gnulib/lib/pipe-filter-gi.c || fcntl (filter->fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) == -1) fd 312 maint/gnulib/lib/pipe-filter-gi.c FD_SET (filter->fd[0], &filter->readfds); fd 313 maint/gnulib/lib/pipe-filter-gi.c n = filter->fd[0] + 1; fd 317 maint/gnulib/lib/pipe-filter-gi.c FD_SET (filter->fd[1], &filter->writefds); fd 318 maint/gnulib/lib/pipe-filter-gi.c if (n <= filter->fd[1]) fd 319 maint/gnulib/lib/pipe-filter-gi.c n = filter->fd[1] + 1; fd 343 maint/gnulib/lib/pipe-filter-gi.c if (!done_writing && FD_ISSET (filter->fd[1], &filter->writefds)) fd 346 maint/gnulib/lib/pipe-filter-gi.c && FD_ISSET (filter->fd[0], &filter->readfds)) fd 359 maint/gnulib/lib/pipe-filter-gi.c write (filter->fd[1], wbuf, count > SSIZE_MAX ? SSIZE_MAX : count); fd 398 maint/gnulib/lib/pipe-filter-gi.c read (filter->fd[0], buf, fd 450 maint/gnulib/lib/pipe-filter-gi.c close (filter->fd[1]); fd 452 maint/gnulib/lib/pipe-filter-gi.c close (filter->fd[0]); fd 502 maint/gnulib/lib/pipe-filter-gi.c filter->fd); fd 178 maint/gnulib/lib/pipe-filter-ii.c int fd[2]; fd 200 maint/gnulib/lib/pipe-filter-ii.c write (l->fd[1], buf, bufsize > SSIZE_MAX ? SSIZE_MAX : bufsize); fd 236 maint/gnulib/lib/pipe-filter-ii.c read (l->fd[0], buf, bufsize > SSIZE_MAX ? SSIZE_MAX : bufsize); fd 267 maint/gnulib/lib/pipe-filter-ii.c int fd[2]; fd 275 maint/gnulib/lib/pipe-filter-ii.c fd); fd 300 maint/gnulib/lib/pipe-filter-ii.c l.fd[0] = fd[0]; fd 301 maint/gnulib/lib/pipe-filter-ii.c l.fd[1] = fd[1]; fd 355 maint/gnulib/lib/pipe-filter-ii.c close (fd[1]); fd 413 maint/gnulib/lib/pipe-filter-ii.c if ((fcntl_flags = fcntl (fd[1], F_GETFL, 0)) < 0 fd 414 maint/gnulib/lib/pipe-filter-ii.c || fcntl (fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) == -1 fd 415 maint/gnulib/lib/pipe-filter-ii.c || (fcntl_flags = fcntl (fd[0], F_GETFL, 0)) < 0 fd 416 maint/gnulib/lib/pipe-filter-ii.c || fcntl (fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) == -1) fd 436 maint/gnulib/lib/pipe-filter-ii.c FD_SET (fd[0], &readfds); fd 437 maint/gnulib/lib/pipe-filter-ii.c n = fd[0] + 1; fd 440 maint/gnulib/lib/pipe-filter-ii.c FD_SET (fd[1], &writefds); fd 441 maint/gnulib/lib/pipe-filter-ii.c if (n <= fd[1]) fd 442 maint/gnulib/lib/pipe-filter-ii.c n = fd[1] + 1; fd 461 maint/gnulib/lib/pipe-filter-ii.c if (!done_writing && FD_ISSET (fd[1], &writefds)) fd 463 maint/gnulib/lib/pipe-filter-ii.c if (FD_ISSET (fd[0], &readfds)) fd 490 maint/gnulib/lib/pipe-filter-ii.c ssize_t nwritten = write (fd[1], buf, attempt_to_write); fd 519 maint/gnulib/lib/pipe-filter-ii.c close (fd[1]); fd 539 maint/gnulib/lib/pipe-filter-ii.c read (fd[0], buf, bufsize > SSIZE_MAX ? SSIZE_MAX : bufsize); fd 570 maint/gnulib/lib/pipe-filter-ii.c close (fd[0]); fd 586 maint/gnulib/lib/pipe-filter-ii.c close (fd[1]); fd 591 maint/gnulib/lib/pipe-filter-ii.c close (fd[0]); fd 31 maint/gnulib/lib/pipe-safer.c pipe_safer (int fd[2]) fd 33 maint/gnulib/lib/pipe-safer.c if (pipe (fd) == 0) fd 38 maint/gnulib/lib/pipe-safer.c fd[i] = fd_safer (fd[i]); fd 39 maint/gnulib/lib/pipe-safer.c if (fd[i] < 0) fd 42 maint/gnulib/lib/pipe-safer.c close (fd[1 - i]); fd 32 maint/gnulib/lib/pipe.c pipe (int fd[2]) fd 40 maint/gnulib/lib/pipe.c fd[0] = tmp[0]; fd 41 maint/gnulib/lib/pipe.c fd[1] = tmp[1]; fd 31 maint/gnulib/lib/pipe2-safer.c pipe2_safer (int fd[2], int flags) fd 34 maint/gnulib/lib/pipe2-safer.c if (pipe2 (fd, flags) == 0) fd 39 maint/gnulib/lib/pipe2-safer.c fd[i] = fd_safer_flag (fd[i], flags); fd 40 maint/gnulib/lib/pipe2-safer.c if (fd[i] < 0) fd 43 maint/gnulib/lib/pipe2-safer.c close (fd[1 - i]); fd 40 maint/gnulib/lib/pipe2.c pipe2 (int fd[2], int flags) fd 46 maint/gnulib/lib/pipe2.c tmp[0] = fd[0]; fd 47 maint/gnulib/lib/pipe2.c tmp[1] = fd[1]; fd 58 maint/gnulib/lib/pipe2.c int result = pipe2 (fd, flags); fd 79 maint/gnulib/lib/pipe2.c if (_pipe (fd, 4096, flags & ~O_NONBLOCK) < 0) fd 81 maint/gnulib/lib/pipe2.c fd[0] = tmp[0]; fd 82 maint/gnulib/lib/pipe2.c fd[1] = tmp[1]; fd 92 maint/gnulib/lib/pipe2.c if (set_nonblocking_flag (fd[0], true) != 0 fd 93 maint/gnulib/lib/pipe2.c || set_nonblocking_flag (fd[1], true) != 0) fd 107 maint/gnulib/lib/pipe2.c if (pipe (fd) < 0) fd 120 maint/gnulib/lib/pipe2.c if ((fcntl_flags = fcntl (fd[1], F_GETFL, 0)) < 0 fd 121 maint/gnulib/lib/pipe2.c || fcntl (fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) == -1 fd 122 maint/gnulib/lib/pipe2.c || (fcntl_flags = fcntl (fd[0], F_GETFL, 0)) < 0 fd 123 maint/gnulib/lib/pipe2.c || fcntl (fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) == -1) fd 131 maint/gnulib/lib/pipe2.c if ((fcntl_flags = fcntl (fd[1], F_GETFD, 0)) < 0 fd 132 maint/gnulib/lib/pipe2.c || fcntl (fd[1], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1 fd 133 maint/gnulib/lib/pipe2.c || (fcntl_flags = fcntl (fd[0], F_GETFD, 0)) < 0 fd 134 maint/gnulib/lib/pipe2.c || fcntl (fd[0], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1) fd 141 maint/gnulib/lib/pipe2.c set_binary_mode (fd[1], O_BINARY); fd 142 maint/gnulib/lib/pipe2.c set_binary_mode (fd[0], O_BINARY); fd 146 maint/gnulib/lib/pipe2.c set_binary_mode (fd[1], O_TEXT); fd 147 maint/gnulib/lib/pipe2.c set_binary_mode (fd[0], O_TEXT); fd 159 maint/gnulib/lib/pipe2.c close (fd[0]); fd 160 maint/gnulib/lib/pipe2.c close (fd[1]); fd 161 maint/gnulib/lib/pipe2.c fd[0] = tmp[0]; fd 162 maint/gnulib/lib/pipe2.c fd[1] = tmp[1]; fd 314 maint/gnulib/lib/poll.c compute_revents (int fd, int sought, fd_set *rfds, fd_set *wfds, fd_set *efds) fd 317 maint/gnulib/lib/poll.c if (FD_ISSET (fd, rfds)) fd 327 maint/gnulib/lib/poll.c r = recv (fd, NULL, 0, MSG_PEEK); fd 330 maint/gnulib/lib/poll.c ioctl (fd, FIONREAD, &r); fd 333 maint/gnulib/lib/poll.c r = recv (fd, data, sizeof (data), MSG_PEEK); fd 357 maint/gnulib/lib/poll.c if (FD_ISSET (fd, wfds)) fd 360 maint/gnulib/lib/poll.c if (FD_ISSET (fd, efds)) fd 424 maint/gnulib/lib/poll.c if (pfd[i].fd < 0) fd 426 maint/gnulib/lib/poll.c if (maxfd < pfd[i].fd) fd 428 maint/gnulib/lib/poll.c maxfd = pfd[i].fd; fd 436 maint/gnulib/lib/poll.c FD_SET (pfd[i].fd, &rfds); fd 441 maint/gnulib/lib/poll.c FD_SET (pfd[i].fd, &wfds); fd 443 maint/gnulib/lib/poll.c FD_SET (pfd[i].fd, &efds); fd 455 maint/gnulib/lib/poll.c pfd[i].revents = (pfd[i].fd < 0 fd 457 maint/gnulib/lib/poll.c : compute_revents (pfd[i].fd, pfd[i].events, fd 496 maint/gnulib/lib/poll.c if (pfd[i].fd < 0) fd 502 maint/gnulib/lib/poll.c h = (HANDLE) _get_osfhandle (pfd[i].fd); fd 587 maint/gnulib/lib/poll.c if (pfd[i].fd < 0) fd 593 maint/gnulib/lib/poll.c h = (HANDLE) _get_osfhandle (pfd[i].fd); fd 82 maint/gnulib/lib/poll.in.h int fd; /* which file descriptor to poll */ fd 42 maint/gnulib/lib/popen-safer.c int fd = open ("/dev/null", O_RDONLY | O_CLOEXEC); fd 43 maint/gnulib/lib/popen-safer.c if (0 <= fd && fd <= STDERR_FILENO) fd 49 maint/gnulib/lib/popen-safer.c close (fd); fd 56 maint/gnulib/lib/popen-safer.c close (fd); fd 67 maint/gnulib/lib/posix_openpt.c int fd; fd 70 maint/gnulib/lib/posix_openpt.c fd = open (PATH_PTMDEV, O_RDWR); fd 71 maint/gnulib/lib/posix_openpt.c if (fd >= 0) fd 73 maint/gnulib/lib/posix_openpt.c if (ioctl (fd, PTMGET, &data) >= 0) fd 77 maint/gnulib/lib/posix_openpt.c close (fd); fd 82 maint/gnulib/lib/posix_openpt.c close (fd); fd 35 maint/gnulib/lib/pread.c pread (int fd, void *buf, size_t nbyte, off_t offset) fd 41 maint/gnulib/lib/pread.c off_t old_offset = __libc_lseek (fd, 0, SEEK_CUR); fd 46 maint/gnulib/lib/pread.c if (__libc_lseek (fd, offset, SEEK_SET) == (off_t) -1) fd 50 maint/gnulib/lib/pread.c result = __libc_read (fd, buf, nbyte); fd 56 maint/gnulib/lib/pread.c if (__libc_lseek (fd, old_offset, SEEK_SET) == (off_t) -1) fd 121 maint/gnulib/lib/progreloc.c safe_read (int fd, void *buf, size_t count) fd 125 maint/gnulib/lib/progreloc.c ssize_t result = read (fd, buf, count); fd 134 maint/gnulib/lib/progreloc.c full_read (int fd, void *buf, size_t count) fd 141 maint/gnulib/lib/progreloc.c size_t n = safe_read (fd, ptr, count); fd 312 maint/gnulib/lib/progreloc.c int fd = open ("/proc/self/execname", O_RDONLY | O_CLOEXEC, 0); fd 313 maint/gnulib/lib/progreloc.c if (fd >= 0) fd 315 maint/gnulib/lib/progreloc.c size_t len = full_read (fd, namebuf, sizeof (namebuf)); fd 316 maint/gnulib/lib/progreloc.c close (fd); fd 29 maint/gnulib/lib/ptsname.c ptsname (int fd) fd 31 maint/gnulib/lib/ptsname.c return ptsname_r (fd, buffer, sizeof (buffer)) != 0 ? NULL : buffer; fd 67 maint/gnulib/lib/ptsname_r.c ptsname_r (int fd, char *buf, size_t buflen) fd 71 maint/gnulib/lib/ptsname_r.c int ret = ptsname_r (fd, buf, buflen); fd 87 maint/gnulib/lib/ptsname_r.c ret = fdevname_r (fd, tmpbuf + 5, sizeof (tmpbuf) - 5); fd 117 maint/gnulib/lib/ptsname_r.c if (fstat (fd, &st) < 0) fd 137 maint/gnulib/lib/ptsname_r.c if (ioctl (fd, I_STR, &ioctl_arg) < 0) fd 157 maint/gnulib/lib/ptsname_r.c if (fstat (fd, &st) < 0) fd 170 maint/gnulib/lib/ptsname_r.c ret = ioctl (fd, ISPTM, &dev); fd 173 maint/gnulib/lib/ptsname_r.c ret = ioctl (fd, ISPTM, NULL); fd 190 maint/gnulib/lib/ptsname_r.c if (!isatty (fd)) fd 194 maint/gnulib/lib/ptsname_r.c if (fcntl (fd, F_GETFL) != -1) fd 208 maint/gnulib/lib/ptsname_r.c int err = ttyname_r (fd, buf, buflen); fd 34 maint/gnulib/lib/pwrite.c pwrite (int fd, const void *buf, size_t nbyte, off_t offset) fd 40 maint/gnulib/lib/pwrite.c off_t old_offset = __libc_lseek (fd, 0, SEEK_CUR); fd 45 maint/gnulib/lib/pwrite.c if (__libc_lseek (fd, offset, SEEK_SET) == (off_t) -1) fd 49 maint/gnulib/lib/pwrite.c result = __libc_write (fd, buf, nbyte); fd 55 maint/gnulib/lib/pwrite.c if (__libc_lseek (fd, old_offset, SEEK_SET) == (off_t) -1) fd 48 maint/gnulib/lib/read.c read_nothrow (int fd, void *buf, size_t count) fd 54 maint/gnulib/lib/read.c result = _read (fd, buf, count); fd 70 maint/gnulib/lib/read.c rpl_read (int fd, void *buf, size_t count) fd 72 maint/gnulib/lib/read.c ssize_t ret = read_nothrow (fd, buf, count); fd 78 maint/gnulib/lib/read.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 35 maint/gnulib/lib/readlinkat.c rpl_readlinkat (int fd, char const *file, char *buf, size_t bufsize) fd 47 maint/gnulib/lib/readlinkat.c if (fstatat (fd, file, &st, 0) == 0 || errno == EOVERFLOW) fd 53 maint/gnulib/lib/readlinkat.c ssize_t r = readlinkat (fd, file, buf, bufsize); fd 61 maint/gnulib/lib/readlinkat.c r = readlinkat (fd, file, stackbuf, sizeof stackbuf); fd 32 maint/gnulib/lib/recv.c rpl_recv (int fd, void *buf, size_t len, int flags) fd 34 maint/gnulib/lib/recv.c SOCKET sock = FD_TO_SOCKET (fd); fd 32 maint/gnulib/lib/recvfrom.c rpl_recvfrom (int fd, void *buf, size_t len, int flags, struct sockaddr *from, fd 35 maint/gnulib/lib/recvfrom.c SOCKET sock = FD_TO_SOCKET (fd); fd 54 maint/gnulib/lib/recvfrom.c rpl_getpeername (fd, from, fromlen); fd 56 maint/gnulib/lib/safe-read.c safe_rw (int fd, void const *buf, size_t count) fd 60 maint/gnulib/lib/safe-read.c ssize_t result = rw (fd, buf, count); fd 42 maint/gnulib/lib/safe-read.h extern size_t safe_read (int fd, void *buf, size_t count); fd 37 maint/gnulib/lib/safe-write.h extern size_t safe_write (int fd, const void *buf, size_t count); fd 51 maint/gnulib/lib/savewd.c int fd = open_safer (".", O_SEARCH); fd 52 maint/gnulib/lib/savewd.c if (0 <= fd) fd 55 maint/gnulib/lib/savewd.c wd->val.fd = fd; fd 102 maint/gnulib/lib/savewd.c int fd = -1; fd 110 maint/gnulib/lib/savewd.c fd = open (dir, fd 116 maint/gnulib/lib/savewd.c open_result[0] = fd; fd 120 maint/gnulib/lib/savewd.c if (fd < 0 && errno != EACCES) fd 124 maint/gnulib/lib/savewd.c if (result == 0 && ! (0 <= fd && options & SAVEWD_CHDIR_SKIP_READABLE)) fd 133 maint/gnulib/lib/savewd.c result = (fd < 0 ? chdir (dir) : fchdir (fd)); fd 157 maint/gnulib/lib/savewd.c if (0 <= fd && ! open_result) fd 160 maint/gnulib/lib/savewd.c close (fd); fd 180 maint/gnulib/lib/savewd.c if (fchdir (wd->val.fd) == 0) fd 188 maint/gnulib/lib/savewd.c close (wd->val.fd); fd 236 maint/gnulib/lib/savewd.c close (wd->val.fd); fd 71 maint/gnulib/lib/savewd.h int fd; fd 86 maint/gnulib/lib/se-selinux.in.h fgetfilecon (int fd,_GL_ATTRIBUTE_MAYBE_UNUSED char **con) fd 97 maint/gnulib/lib/se-selinux.in.h fsetfilecon (_GL_ATTRIBUTE_MAYBE_UNUSED int fd, fd 133 maint/gnulib/lib/select.c windows_poll_handle (HANDLE h, int fd, fd 198 maint/gnulib/lib/select.c if (!(rbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) fd 245 maint/gnulib/lib/select.c if (read && (rbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) fd 247 maint/gnulib/lib/select.c rbits->out[fd / CHAR_BIT] |= (1 << (fd & (CHAR_BIT - 1))); fd 251 maint/gnulib/lib/select.c if (write && (wbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) fd 253 maint/gnulib/lib/select.c wbits->out[fd / CHAR_BIT] |= (1 << (fd & (CHAR_BIT - 1))); fd 257 maint/gnulib/lib/select.c if (except && (xbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) fd 259 maint/gnulib/lib/select.c xbits->out[fd / CHAR_BIT] |= (1 << (fd & (CHAR_BIT - 1))); fd 279 maint/gnulib/lib/select.c int i, fd, rc; fd 317 maint/gnulib/lib/select.c fd = rfds->fd_array[i]; fd 318 maint/gnulib/lib/select.c h = (HANDLE) _get_osfhandle (fd); fd 323 maint/gnulib/lib/select.c rbits.in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); fd 324 maint/gnulib/lib/select.c anyfds_in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); fd 332 maint/gnulib/lib/select.c fd = wfds->fd_array[i]; fd 333 maint/gnulib/lib/select.c h = (HANDLE) _get_osfhandle (fd); fd 338 maint/gnulib/lib/select.c wbits.in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); fd 339 maint/gnulib/lib/select.c anyfds_in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); fd 347 maint/gnulib/lib/select.c fd = xfds->fd_array[i]; fd 348 maint/gnulib/lib/select.c xbits.in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); fd 349 maint/gnulib/lib/select.c anyfds_in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); fd 32 maint/gnulib/lib/send.c rpl_send (int fd, const void *buf, size_t len, int flags) fd 34 maint/gnulib/lib/send.c SOCKET sock = FD_TO_SOCKET (fd); fd 32 maint/gnulib/lib/sendto.c rpl_sendto (int fd, const void *buf, size_t len, int flags, fd 35 maint/gnulib/lib/sendto.c SOCKET sock = FD_TO_SOCKET (fd); fd 35 maint/gnulib/lib/setsockopt.c rpl_setsockopt (int fd, int level, int optname, const void *optval, socklen_t optlen) fd 37 maint/gnulib/lib/setsockopt.c SOCKET sock = FD_TO_SOCKET (fd); fd 32 maint/gnulib/lib/shutdown.c rpl_shutdown (int fd, int how) fd 34 maint/gnulib/lib/shutdown.c SOCKET sock = FD_TO_SOCKET (fd); fd 43 maint/gnulib/lib/sockets.c int fd) fd 53 maint/gnulib/lib/sockets.c sock = FD_TO_SOCKET (fd); fd 72 maint/gnulib/lib/sockets.c _close (fd); fd 78 maint/gnulib/lib/sockets.c return execute_close_hooks (remaining_list, primary, fd); fd 84 maint/gnulib/lib/sockets.c int fd, int request, void *arg) fd 90 maint/gnulib/lib/sockets.c sock = FD_TO_SOCKET (fd); fd 106 maint/gnulib/lib/sockets.c return execute_ioctl_hooks (remaining_list, primary, fd, request, arg); fd 55 maint/gnulib/lib/sockets.h gl_fd_to_handle (int fd) fd 57 maint/gnulib/lib/sockets.h return _get_osfhandle (fd); fd 92 maint/gnulib/lib/spawn-pipe.c nonintr_close (int fd) fd 97 maint/gnulib/lib/spawn-pipe.c retval = close (fd); fd 146 maint/gnulib/lib/spawn-pipe.c int fd[2]) fd 439 maint/gnulib/lib/spawn-pipe.c fd[0] = ifd[0]; fd 441 maint/gnulib/lib/spawn-pipe.c fd[1] = ofd[1]; fd 585 maint/gnulib/lib/spawn-pipe.c fd[0] = ifd[0]; fd 587 maint/gnulib/lib/spawn-pipe.c fd[1] = ofd[1]; fd 616 maint/gnulib/lib/spawn-pipe.c int fd[2]) fd 621 maint/gnulib/lib/spawn-pipe.c fd); fd 638 maint/gnulib/lib/spawn-pipe.c int fd[1]) fd 646 maint/gnulib/lib/spawn-pipe.c fd[0] = iofd[0]; fd 663 maint/gnulib/lib/spawn-pipe.c int fd[1]) fd 671 maint/gnulib/lib/spawn-pipe.c fd[0] = iofd[1]; fd 104 maint/gnulib/lib/spawn-pipe.h int fd[1]); fd 119 maint/gnulib/lib/spawn-pipe.h int fd[1]); fd 149 maint/gnulib/lib/spawn-pipe.h int fd[2]); fd 37 maint/gnulib/lib/spawn_faction_addclose.c int fd) fd 43 maint/gnulib/lib/spawn_faction_addclose.c if (fd < 0 || fd >= maxfd) fd 47 maint/gnulib/lib/spawn_faction_addclose.c return posix_spawn_file_actions_addclose (file_actions, fd); fd 61 maint/gnulib/lib/spawn_faction_addclose.c rec->action.open_action.fd = fd; fd 37 maint/gnulib/lib/spawn_faction_adddup2.c int fd, int newfd) fd 43 maint/gnulib/lib/spawn_faction_adddup2.c if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd) fd 47 maint/gnulib/lib/spawn_faction_adddup2.c return posix_spawn_file_actions_adddup2 (file_actions, fd, newfd); fd 61 maint/gnulib/lib/spawn_faction_adddup2.c rec->action.dup2_action.fd = fd; fd 36 maint/gnulib/lib/spawn_faction_addfchdir.c int fd) fd 42 maint/gnulib/lib/spawn_faction_addfchdir.c if (fd < 0 || fd >= maxfd) fd 46 maint/gnulib/lib/spawn_faction_addfchdir.c return posix_spawn_file_actions_addfchdir_np (file_actions, fd); fd 60 maint/gnulib/lib/spawn_faction_addfchdir.c rec->action.fchdir_action.fd = fd; fd 39 maint/gnulib/lib/spawn_faction_addopen.c int fd, const char *path, int oflag, fd 46 maint/gnulib/lib/spawn_faction_addopen.c if (fd < 0 || fd >= maxfd) fd 50 maint/gnulib/lib/spawn_faction_addopen.c return posix_spawn_file_actions_addopen (file_actions, fd, path, oflag, mode); fd 74 maint/gnulib/lib/spawn_faction_addopen.c rec->action.open_action.fd = fd; fd 35 maint/gnulib/lib/spawn_int.h int fd; fd 39 maint/gnulib/lib/spawn_int.h int fd; fd 44 maint/gnulib/lib/spawn_int.h int fd; fd 55 maint/gnulib/lib/spawn_int.h int fd; fd 171 maint/gnulib/lib/spawni.c unsigned int fd; fd 173 maint/gnulib/lib/spawni.c for (fd = 0; fd < handles_count; fd++) fd 175 maint/gnulib/lib/spawni.c HANDLE handle = handles[fd]; fd 464 maint/gnulib/lib/spawni.c do_close (struct inheritable_handles *inh_handles, int fd) fd 466 maint/gnulib/lib/spawni.c if (!(fd >= 0 && fd < inh_handles->count fd 467 maint/gnulib/lib/spawni.c && inh_handles->handles[fd] != INVALID_HANDLE_VALUE)) fd 472 maint/gnulib/lib/spawni.c if (!CloseHandle (inh_handles->handles[fd])) fd 477 maint/gnulib/lib/spawni.c inh_handles->handles[fd] = INVALID_HANDLE_VALUE; fd 575 maint/gnulib/lib/spawni.c int fd = action->action.close_action.fd; fd 576 maint/gnulib/lib/spawni.c if (do_close (&inh_handles, fd) < 0) fd 583 maint/gnulib/lib/spawni.c int newfd = action->action.open_action.fd; fd 596 maint/gnulib/lib/spawni.c int oldfd = action->action.dup2_action.fd; fd 834 maint/gnulib/lib/spawni.c if (close_not_cancel (action->action.close_action.fd) != 0) fd 851 maint/gnulib/lib/spawni.c if (new_fd != action->action.open_action.fd) fd 853 maint/gnulib/lib/spawni.c if (dup2 (new_fd, action->action.open_action.fd) fd 854 maint/gnulib/lib/spawni.c != action->action.open_action.fd) fd 866 maint/gnulib/lib/spawni.c if (dup2 (action->action.dup2_action.fd, fd 880 maint/gnulib/lib/spawni.c if (fchdir (action->action.fchdir_action.fd) < 0) fd 153 maint/gnulib/lib/stackvma.c int fd; fd 157 maint/gnulib/lib/stackvma.c fd = open (filename, O_RDONLY); fd 158 maint/gnulib/lib/stackvma.c if (fd < 0) fd 174 maint/gnulib/lib/stackvma.c int n = read (fd, rof->buffer, size); fd 193 maint/gnulib/lib/stackvma.c n = read (fd, rof->buffer + rof->filled, size - rof->filled); fd 205 maint/gnulib/lib/stackvma.c close (fd); fd 211 maint/gnulib/lib/stackvma.c close (fd); fd 238 maint/gnulib/lib/stackvma.c close (fd); fd 247 maint/gnulib/lib/stackvma.c if (lseek (fd, 0, SEEK_SET) < 0) fd 249 maint/gnulib/lib/stackvma.c close (fd); fd 250 maint/gnulib/lib/stackvma.c fd = open (filename, O_RDONLY); fd 251 maint/gnulib/lib/stackvma.c if (fd < 0) fd 256 maint/gnulib/lib/stackvma.c close (fd); fd 1584 maint/gnulib/lib/stackvma.c int fd; fd 1615 maint/gnulib/lib/stackvma.c fd = open (fname, O_RDONLY); fd 1616 maint/gnulib/lib/stackvma.c if (fd < 0) fd 1619 maint/gnulib/lib/stackvma.c if (ioctl (fd, PIOCNMAP, &nmaps) < 0) fd 1645 maint/gnulib/lib/stackvma.c if (ioctl (fd, PIOCMAP, maps) < 0) fd 1675 maint/gnulib/lib/stackvma.c close (fd); fd 1681 maint/gnulib/lib/stackvma.c close (fd); fd 1694 maint/gnulib/lib/stackvma.c int fd; fd 1726 maint/gnulib/lib/stackvma.c fd = open (fname, O_RDONLY); fd 1727 maint/gnulib/lib/stackvma.c if (fd < 0) fd 1732 maint/gnulib/lib/stackvma.c if (fstat (fd, &statbuf) < 0) fd 1768 maint/gnulib/lib/stackvma.c size_t nread = read (fd, ptr, remaining); fd 1812 maint/gnulib/lib/stackvma.c close (fd); fd 1818 maint/gnulib/lib/stackvma.c close (fd); fd 62 maint/gnulib/lib/stdio-read.c int fd = fileno (stream); \ fd 63 maint/gnulib/lib/stdio-read.c if (fd >= 0) \ fd 65 maint/gnulib/lib/stdio-read.c HANDLE h = (HANDLE) _get_osfhandle (fd); \ fd 58 maint/gnulib/lib/stdio-write.c int fd = fileno (stream); \ fd 59 maint/gnulib/lib/stdio-write.c if (fd >= 0) \ fd 61 maint/gnulib/lib/stdio-write.c HANDLE h = (HANDLE) _get_osfhandle (fd); \ fd 87 maint/gnulib/lib/stdio-write.c int fd = fileno (stream); \ fd 88 maint/gnulib/lib/stdio-write.c if (fd >= 0 \ fd 89 maint/gnulib/lib/stdio-write.c && GetFileType ((HANDLE) _get_osfhandle (fd)) \ fd 201 maint/gnulib/lib/stdio.in.h _GL_FUNCDECL_RPL (dprintf, int, (int fd, const char *restrict format, ...) fd 204 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_RPL (dprintf, int, (int fd, const char *restrict format, ...)); fd 207 maint/gnulib/lib/stdio.in.h _GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *restrict format, ...) fd 211 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *restrict format, ...)); fd 275 maint/gnulib/lib/stdio.in.h (int fd, const char *mode) fd 277 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_RPL (fdopen, FILE *, (int fd, const char *mode)); fd 283 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_MDA (fdopen, FILE *, (int fd, const char *mode)); fd 288 maint/gnulib/lib/stdio.in.h (int fd, const char *mode) fd 291 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode)); fd 298 maint/gnulib/lib/stdio.in.h (int fd, const char *mode) fd 315 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_MDA (fdopen, FILE *, (int fd, const char *mode)); fd 317 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode)); fd 1485 maint/gnulib/lib/stdio.in.h (int fd, const char *restrict format, va_list args) fd 1489 maint/gnulib/lib/stdio.in.h (int fd, const char *restrict format, va_list args)); fd 1493 maint/gnulib/lib/stdio.in.h (int fd, const char *restrict format, va_list args) fd 1500 maint/gnulib/lib/stdio.in.h (int fd, const char *restrict format, va_list args)); fd 460 maint/gnulib/lib/stdlib.in.h _GL_FUNCDECL_SYS (grantpt, int, (int fd)); fd 462 maint/gnulib/lib/stdlib.in.h _GL_CXXALIAS_SYS (grantpt, int, (int fd)); fd 745 maint/gnulib/lib/stdlib.in.h _GL_FUNCDECL_RPL (ptsname, char *, (int fd)); fd 746 maint/gnulib/lib/stdlib.in.h _GL_CXXALIAS_RPL (ptsname, char *, (int fd)); fd 749 maint/gnulib/lib/stdlib.in.h _GL_FUNCDECL_SYS (ptsname, char *, (int fd)); fd 751 maint/gnulib/lib/stdlib.in.h _GL_CXXALIAS_SYS (ptsname, char *, (int fd)); fd 771 maint/gnulib/lib/stdlib.in.h _GL_FUNCDECL_RPL (ptsname_r, int, (int fd, char *buf, size_t len)); fd 772 maint/gnulib/lib/stdlib.in.h _GL_CXXALIAS_RPL (ptsname_r, int, (int fd, char *buf, size_t len)); fd 775 maint/gnulib/lib/stdlib.in.h _GL_FUNCDECL_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); fd 777 maint/gnulib/lib/stdlib.in.h _GL_CXXALIAS_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); fd 1488 maint/gnulib/lib/stdlib.in.h _GL_FUNCDECL_SYS (unlockpt, int, (int fd)); fd 1490 maint/gnulib/lib/stdlib.in.h _GL_CXXALIAS_SYS (unlockpt, int, (int fd)); fd 39 maint/gnulib/lib/stdopen.c int fd; fd 40 maint/gnulib/lib/stdopen.c for (fd = STDIN_FILENO; fd <= STDERR_FILENO; fd++) fd 42 maint/gnulib/lib/stdopen.c if (fcntl (fd, F_GETFD) < 0) fd 50 maint/gnulib/lib/stdopen.c int mode = fd == STDIN_FILENO ? O_WRONLY : O_RDONLY; fd 51 maint/gnulib/lib/stdopen.c int full_fd = fd == STDIN_FILENO ? open ("/dev/full", mode) : -1; fd 68 maint/gnulib/lib/supersede.c int fd = gen_register_open_temp (temp_filename, 0, flags, mode); fd 69 maint/gnulib/lib/supersede.c if (fd < 0) fd 74 maint/gnulib/lib/supersede.c return fd; fd 82 maint/gnulib/lib/supersede.c int fd; fd 106 maint/gnulib/lib/supersede.c && ((fd = open (filename, flags | extra_flags, mode)) >= 0 fd 109 maint/gnulib/lib/supersede.c if (fd >= 0) fd 122 maint/gnulib/lib/supersede.c fd = -1; fd 125 maint/gnulib/lib/supersede.c fd = create_temp_file (canon_filename, flags, mode, action); fd 126 maint/gnulib/lib/supersede.c if (fd < 0) fd 133 maint/gnulib/lib/supersede.c fd = open (filename, flags | O_CREAT | O_EXCL, mode); fd 134 maint/gnulib/lib/supersede.c if (fd >= 0) fd 147 maint/gnulib/lib/supersede.c fd = -1; fd 150 maint/gnulib/lib/supersede.c fd = open (canon_filename, flags | O_CREAT | O_EXCL, mode); fd 151 maint/gnulib/lib/supersede.c if (fd >= 0) fd 167 maint/gnulib/lib/supersede.c fd = create_temp_file (canon_filename, flags, mode, fd 169 maint/gnulib/lib/supersede.c if (fd < 0) fd 176 maint/gnulib/lib/supersede.c fd = open (canon_filename, flags | extra_flags, mode); fd 178 maint/gnulib/lib/supersede.c if (fd >= 0) fd 193 maint/gnulib/lib/supersede.c fd = open (filename, flags, mode); fd 194 maint/gnulib/lib/supersede.c if (fd >= 0) fd 212 maint/gnulib/lib/supersede.c fd = open (filename, flags | extra_flags, mode); fd 213 maint/gnulib/lib/supersede.c if (fd >= 0) fd 228 maint/gnulib/lib/supersede.c fd = -1; fd 231 maint/gnulib/lib/supersede.c fd = create_temp_file (canon_filename, flags, mode, action); fd 232 maint/gnulib/lib/supersede.c if (fd < 0) fd 240 maint/gnulib/lib/supersede.c fd = open (filename, flags | O_CREAT, mode); fd 245 maint/gnulib/lib/supersede.c return fd; fd 377 maint/gnulib/lib/supersede.c close_supersede (int fd, const struct supersede_final_action *action) fd 379 maint/gnulib/lib/supersede.c if (fd < 0) fd 383 maint/gnulib/lib/supersede.c return fd; fd 388 maint/gnulib/lib/supersede.c ret = close_temp (fd); fd 390 maint/gnulib/lib/supersede.c ret = close (fd); fd 442 maint/gnulib/lib/supersede.c int fd = open_supersede (filename, open_direction | open_flags, open_mode, fd 445 maint/gnulib/lib/supersede.c if (fd < 0) fd 448 maint/gnulib/lib/supersede.c FILE *stream = fdopen (fd, mode); fd 452 maint/gnulib/lib/supersede.c close (fd); fd 102 maint/gnulib/lib/supersede.h extern int close_supersede (int fd, fd 36 maint/gnulib/lib/symlinkat.c rpl_symlinkat (char const *contents, int fd, char const *name) fd 42 maint/gnulib/lib/symlinkat.c if (fstatat (fd, name, &st, AT_SYMLINK_NOFOLLOW) == 0 fd 47 maint/gnulib/lib/symlinkat.c return symlinkat (contents, fd, name); fd 55 maint/gnulib/lib/symlinkat.c symlinkat (_GL_UNUSED char const *path1, _GL_UNUSED int fd, fd 77 maint/gnulib/lib/symlinkat.c symlinkat_reversed (int fd, char const *file, char const *contents); fd 96 maint/gnulib/lib/symlinkat.c symlinkat (char const *contents, int fd, char const *file) fd 98 maint/gnulib/lib/symlinkat.c return symlinkat_reversed (fd, file, contents); fd 51 maint/gnulib/lib/sys_file.in.h extern int flock (int fd, int operation); fd 54 maint/gnulib/lib/sys_ioctl.in.h (int fd, int request, ... /* {void *,char *} arg */)); fd 56 maint/gnulib/lib/sys_ioctl.in.h (int fd, int request, ... /* {void *,char *} arg */)); fd 60 maint/gnulib/lib/sys_ioctl.in.h (int fd, int request, ... /* {void *,char *} arg */)); fd 63 maint/gnulib/lib/sys_ioctl.in.h (int fd, int request, ... /* {void *,char *} arg */)); fd 160 maint/gnulib/lib/sys_select.in.h rpl_fd_isset (SOCKET fd, fd_set * set) fd 167 maint/gnulib/lib/sys_select.in.h if (set->fd_array[i] == fd) fd 177 maint/gnulib/lib/sys_select.in.h # define FD_ISSET(fd, set) rpl_fd_isset(fd, set) fd 231 maint/gnulib/lib/sys_socket.in.h rpl_fd_isset (SOCKET fd, fd_set * set) fd 238 maint/gnulib/lib/sys_socket.in.h if (set->fd_array[i] == fd) fd 248 maint/gnulib/lib/sys_socket.in.h # define FD_ISSET(fd, set) rpl_fd_isset(fd, set) fd 314 maint/gnulib/lib/sys_socket.in.h (int fd, const struct sockaddr *addr, socklen_t addrlen) fd 317 maint/gnulib/lib/sys_socket.in.h (int fd, const struct sockaddr *addr, socklen_t addrlen)); fd 322 maint/gnulib/lib/sys_socket.in.h (int fd, fd 344 maint/gnulib/lib/sys_socket.in.h (int fd, fd 348 maint/gnulib/lib/sys_socket.in.h (int fd, fd 355 maint/gnulib/lib/sys_socket.in.h (int fd, fd 378 maint/gnulib/lib/sys_socket.in.h (int fd, const struct sockaddr *addr, socklen_t addrlen) fd 381 maint/gnulib/lib/sys_socket.in.h (int fd, const struct sockaddr *addr, socklen_t addrlen)); fd 386 maint/gnulib/lib/sys_socket.in.h (int fd, fd 408 maint/gnulib/lib/sys_socket.in.h (int fd, struct sockaddr *restrict addr, fd 412 maint/gnulib/lib/sys_socket.in.h (int fd, struct sockaddr *restrict addr, fd 418 maint/gnulib/lib/sys_socket.in.h (int fd, struct sockaddr *restrict addr, fd 440 maint/gnulib/lib/sys_socket.in.h (int fd, struct sockaddr *restrict addr, fd 444 maint/gnulib/lib/sys_socket.in.h (int fd, struct sockaddr *restrict addr, fd 450 maint/gnulib/lib/sys_socket.in.h (int fd, struct sockaddr *restrict addr, fd 472 maint/gnulib/lib/sys_socket.in.h (int fd, int level, int optname, fd 476 maint/gnulib/lib/sys_socket.in.h (int fd, int level, int optname, fd 482 maint/gnulib/lib/sys_socket.in.h (int fd, int level, int optname, fd 503 maint/gnulib/lib/sys_socket.in.h _GL_FUNCDECL_RPL (listen, int, (int fd, int backlog)); fd 504 maint/gnulib/lib/sys_socket.in.h _GL_CXXALIAS_RPL (listen, int, (int fd, int backlog)); fd 506 maint/gnulib/lib/sys_socket.in.h _GL_CXXALIAS_SYS (listen, int, (int fd, int backlog)); fd 526 maint/gnulib/lib/sys_socket.in.h _GL_FUNCDECL_RPL (recv, ssize_t, (int fd, void *buf, size_t len, int flags) fd 528 maint/gnulib/lib/sys_socket.in.h _GL_CXXALIAS_RPL (recv, ssize_t, (int fd, void *buf, size_t len, int flags)); fd 533 maint/gnulib/lib/sys_socket.in.h _GL_CXXALIAS_SYS_CAST (recv, ssize_t, (int fd, void *buf, size_t len, int flags)); fd 554 maint/gnulib/lib/sys_socket.in.h (int fd, const void *buf, size_t len, int flags) fd 557 maint/gnulib/lib/sys_socket.in.h (int fd, const void *buf, size_t len, int flags)); fd 563 maint/gnulib/lib/sys_socket.in.h (int fd, const void *buf, size_t len, int flags)); fd 584 maint/gnulib/lib/sys_socket.in.h (int fd, void *restrict buf, size_t len, int flags, fd 589 maint/gnulib/lib/sys_socket.in.h (int fd, void *restrict buf, size_t len, int flags, fd 596 maint/gnulib/lib/sys_socket.in.h (int fd, void *restrict buf, size_t len, int flags, fd 619 maint/gnulib/lib/sys_socket.in.h (int fd, const void *buf, size_t len, int flags, fd 623 maint/gnulib/lib/sys_socket.in.h (int fd, const void *buf, size_t len, int flags, fd 629 maint/gnulib/lib/sys_socket.in.h (int fd, const void *buf, size_t len, int flags, fd 650 maint/gnulib/lib/sys_socket.in.h _GL_FUNCDECL_RPL (setsockopt, int, (int fd, int level, int optname, fd 653 maint/gnulib/lib/sys_socket.in.h _GL_CXXALIAS_RPL (setsockopt, int, (int fd, int level, int optname, fd 659 maint/gnulib/lib/sys_socket.in.h (int fd, int level, int optname, fd 680 maint/gnulib/lib/sys_socket.in.h _GL_FUNCDECL_RPL (shutdown, int, (int fd, int how)); fd 681 maint/gnulib/lib/sys_socket.in.h _GL_CXXALIAS_RPL (shutdown, int, (int fd, int how)); fd 683 maint/gnulib/lib/sys_socket.in.h _GL_CXXALIAS_SYS (shutdown, int, (int fd, int how)); fd 419 maint/gnulib/lib/sys_stat.in.h (int fd, char const *file, mode_t mode, int flag) fd 422 maint/gnulib/lib/sys_stat.in.h (int fd, char const *file, mode_t mode, int flag)); fd 426 maint/gnulib/lib/sys_stat.in.h (int fd, char const *file, mode_t mode, int flag) fd 430 maint/gnulib/lib/sys_stat.in.h (int fd, char const *file, mode_t mode, int flag)); fd 448 maint/gnulib/lib/sys_stat.in.h _GL_FUNCDECL_RPL (fstat, int, (int fd, struct stat *buf) _GL_ARG_NONNULL ((2))); fd 449 maint/gnulib/lib/sys_stat.in.h _GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf)); fd 451 maint/gnulib/lib/sys_stat.in.h _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf)); fd 478 maint/gnulib/lib/sys_stat.in.h (int fd, char const *restrict name, struct stat *restrict st, fd 482 maint/gnulib/lib/sys_stat.in.h (int fd, char const *restrict name, struct stat *restrict st, fd 487 maint/gnulib/lib/sys_stat.in.h (int fd, char const *restrict name, struct stat *restrict st, fd 492 maint/gnulib/lib/sys_stat.in.h (int fd, char const *restrict name, struct stat *restrict st, fd 518 maint/gnulib/lib/sys_stat.in.h _GL_FUNCDECL_RPL (futimens, int, (int fd, struct timespec const times[2])); fd 519 maint/gnulib/lib/sys_stat.in.h _GL_CXXALIAS_RPL (futimens, int, (int fd, struct timespec const times[2])); fd 522 maint/gnulib/lib/sys_stat.in.h _GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2])); fd 524 maint/gnulib/lib/sys_stat.in.h _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); fd 675 maint/gnulib/lib/sys_stat.in.h _GL_FUNCDECL_SYS (mkdirat, int, (int fd, char const *file, mode_t mode) fd 678 maint/gnulib/lib/sys_stat.in.h _GL_CXXALIAS_SYS (mkdirat, int, (int fd, char const *file, mode_t mode)); fd 721 maint/gnulib/lib/sys_stat.in.h _GL_FUNCDECL_RPL (mkfifoat, int, (int fd, char const *file, mode_t mode) fd 723 maint/gnulib/lib/sys_stat.in.h _GL_CXXALIAS_RPL (mkfifoat, int, (int fd, char const *file, mode_t mode)); fd 726 maint/gnulib/lib/sys_stat.in.h _GL_FUNCDECL_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode) fd 729 maint/gnulib/lib/sys_stat.in.h _GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)); fd 775 maint/gnulib/lib/sys_stat.in.h (int fd, char const *file, mode_t mode, dev_t dev) fd 778 maint/gnulib/lib/sys_stat.in.h (int fd, char const *file, mode_t mode, dev_t dev)); fd 782 maint/gnulib/lib/sys_stat.in.h (int fd, char const *file, mode_t mode, dev_t dev) fd 786 maint/gnulib/lib/sys_stat.in.h (int fd, char const *file, mode_t mode, dev_t dev)); fd 900 maint/gnulib/lib/sys_stat.in.h _GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, fd 903 maint/gnulib/lib/sys_stat.in.h _GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, fd 907 maint/gnulib/lib/sys_stat.in.h _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, fd 911 maint/gnulib/lib/sys_stat.in.h _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, fd 28 maint/gnulib/lib/tcgetsid.c tcgetsid (int fd) fd 33 maint/gnulib/lib/tcgetsid.c if (ioctl (fd, TIOCGSID, &sid) < 0) fd 244 maint/gnulib/lib/tempname.c int fd = -1; fd 317 maint/gnulib/lib/tempname.c fd = tryfunc (tmpl, args); fd 318 maint/gnulib/lib/tempname.c if (fd >= 0) fd 321 maint/gnulib/lib/tempname.c return fd; fd 63 maint/gnulib/lib/term-style-control.c nonintr_tcgetattr (int fd, struct termios *tcp) fd 68 maint/gnulib/lib/term-style-control.c retval = tcgetattr (fd, tcp); fd 75 maint/gnulib/lib/term-style-control.c nonintr_tcsetattr (int fd, int flush_mode, const struct termios *tcp) fd 80 maint/gnulib/lib/term-style-control.c retval = tcsetattr (fd, flush_mode, tcp); fd 357 maint/gnulib/lib/term-style-control.c int fd = term_fd; fd 358 maint/gnulib/lib/term-style-control.c if (fd < 0) fd 365 maint/gnulib/lib/term-style-control.c pid_t p = tcgetpgrp (fd); fd 895 maint/gnulib/lib/term-style-control.c active_fd = control_data->fd; fd 953 maint/gnulib/lib/term-style-control.c int fd, ttyctl_t tty_control) fd 958 maint/gnulib/lib/term-style-control.c control_data->fd = fd; fd 971 maint/gnulib/lib/term-style-control.c if (fd == STDERR_FILENO fd 972 maint/gnulib/lib/term-style-control.c || (fstat (fd, &statbuf1) >= 0 fd 987 maint/gnulib/lib/term-style-control.c term_fd = fd; fd 52 maint/gnulib/lib/term-style-control.h int volatile fd; fd 146 maint/gnulib/lib/term-style-control.h int fd, ttyctl_t tty_control); fd 59 maint/gnulib/lib/termios.in.h _GL_FUNCDECL_SYS (tcgetsid, pid_t, (int fd)); fd 61 maint/gnulib/lib/termios.in.h _GL_CXXALIAS_SYS (tcgetsid, pid_t, (int fd)); fd 108 maint/gnulib/lib/textstyle.in.h int fd = fileno (stream); fd 109 maint/gnulib/lib/textstyle.in.h if (fd >= 0) fd 112 maint/gnulib/lib/textstyle.in.h fsync (fd); fd 119 maint/gnulib/lib/textstyle.in.h retval = tcdrain (fd); fd 254 maint/gnulib/lib/textstyle.in.h fd_ostream_create (int fd, _GL_ATTRIBUTE_MAYBE_UNUSED const char *filename, fd 257 maint/gnulib/lib/textstyle.in.h if (fd == 1) fd 259 maint/gnulib/lib/textstyle.in.h else if (fd == 2) fd 262 maint/gnulib/lib/textstyle.in.h return fdopen (fd, "w"); fd 402 maint/gnulib/lib/textstyle.in.h term_ostream_create (int fd, const char *filename, fd 405 maint/gnulib/lib/textstyle.in.h return fd_ostream_create (fd, filename, true); fd 423 maint/gnulib/lib/textstyle.in.h term_styled_ostream_create (int fd, const char *filename, fd 427 maint/gnulib/lib/textstyle.in.h return fd_ostream_create (fd, filename, true); fd 479 maint/gnulib/lib/textstyle.in.h styled_ostream_create (int fd, const char *filename, fd 483 maint/gnulib/lib/textstyle.in.h return fd_ostream_create (fd, filename, true); fd 41 maint/gnulib/lib/tmpfile-safer.c int fd = fileno (fp); fd 43 maint/gnulib/lib/tmpfile-safer.c if (0 <= fd && fd <= STDERR_FILENO) fd 45 maint/gnulib/lib/tmpfile-safer.c int f = dup_safer (fd); fd 109 maint/gnulib/lib/tmpfile.c int fd; fd 116 maint/gnulib/lib/tmpfile.c fd = -1; fd 120 maint/gnulib/lib/tmpfile.c fd = _open (xtemplate, fd 125 maint/gnulib/lib/tmpfile.c while (fd < 0 && errno == EEXIST); fd 127 maint/gnulib/lib/tmpfile.c if (fd >= 0) fd 129 maint/gnulib/lib/tmpfile.c FILE *fp = _fdopen (fd, "w+b"); fd 136 maint/gnulib/lib/tmpfile.c _close (fd); fd 160 maint/gnulib/lib/tmpfile.c int fd; fd 169 maint/gnulib/lib/tmpfile.c fd = gen_tempname (buf, 0, 0, GT_FILE); fd 170 maint/gnulib/lib/tmpfile.c if (fd < 0) fd 177 maint/gnulib/lib/tmpfile.c if ((fp = fdopen (fd, "w+b")) == NULL) fd 180 maint/gnulib/lib/tmpfile.c close (fd); fd 60 maint/gnulib/lib/truncate.c int fd; fd 64 maint/gnulib/lib/truncate.c fd = open (filename, O_WRONLY | O_TRUNC | O_CLOEXEC); fd 65 maint/gnulib/lib/truncate.c if (fd < 0) fd 70 maint/gnulib/lib/truncate.c fd = open (filename, O_WRONLY | O_CLOEXEC); fd 71 maint/gnulib/lib/truncate.c if (fd < 0) fd 73 maint/gnulib/lib/truncate.c if (ftruncate (fd, length) < 0) fd 76 maint/gnulib/lib/truncate.c close (fd); fd 81 maint/gnulib/lib/truncate.c close (fd); fd 32 maint/gnulib/lib/ttyname_r.c ttyname_r (int fd, char *buf, size_t buflen) fd 37 maint/gnulib/lib/ttyname_r.c if (!isatty (fd)) fd 47 maint/gnulib/lib/ttyname_r.c sprintf (procfile, "/proc/self/fd/%d", fd); fd 70 maint/gnulib/lib/ttyname_r.c ? ttyname_r (fd, largerbuf, sizeof (largerbuf)) fd 71 maint/gnulib/lib/ttyname_r.c : ttyname_r (fd, buf, buflen <= INT_MAX ? buflen : INT_MAX)); fd 84 maint/gnulib/lib/ttyname_r.c ? ttyname_r (fd, largerbuf, sizeof (largerbuf)) fd 85 maint/gnulib/lib/ttyname_r.c : ttyname_r (fd, buf, buflen <= INT_MAX ? buflen : INT_MAX)); fd 102 maint/gnulib/lib/ttyname_r.c name = ttyname (fd); fd 380 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (close, int, (int fd)); fd 381 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (close, int, (int fd)); fd 387 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (close, int, (int fd)); fd 389 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (close, int, (int fd)); fd 409 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (close, int, (int fd)); fd 411 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (close, int, (int fd)); fd 901 maint/gnulib/lib/unistd.in.h (int fd, char const *name, int mode, int flag) fd 904 maint/gnulib/lib/unistd.in.h (int fd, char const *name, int mode, int flag)); fd 908 maint/gnulib/lib/unistd.in.h (int fd, char const *file, int mode, int flag) fd 912 maint/gnulib/lib/unistd.in.h (int fd, char const *file, int mode, int flag)); fd 934 maint/gnulib/lib/unistd.in.h _GL_EXTERN_C int _gl_register_fd (int fd, const char *filename) fd 936 maint/gnulib/lib/unistd.in.h _GL_EXTERN_C void _gl_unregister_fd (int fd); fd 938 maint/gnulib/lib/unistd.in.h _GL_EXTERN_C const char *_gl_directory_name (int fd); fd 962 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (fchownat, int, (int fd, char const *file, fd 965 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (fchownat, int, (int fd, char const *file, fd 969 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (fchownat, int, (int fd, char const *file, fd 973 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (fchownat, int, (int fd, char const *file, fd 992 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (fdatasync, int, (int fd)); fd 994 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (fdatasync, int, (int fd)); fd 1011 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (fsync, int, (int fd)); fd 1013 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (fsync, int, (int fd)); fd 1034 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (ftruncate, int, (int fd, off_t length)); fd 1035 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (ftruncate, int, (int fd, off_t length)); fd 1038 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length)); fd 1040 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length)); fd 1525 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (isatty, int, (int fd)); fd 1526 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (isatty, int, (int fd)); fd 1532 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (isatty, int, (int fd)); fd 1534 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (isatty, int, (int fd)); fd 1552 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (isatty, int, (int fd)); fd 1554 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (isatty, int, (int fd)); fd 1666 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); fd 1667 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); fd 1673 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (lseek, off_t, (int fd, off_t offset, int whence)); fd 1675 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); fd 1693 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (lseek, long, (int fd, long offset, int whence)); fd 1695 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); fd 1706 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (pipe, int, (int fd[2]) _GL_ARG_NONNULL ((1))); fd 1708 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (pipe, int, (int fd[2])); fd 1732 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); fd 1733 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (pipe2, int, (int fd[2], int flags)); fd 1735 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); fd 1736 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags)); fd 1760 maint/gnulib/lib/unistd.in.h (int fd, void *buf, size_t bufsize, off_t offset) fd 1763 maint/gnulib/lib/unistd.in.h (int fd, void *buf, size_t bufsize, off_t offset)); fd 1767 maint/gnulib/lib/unistd.in.h (int fd, void *buf, size_t bufsize, off_t offset) fd 1771 maint/gnulib/lib/unistd.in.h (int fd, void *buf, size_t bufsize, off_t offset)); fd 1795 maint/gnulib/lib/unistd.in.h (int fd, const void *buf, size_t bufsize, off_t offset) fd 1798 maint/gnulib/lib/unistd.in.h (int fd, const void *buf, size_t bufsize, off_t offset)); fd 1802 maint/gnulib/lib/unistd.in.h (int fd, const void *buf, size_t bufsize, off_t offset) fd 1806 maint/gnulib/lib/unistd.in.h (int fd, const void *buf, size_t bufsize, off_t offset)); fd 1827 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count) fd 1829 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count)); fd 1835 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, size_t count)); fd 1837 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (read, ssize_t, (int fd, void *buf, size_t count)); fd 1850 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (read, int, (int fd, void *buf, unsigned int count)); fd 1852 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, unsigned int count)); fd 1855 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (read, ssize_t, (int fd, void *buf, size_t count)); fd 1905 maint/gnulib/lib/unistd.in.h (int fd, char const *restrict file, fd 1909 maint/gnulib/lib/unistd.in.h (int fd, char const *restrict file, fd 1914 maint/gnulib/lib/unistd.in.h (int fd, char const *restrict file, fd 1919 maint/gnulib/lib/unistd.in.h (int fd, char const *restrict file, fd 2086 maint/gnulib/lib/unistd.in.h (char const *contents, int fd, char const *file) fd 2089 maint/gnulib/lib/unistd.in.h (char const *contents, int fd, char const *file)); fd 2093 maint/gnulib/lib/unistd.in.h (char const *contents, int fd, char const *file) fd 2097 maint/gnulib/lib/unistd.in.h (char const *contents, int fd, char const *file)); fd 2148 maint/gnulib/lib/unistd.in.h (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); fd 2150 maint/gnulib/lib/unistd.in.h (int fd, char *buf, size_t buflen)); fd 2154 maint/gnulib/lib/unistd.in.h (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); fd 2157 maint/gnulib/lib/unistd.in.h (int fd, char *buf, size_t buflen)); fd 2216 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (unlinkat, int, (int fd, char const *file, int flag) fd 2218 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (unlinkat, int, (int fd, char const *file, int flag)); fd 2221 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (unlinkat, int, (int fd, char const *file, int flag) fd 2224 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (unlinkat, int, (int fd, char const *file, int flag)); fd 2275 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (write, ssize_t, (int fd, const void *buf, size_t count) fd 2277 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count)); fd 2283 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (write, ssize_t, (int fd, const void *buf, size_t count)); fd 2285 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count)); fd 2298 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (write, int, (int fd, const void *buf, unsigned int count)); fd 2300 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (write, ssize_t, (int fd, const void *buf, unsigned int count)); fd 2303 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count)); fd 46 maint/gnulib/lib/unlinkat.c rpl_unlinkat (int fd, char const *name, int flag) fd 52 maint/gnulib/lib/unlinkat.c return unlinkat (fd, name, flag); fd 61 maint/gnulib/lib/unlinkat.c result = lstatat (fd, name, &st); fd 74 maint/gnulib/lib/unlinkat.c if (len && (lstatat (fd, short_name, &st) || S_ISLNK (st.st_mode))) fd 94 maint/gnulib/lib/unlinkat.c result = unlinkat (fd, name, flag); fd 26 maint/gnulib/lib/unlockpt.c unlockpt (int fd) fd 33 maint/gnulib/lib/unlockpt.c char *name = ptsname (fd); fd 40 maint/gnulib/lib/unlockpt.c if (fcntl (fd, F_GETFD) < 0) fd 173 maint/gnulib/lib/utimens.c fdutimens (int fd, char const *file, struct timespec const timespec[2]) fd 192 maint/gnulib/lib/utimens.c if (fd < 0 && !file) fd 209 maint/gnulib/lib/utimens.c if (fd < 0) fd 212 maint/gnulib/lib/utimens.c fsync (fd); fd 239 maint/gnulib/lib/utimens.c if (fd < 0 ? stat (file, &st) : fstat (fd, &st)) fd 250 maint/gnulib/lib/utimens.c if (fd < 0) fd 286 maint/gnulib/lib/utimens.c if (0 <= fd) fd 288 maint/gnulib/lib/utimens.c result = futimens (fd, ts); fd 310 maint/gnulib/lib/utimens.c if (0 <= fd) fd 317 maint/gnulib/lib/utimens.c handle = (HANDLE) _get_osfhandle (fd); fd 394 maint/gnulib/lib/utimens.c if (adjustment_needed || (REPLACE_FUNC_STAT_FILE && fd < 0)) fd 397 maint/gnulib/lib/utimens.c && (fd < 0 ? stat (file, &st) : fstat (fd, &st))) fd 418 maint/gnulib/lib/utimens.c if (fd < 0) fd 440 maint/gnulib/lib/utimens.c # define futimes(fd, t) futimesat (fd, NULL, t) fd 442 maint/gnulib/lib/utimens.c if (futimes (fd, t) == 0) fd 454 maint/gnulib/lib/utimens.c if ((abig | mbig) && fstat (fd, &st) == 0) fd 476 maint/gnulib/lib/utimens.c futimes (fd, tt); fd 37 maint/gnulib/lib/utimens.h int fdutimensat (int fd, int dir, char const *name, struct timespec const [2], fd 38 maint/gnulib/lib/utimensat.c rpl_utimensat (int fd, char const *file, struct timespec const times[2], fd 46 maint/gnulib/lib/utimensat.c if (fstatat (fd, file, &st, flag & AT_SYMLINK_NOFOLLOW) < 0) fd 55 maint/gnulib/lib/utimensat.c return utimensat (fd, file, times, flag); fd 76 maint/gnulib/lib/utimensat.c rpl_utimensat (int fd, char const *file, struct timespec const times[2], fd 106 maint/gnulib/lib/utimensat.c if (fstatat (fd, file, &st, flag)) fd 155 maint/gnulib/lib/utimensat.c if (fstatat (fd, file, &statbuf, 0) < 0) fd 164 maint/gnulib/lib/utimensat.c result = utimensat (fd, file, times, flag); fd 184 maint/gnulib/lib/utimensat.c return local_utimensat (fd, file, times, flag); fd 33 maint/gnulib/lib/vdprintf.c vdprintf (int fd, const char *format, va_list args) fd 46 maint/gnulib/lib/vdprintf.c if (full_write (fd, output, len) < len) fd 173 maint/gnulib/lib/vma-iter.c int fd; fd 177 maint/gnulib/lib/vma-iter.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 178 maint/gnulib/lib/vma-iter.c if (fd < 0) fd 194 maint/gnulib/lib/vma-iter.c int n = read (fd, rof->buffer, size); fd 213 maint/gnulib/lib/vma-iter.c n = read (fd, rof->buffer + rof->filled, size - rof->filled); fd 225 maint/gnulib/lib/vma-iter.c close (fd); fd 231 maint/gnulib/lib/vma-iter.c close (fd); fd 258 maint/gnulib/lib/vma-iter.c close (fd); fd 267 maint/gnulib/lib/vma-iter.c if (lseek (fd, 0, SEEK_SET) < 0) fd 269 maint/gnulib/lib/vma-iter.c close (fd); fd 270 maint/gnulib/lib/vma-iter.c fd = open (filename, O_RDONLY | O_CLOEXEC); fd 271 maint/gnulib/lib/vma-iter.c if (fd < 0) fd 276 maint/gnulib/lib/vma-iter.c close (fd); fd 897 maint/gnulib/lib/vma-iter.c int fd; fd 927 maint/gnulib/lib/vma-iter.c fd = open (fname, O_RDONLY | O_CLOEXEC); fd 928 maint/gnulib/lib/vma-iter.c if (fd < 0) fd 931 maint/gnulib/lib/vma-iter.c if (ioctl (fd, PIOCNMAP, &nmaps) < 0) fd 957 maint/gnulib/lib/vma-iter.c if (ioctl (fd, PIOCMAP, maps) < 0) fd 995 maint/gnulib/lib/vma-iter.c close (fd); fd 1001 maint/gnulib/lib/vma-iter.c close (fd); fd 1022 maint/gnulib/lib/vma-iter.c int fd; fd 1052 maint/gnulib/lib/vma-iter.c fd = open (fname, O_RDONLY | O_CLOEXEC); fd 1053 maint/gnulib/lib/vma-iter.c if (fd < 0) fd 1056 maint/gnulib/lib/vma-iter.c if (ioctl (fd, PIOCNMAP, &nmaps) < 0) fd 1082 maint/gnulib/lib/vma-iter.c if (ioctl (fd, PIOCMAP, maps) < 0) fd 1120 maint/gnulib/lib/vma-iter.c close (fd); fd 1126 maint/gnulib/lib/vma-iter.c close (fd); fd 1140 maint/gnulib/lib/vma-iter.c int fd; fd 1171 maint/gnulib/lib/vma-iter.c fd = open (fname, O_RDONLY | O_CLOEXEC); fd 1172 maint/gnulib/lib/vma-iter.c if (fd < 0) fd 1177 maint/gnulib/lib/vma-iter.c if (fstat (fd, &statbuf) < 0) fd 1213 maint/gnulib/lib/vma-iter.c size_t nread = read (fd, ptr, remaining); fd 1265 maint/gnulib/lib/vma-iter.c close (fd); fd 1271 maint/gnulib/lib/vma-iter.c close (fd); fd 35 maint/gnulib/lib/w32sock.h #define FD_TO_SOCKET(fd) ((SOCKET) _get_osfhandle ((fd))) fd 321 maint/gnulib/lib/windows-spawn.c unsigned int fd = fdmax - 1; fd 324 maint/gnulib/lib/windows-spawn.c HANDLE handle = (HANDLE) _get_osfhandle (fd); fd 363 maint/gnulib/lib/windows-spawn.c unsigned int fd; fd 364 maint/gnulib/lib/windows-spawn.c for (fd = 0; fd < handles_count; fd++) fd 366 maint/gnulib/lib/windows-spawn.c handles_array[fd] = INVALID_HANDLE_VALUE; fd 369 maint/gnulib/lib/windows-spawn.c HANDLE handle = (HANDLE) _get_osfhandle (fd); fd 383 maint/gnulib/lib/windows-spawn.c curr_process, &handles_array[fd], fd 387 maint/gnulib/lib/windows-spawn.c for (i = 0; i < fd; i++) fd 397 maint/gnulib/lib/windows-spawn.c handles_array[fd] = handle; fd 399 maint/gnulib/lib/windows-spawn.c flags_array[fd] = 0; fd 468 maint/gnulib/lib/windows-spawn.c unsigned int fd; fd 469 maint/gnulib/lib/windows-spawn.c for (fd = 0; fd < handles_count; fd++) fd 471 maint/gnulib/lib/windows-spawn.c handles_aligned[fd] = INVALID_HANDLE_VALUE; fd 472 maint/gnulib/lib/windows-spawn.c flags[fd] = 0; fd 474 maint/gnulib/lib/windows-spawn.c HANDLE handle = inh_handles->handles[fd]; fd 478 maint/gnulib/lib/windows-spawn.c && (fd >= 3 || inh_handles->flags[fd] != 0)) fd 488 maint/gnulib/lib/windows-spawn.c handles_aligned[fd] = handle; fd 493 maint/gnulib/lib/windows-spawn.c flags[fd] = 1 | inh_handles->flags[fd]; fd 497 maint/gnulib/lib/windows-spawn.c flags[fd] |= 64; fd 500 maint/gnulib/lib/windows-spawn.c flags[fd] |= 8; fd 54 maint/gnulib/lib/write.c write_nothrow (int fd, const void *buf, size_t count) fd 60 maint/gnulib/lib/write.c result = _write (fd, buf, count); fd 76 maint/gnulib/lib/write.c rpl_write (int fd, const void *buf, size_t count) fd 80 maint/gnulib/lib/write.c ssize_t ret = write_nothrow (fd, buf, count); fd 87 maint/gnulib/lib/write.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 139 maint/gnulib/lib/write.c && GetFileType ((HANDLE) _get_osfhandle (fd)) fd 40 maint/gnulib/lib/xbinary-io.h xset_binary_mode (int fd, int mode) fd 42 maint/gnulib/lib/xbinary-io.h if (set_binary_mode (fd, mode) < 0) fd 27 maint/gnulib/lib/xreadlink.h extern char *xreadlinkat (int fd, char const *filename) fd 40 maint/gnulib/lib/xreadlinkat.c xreadlinkat (int fd, char const *filename) fd 42 maint/gnulib/lib/xreadlinkat.c char *result = areadlinkat (fd, filename); fd 44 maint/gnulib/tests/qemu.h int fd; fd 47 maint/gnulib/tests/qemu.h fd = open ("/proc/hardware", O_RDONLY); fd 48 maint/gnulib/tests/qemu.h if (fd >= 0) fd 50 maint/gnulib/tests/qemu.h int n = read (fd, buf, sizeof (buf) - 1); fd 51 maint/gnulib/tests/qemu.h close (fd); fd 61 maint/gnulib/tests/qemu.h fd = open ("/proc/cpuinfo", O_RDONLY); fd 62 maint/gnulib/tests/qemu.h if (fd >= 0) fd 64 maint/gnulib/tests/qemu.h int n = read (fd, buf, sizeof (buf) - 1); fd 65 maint/gnulib/tests/qemu.h close (fd); fd 37 maint/gnulib/tests/test-binary-io.c int fd = fd 39 maint/gnulib/tests/test-binary-io.c if (write (fd, "Hello\n", 6) < 0) fd 41 maint/gnulib/tests/test-binary-io.c close (fd); fd 62 maint/gnulib/tests/test-canonicalize-lgpl.c int fd; fd 65 maint/gnulib/tests/test-canonicalize-lgpl.c fd = creat (BASE "/tra", 0600); fd 66 maint/gnulib/tests/test-canonicalize-lgpl.c ASSERT (0 <= fd); fd 67 maint/gnulib/tests/test-canonicalize-lgpl.c ASSERT (close (fd) == 0); fd 53 maint/gnulib/tests/test-canonicalize.c int fd; fd 56 maint/gnulib/tests/test-canonicalize.c fd = creat (BASE "/tra", 0600); fd 57 maint/gnulib/tests/test-canonicalize.c ASSERT (0 <= fd); fd 58 maint/gnulib/tests/test-canonicalize.c ASSERT (close (fd) == 0); fd 44 maint/gnulib/tests/test-cloexec.c is_inheritable (int fd) fd 50 maint/gnulib/tests/test-cloexec.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 59 maint/gnulib/tests/test-cloexec.c int i = fcntl (fd, F_GETFD); fd 72 maint/gnulib/tests/test-cloexec.c is_mode (int fd, int mode) fd 74 maint/gnulib/tests/test-cloexec.c int value = set_binary_mode (fd, O_BINARY); fd 75 maint/gnulib/tests/test-cloexec.c set_binary_mode (fd, value); fd 83 maint/gnulib/tests/test-cloexec.c int fd = creat (file, 0600); fd 88 maint/gnulib/tests/test-cloexec.c ASSERT (STDERR_FILENO < fd); fd 89 maint/gnulib/tests/test-cloexec.c ASSERT (is_inheritable (fd)); fd 92 maint/gnulib/tests/test-cloexec.c ASSERT (set_cloexec_flag (fd, true) == 0); fd 94 maint/gnulib/tests/test-cloexec.c ASSERT (!is_inheritable (fd)); fd 96 maint/gnulib/tests/test-cloexec.c ASSERT (set_cloexec_flag (fd, false) == 0); fd 97 maint/gnulib/tests/test-cloexec.c ASSERT (is_inheritable (fd)); fd 100 maint/gnulib/tests/test-cloexec.c fd2 = dup_cloexec (fd); fd 101 maint/gnulib/tests/test-cloexec.c ASSERT (fd < fd2); fd 103 maint/gnulib/tests/test-cloexec.c ASSERT (close (fd) == 0); fd 104 maint/gnulib/tests/test-cloexec.c ASSERT (dup_cloexec (fd2) == fd); fd 105 maint/gnulib/tests/test-cloexec.c ASSERT (!is_inheritable (fd)); fd 110 maint/gnulib/tests/test-cloexec.c set_binary_mode (fd, O_BINARY); fd 111 maint/gnulib/tests/test-cloexec.c ASSERT (is_mode (fd, O_BINARY)); fd 112 maint/gnulib/tests/test-cloexec.c fd2 = dup_cloexec (fd); fd 113 maint/gnulib/tests/test-cloexec.c ASSERT (fd < fd2); fd 116 maint/gnulib/tests/test-cloexec.c set_binary_mode (fd, O_TEXT); fd 117 maint/gnulib/tests/test-cloexec.c ASSERT (is_mode (fd, O_TEXT)); fd 118 maint/gnulib/tests/test-cloexec.c fd2 = dup_cloexec (fd); fd 119 maint/gnulib/tests/test-cloexec.c ASSERT (fd < fd2); fd 144 maint/gnulib/tests/test-cloexec.c ASSERT (close (fd) == 0); fd 35 maint/gnulib/tests/test-creat.c int fd; fd 48 maint/gnulib/tests/test-creat.c fd = creat (BASE "file", 0600); fd 49 maint/gnulib/tests/test-creat.c ASSERT (0 <= fd); fd 50 maint/gnulib/tests/test-creat.c ASSERT (close (fd) == 0); fd 53 maint/gnulib/tests/test-creat.c fd = creat (BASE "e.exe", 0700); fd 54 maint/gnulib/tests/test-creat.c ASSERT (0 <= fd); fd 55 maint/gnulib/tests/test-creat.c ASSERT (close (fd) == 0); fd 76 maint/gnulib/tests/test-dirent-safer.c int fd = fcntl (dfd, F_DUPFD_CLOEXEC, STDERR_FILENO + 1); fd 77 maint/gnulib/tests/test-dirent-safer.c ASSERT (STDERR_FILENO < fd); fd 78 maint/gnulib/tests/test-dirent-safer.c dp = fdopendir (fd); fd 83 maint/gnulib/tests/test-dirent-safer.c ASSERT (close (fd) == -1); fd 61 maint/gnulib/tests/test-dup-safer.c is_open (int fd) fd 67 maint/gnulib/tests/test-dup-safer.c return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; fd 72 maint/gnulib/tests/test-dup-safer.c return 0 <= fcntl (fd, F_GETFL); fd 78 maint/gnulib/tests/test-dup-safer.c is_inheritable (int fd) fd 84 maint/gnulib/tests/test-dup-safer.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 93 maint/gnulib/tests/test-dup-safer.c int i = fcntl (fd, F_GETFD); fd 101 maint/gnulib/tests/test-dup-safer.c is_mode (int fd, int mode) fd 103 maint/gnulib/tests/test-dup-safer.c int value = set_binary_mode (fd, O_BINARY); fd 104 maint/gnulib/tests/test-dup-safer.c set_binary_mode (fd, value); fd 114 maint/gnulib/tests/test-dup-safer.c int fd; fd 123 maint/gnulib/tests/test-dup-safer.c fd = creat (witness, 0600); fd 124 maint/gnulib/tests/test-dup-safer.c ASSERT (STDERR_FILENO < fd); fd 140 maint/gnulib/tests/test-dup-safer.c close (fd + 1); fd 142 maint/gnulib/tests/test-dup-safer.c ASSERT (dup (fd + 1) == -1); fd 146 maint/gnulib/tests/test-dup-safer.c set_binary_mode (fd, O_BINARY); fd 147 maint/gnulib/tests/test-dup-safer.c ASSERT (dup (fd) == fd + 1); fd 148 maint/gnulib/tests/test-dup-safer.c ASSERT (is_open (fd + 1)); fd 149 maint/gnulib/tests/test-dup-safer.c ASSERT (is_inheritable (fd + 1)); fd 150 maint/gnulib/tests/test-dup-safer.c ASSERT (is_mode (fd + 1, O_BINARY)); fd 152 maint/gnulib/tests/test-dup-safer.c ASSERT (close (fd + 1) == 0); fd 153 maint/gnulib/tests/test-dup-safer.c set_binary_mode (fd, O_TEXT); fd 154 maint/gnulib/tests/test-dup-safer.c ASSERT (dup (fd) == fd + 1); fd 155 maint/gnulib/tests/test-dup-safer.c ASSERT (is_open (fd + 1)); fd 156 maint/gnulib/tests/test-dup-safer.c ASSERT (is_inheritable (fd + 1)); fd 157 maint/gnulib/tests/test-dup-safer.c ASSERT (is_mode (fd + 1, O_TEXT)); fd 160 maint/gnulib/tests/test-dup-safer.c ASSERT (close (fd + 1) == 0); fd 161 maint/gnulib/tests/test-dup-safer.c ASSERT (fd_safer_flag (dup_cloexec (fd), O_CLOEXEC) == fd + 1); fd 162 maint/gnulib/tests/test-dup-safer.c ASSERT (set_cloexec_flag (fd + 1, true) == 0); fd 163 maint/gnulib/tests/test-dup-safer.c ASSERT (is_open (fd + 1)); fd 164 maint/gnulib/tests/test-dup-safer.c ASSERT (!is_inheritable (fd + 1)); fd 165 maint/gnulib/tests/test-dup-safer.c ASSERT (close (fd) == 0); fd 169 maint/gnulib/tests/test-dup-safer.c ASSERT (dup (fd + 1) == fd); fd 170 maint/gnulib/tests/test-dup-safer.c ASSERT (is_open (fd)); fd 171 maint/gnulib/tests/test-dup-safer.c ASSERT (is_inheritable (fd)); fd 172 maint/gnulib/tests/test-dup-safer.c ASSERT (close (fd + 1) == 0); fd 176 maint/gnulib/tests/test-dup-safer.c ASSERT (close (fd) == 0); fd 55 maint/gnulib/tests/test-dup2.c is_open (int fd) fd 61 maint/gnulib/tests/test-dup2.c return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; fd 66 maint/gnulib/tests/test-dup2.c return 0 <= fcntl (fd, F_GETFL); fd 73 maint/gnulib/tests/test-dup2.c is_inheritable (int fd) fd 79 maint/gnulib/tests/test-dup2.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 88 maint/gnulib/tests/test-dup2.c int i = fcntl (fd, F_GETFD); fd 102 maint/gnulib/tests/test-dup2.c is_mode (int fd, int mode) fd 104 maint/gnulib/tests/test-dup2.c int value = set_binary_mode (fd, O_BINARY); fd 105 maint/gnulib/tests/test-dup2.c set_binary_mode (fd, value); fd 115 maint/gnulib/tests/test-dup2.c int fd = open (file, O_CREAT | O_TRUNC | O_RDWR, 0600); fd 118 maint/gnulib/tests/test-dup2.c ASSERT (STDERR_FILENO < fd); fd 119 maint/gnulib/tests/test-dup2.c ASSERT (is_open (fd)); fd 121 maint/gnulib/tests/test-dup2.c close (fd + 1); fd 122 maint/gnulib/tests/test-dup2.c close (fd + 2); fd 123 maint/gnulib/tests/test-dup2.c ASSERT (!is_open (fd + 1)); fd 124 maint/gnulib/tests/test-dup2.c ASSERT (!is_open (fd + 2)); fd 127 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, fd) == fd); fd 128 maint/gnulib/tests/test-dup2.c ASSERT (is_open (fd)); fd 132 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (-1, fd) == -1); fd 136 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (99, fd) == -1); fd 139 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (AT_FDCWD, fd) == -1); fd 141 maint/gnulib/tests/test-dup2.c ASSERT (is_open (fd)); fd 145 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, fd + 1) == -1); fd 147 maint/gnulib/tests/test-dup2.c ASSERT (!is_open (fd + 1)); fd 149 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, fd) == -1); fd 151 maint/gnulib/tests/test-dup2.c ASSERT (is_open (fd)); fd 155 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, -2) == -1); fd 159 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, 255) == 255); fd 160 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, 256) == 256); fd 164 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, bad_fd - 1) == bad_fd - 1); fd 167 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, bad_fd) == -1); fd 171 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, fd + 2) == fd + 2); fd 172 maint/gnulib/tests/test-dup2.c ASSERT (is_open (fd)); fd 173 maint/gnulib/tests/test-dup2.c ASSERT (!is_open (fd + 1)); fd 174 maint/gnulib/tests/test-dup2.c ASSERT (is_open (fd + 2)); fd 177 maint/gnulib/tests/test-dup2.c ASSERT (open ("/dev/null", O_WRONLY, 0600) == fd + 1); fd 178 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, fd) == fd); fd 179 maint/gnulib/tests/test-dup2.c ASSERT (close (fd + 1) == 0); fd 180 maint/gnulib/tests/test-dup2.c ASSERT (write (fd, "1", 1) == 1); fd 181 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 2, fd) == fd); fd 182 maint/gnulib/tests/test-dup2.c ASSERT (lseek (fd, 0, SEEK_END) == 0); fd 183 maint/gnulib/tests/test-dup2.c ASSERT (write (fd + 2, "2", 1) == 1); fd 184 maint/gnulib/tests/test-dup2.c ASSERT (lseek (fd, 0, SEEK_SET) == 0); fd 185 maint/gnulib/tests/test-dup2.c ASSERT (read (fd, buffer, 1) == 1); fd 190 maint/gnulib/tests/test-dup2.c ASSERT (close (fd + 2) == 0); fd 191 maint/gnulib/tests/test-dup2.c ASSERT (dup_cloexec (fd) == fd + 1); fd 192 maint/gnulib/tests/test-dup2.c ASSERT (!is_inheritable (fd + 1)); fd 193 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, fd + 1) == fd + 1); fd 194 maint/gnulib/tests/test-dup2.c ASSERT (!is_inheritable (fd + 1)); fd 195 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, fd + 2) == fd + 2); fd 196 maint/gnulib/tests/test-dup2.c ASSERT (!is_inheritable (fd + 1)); fd 197 maint/gnulib/tests/test-dup2.c ASSERT (is_inheritable (fd + 2)); fd 199 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, -1) == -1); fd 201 maint/gnulib/tests/test-dup2.c ASSERT (!is_inheritable (fd + 1)); fd 206 maint/gnulib/tests/test-dup2.c set_binary_mode (fd, O_BINARY); fd 207 maint/gnulib/tests/test-dup2.c ASSERT (is_mode (fd, O_BINARY)); fd 208 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, fd + 1) == fd + 1); fd 209 maint/gnulib/tests/test-dup2.c ASSERT (is_mode (fd + 1, O_BINARY)); fd 210 maint/gnulib/tests/test-dup2.c set_binary_mode (fd, O_TEXT); fd 211 maint/gnulib/tests/test-dup2.c ASSERT (is_mode (fd, O_TEXT)); fd 212 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, fd + 1) == fd + 1); fd 213 maint/gnulib/tests/test-dup2.c ASSERT (is_mode (fd + 1, O_TEXT)); fd 216 maint/gnulib/tests/test-dup2.c ASSERT (close (fd + 2) == 0); fd 217 maint/gnulib/tests/test-dup2.c ASSERT (close (fd + 1) == 0); fd 218 maint/gnulib/tests/test-dup2.c ASSERT (close (fd) == 0); fd 48 maint/gnulib/tests/test-dup3.c is_open (int fd) fd 54 maint/gnulib/tests/test-dup3.c return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; fd 59 maint/gnulib/tests/test-dup3.c return 0 <= fcntl (fd, F_GETFL); fd 65 maint/gnulib/tests/test-dup3.c is_cloexec (int fd) fd 68 maint/gnulib/tests/test-dup3.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 74 maint/gnulib/tests/test-dup3.c ASSERT ((flags = fcntl (fd, F_GETFD)) >= 0); fd 92 maint/gnulib/tests/test-dup3.c int fd = open (file, O_CREAT | O_TRUNC | O_RDWR, 0600); fd 103 maint/gnulib/tests/test-dup3.c ASSERT (STDERR_FILENO < fd); fd 104 maint/gnulib/tests/test-dup3.c ASSERT (is_open (fd)); fd 106 maint/gnulib/tests/test-dup3.c close (fd + 1); fd 107 maint/gnulib/tests/test-dup3.c close (fd + 2); fd 108 maint/gnulib/tests/test-dup3.c ASSERT (!is_open (fd + 1)); fd 109 maint/gnulib/tests/test-dup3.c ASSERT (!is_open (fd + 2)); fd 113 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd, fd, o_flags) == -1); fd 115 maint/gnulib/tests/test-dup3.c ASSERT (is_open (fd)); fd 119 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd + 1, fd + 2, o_flags) == -1); fd 121 maint/gnulib/tests/test-dup3.c ASSERT (!is_open (fd + 2)); fd 123 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd + 1, fd, o_flags) == -1); fd 125 maint/gnulib/tests/test-dup3.c ASSERT (is_open (fd)); fd 129 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd, -2, o_flags) == -1); fd 133 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd, 255, 0) == 255); fd 134 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd, 256, 0) == 256); fd 138 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd, bad_fd - 1, 0) == bad_fd - 1); fd 141 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd, bad_fd, o_flags) == -1); fd 145 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd, fd + 2, o_flags) == fd + 2); fd 146 maint/gnulib/tests/test-dup3.c ASSERT (is_open (fd)); fd 147 maint/gnulib/tests/test-dup3.c ASSERT (!is_open (fd + 1)); fd 148 maint/gnulib/tests/test-dup3.c ASSERT (is_open (fd + 2)); fd 150 maint/gnulib/tests/test-dup3.c ASSERT (is_cloexec (fd + 2)); fd 152 maint/gnulib/tests/test-dup3.c ASSERT (!is_cloexec (fd + 2)); fd 155 maint/gnulib/tests/test-dup3.c ASSERT (open ("/dev/null", O_WRONLY, 0600) == fd + 1); fd 156 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd + 1, fd, o_flags) == fd); fd 157 maint/gnulib/tests/test-dup3.c ASSERT (close (fd + 1) == 0); fd 158 maint/gnulib/tests/test-dup3.c ASSERT (write (fd, "1", 1) == 1); fd 159 maint/gnulib/tests/test-dup3.c ASSERT (dup3 (fd + 2, fd, o_flags) == fd); fd 160 maint/gnulib/tests/test-dup3.c ASSERT (lseek (fd, 0, SEEK_END) == 0); fd 161 maint/gnulib/tests/test-dup3.c ASSERT (write (fd + 2, "2", 1) == 1); fd 162 maint/gnulib/tests/test-dup3.c ASSERT (lseek (fd, 0, SEEK_SET) == 0); fd 163 maint/gnulib/tests/test-dup3.c ASSERT (read (fd, buffer, 1) == 1); fd 167 maint/gnulib/tests/test-dup3.c ASSERT (close (fd + 2) == 0); fd 168 maint/gnulib/tests/test-dup3.c ASSERT (close (fd) == 0); fd 30 maint/gnulib/tests/test-execute-child.c is_device (int fd) fd 34 maint/gnulib/tests/test-execute-child.c return _fstat (fd, &st) >= 0 && !((st.st_mode & S_IFMT) == S_IFREG); fd 37 maint/gnulib/tests/test-execute-child.c return fstat (fd, &st) >= 0 && !S_ISREG (st.st_mode); fd 94 maint/gnulib/tests/test-execute-child.c is_open (int fd) fd 100 maint/gnulib/tests/test-execute-child.c return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; fd 105 maint/gnulib/tests/test-execute-child.c return 0 <= fcntl (fd, F_GETFL); fd 182 maint/gnulib/tests/test-execute-child.c int fd; fd 183 maint/gnulib/tests/test-execute-child.c for (fd = 0; fd < 20; fd++) fd 184 maint/gnulib/tests/test-execute-child.c if (is_open (fd) && !(is_qemu && fd == 3)) fd 186 maint/gnulib/tests/test-execute-child.c sprintf (p, "%d ", fd); fd 79 maint/gnulib/tests/test-execute-main.c int fd; fd 80 maint/gnulib/tests/test-execute-main.c for (fd = 3; fd < 20; fd++) fd 81 maint/gnulib/tests/test-execute-main.c close (fd); fd 352 maint/gnulib/tests/test-execute-main.c int fd = open (BASE ".tmp", O_RDONLY); fd 353 maint/gnulib/tests/test-execute-main.c ASSERT (fd >= 0 && fd < 10); fd 355 maint/gnulib/tests/test-execute-main.c ASSERT (dup2 (fd, 10) >= 0); fd 356 maint/gnulib/tests/test-execute-main.c close (fd); fd 357 maint/gnulib/tests/test-execute-main.c fd = 10; fd 360 maint/gnulib/tests/test-execute-main.c ASSERT (read (fd, buf, sizeof (buf)) == sizeof (buf)); fd 368 maint/gnulib/tests/test-execute-main.c close (fd); fd 377 maint/gnulib/tests/test-execute-main.c int fd = open (BASE ".tmp", O_RDWR | O_CREAT | O_TRUNC, 0600); fd 378 maint/gnulib/tests/test-execute-main.c ASSERT (fd >= 0 && fd < 10); fd 380 maint/gnulib/tests/test-execute-main.c ASSERT (dup2 (fd, 10) >= 0); fd 381 maint/gnulib/tests/test-execute-main.c close (fd); fd 382 maint/gnulib/tests/test-execute-main.c fd = 10; fd 384 maint/gnulib/tests/test-execute-main.c ASSERT (write (fd, "Foo", 3) == 3); fd 392 maint/gnulib/tests/test-execute-main.c close (fd); fd 38 maint/gnulib/tests/test-fchdir.c int fd; fd 44 maint/gnulib/tests/test-fchdir.c fd = open (".", O_RDONLY); fd 45 maint/gnulib/tests/test-fchdir.c ASSERT (0 <= fd); fd 74 maint/gnulib/tests/test-fchdir.c ASSERT (fchdir (fd) == 0); fd 88 maint/gnulib/tests/test-fchdir.c int new_fd = dup (fd); fd 90 maint/gnulib/tests/test-fchdir.c ASSERT (close (fd) == 0); fd 91 maint/gnulib/tests/test-fchdir.c ASSERT (dup2 (new_fd, fd) == fd); fd 93 maint/gnulib/tests/test-fchdir.c ASSERT (dup_cloexec (fd) == new_fd); fd 94 maint/gnulib/tests/test-fchdir.c ASSERT (dup2 (new_fd, fd) == fd); fd 96 maint/gnulib/tests/test-fchdir.c ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, new_fd) == new_fd); fd 97 maint/gnulib/tests/test-fchdir.c ASSERT (close (fd) == 0); fd 98 maint/gnulib/tests/test-fchdir.c ASSERT (fcntl (new_fd, F_DUPFD, fd) == fd); fd 101 maint/gnulib/tests/test-fchdir.c ASSERT (dup3 (fd, new_fd, 0) == new_fd); fd 102 maint/gnulib/tests/test-fchdir.c ASSERT (dup3 (new_fd, fd, 0) == fd); fd 51 maint/gnulib/tests/test-fchmod.c int fd; fd 55 maint/gnulib/tests/test-fchmod.c fd = open (BASE "file", O_RDWR); fd 56 maint/gnulib/tests/test-fchmod.c ASSERT (fd >= 0); fd 57 maint/gnulib/tests/test-fchmod.c ASSERT (fchmod (fd, 0400) == 0); fd 60 maint/gnulib/tests/test-fchmod.c ASSERT (close (fd) == 0); fd 40 maint/gnulib/tests/test-fclose.c int fd; fd 45 maint/gnulib/tests/test-fclose.c fd = open (BASE, O_RDWR | O_CREAT | O_TRUNC, 0600); fd 46 maint/gnulib/tests/test-fclose.c ASSERT (0 <= fd); fd 47 maint/gnulib/tests/test-fclose.c ASSERT (write (fd, buf, sizeof buf) == sizeof buf); fd 48 maint/gnulib/tests/test-fclose.c ASSERT (lseek (fd, 1, SEEK_SET) == 1); fd 53 maint/gnulib/tests/test-fclose.c fd2 = dup (fd); fd 62 maint/gnulib/tests/test-fclose.c ASSERT (lseek (fd, 0, SEEK_CUR) == 2); fd 65 maint/gnulib/tests/test-fclose.c fd2 = dup (fd); fd 74 maint/gnulib/tests/test-fclose.c ASSERT (lseek (fd, 0, SEEK_CUR) == 3); fd 79 maint/gnulib/tests/test-fclose.c FILE *fp = fdopen (fd, "w+"); fd 81 maint/gnulib/tests/test-fclose.c ASSERT (close (fd) == 0); fd 55 maint/gnulib/tests/test-fcntl.c is_open (int fd) fd 61 maint/gnulib/tests/test-fcntl.c return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; fd 66 maint/gnulib/tests/test-fcntl.c return 0 <= fcntl (fd, F_GETFL); fd 72 maint/gnulib/tests/test-fcntl.c is_inheritable (int fd) fd 78 maint/gnulib/tests/test-fcntl.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 87 maint/gnulib/tests/test-fcntl.c int i = fcntl (fd, F_GETFD); fd 95 maint/gnulib/tests/test-fcntl.c is_mode (int fd, int mode) fd 97 maint/gnulib/tests/test-fcntl.c int value = set_binary_mode (fd, O_BINARY); fd 98 maint/gnulib/tests/test-fcntl.c set_binary_mode (fd, value); fd 222 maint/gnulib/tests/test-fcntl.c int fd; fd 237 maint/gnulib/tests/test-fcntl.c fd = creat (file, 0600); fd 238 maint/gnulib/tests/test-fcntl.c ASSERT (STDERR_FILENO < fd); fd 239 maint/gnulib/tests/test-fcntl.c close (fd + 1); fd 240 maint/gnulib/tests/test-fcntl.c close (fd + 2); fd 247 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_DUPFD, 0) == -1); fd 256 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_DUPFD_CLOEXEC, 0) == -1); fd 264 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD, -1) == -1); fd 267 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD, bad_fd) == -1); fd 270 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, -1) == -1); fd 273 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, bad_fd) == -1); fd 279 maint/gnulib/tests/test-fcntl.c set_binary_mode (fd, O_BINARY); fd 280 maint/gnulib/tests/test-fcntl.c ASSERT (is_open (fd)); fd 281 maint/gnulib/tests/test-fcntl.c ASSERT (!is_open (fd + 1)); fd 282 maint/gnulib/tests/test-fcntl.c ASSERT (!is_open (fd + 2)); fd 283 maint/gnulib/tests/test-fcntl.c ASSERT (is_inheritable (fd)); fd 284 maint/gnulib/tests/test-fcntl.c ASSERT (is_mode (fd, O_BINARY)); fd 286 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD, fd) == fd + 1); fd 287 maint/gnulib/tests/test-fcntl.c ASSERT (is_open (fd)); fd 288 maint/gnulib/tests/test-fcntl.c ASSERT (is_open (fd + 1)); fd 289 maint/gnulib/tests/test-fcntl.c ASSERT (!is_open (fd + 2)); fd 290 maint/gnulib/tests/test-fcntl.c ASSERT (is_inheritable (fd + 1)); fd 291 maint/gnulib/tests/test-fcntl.c ASSERT (is_mode (fd, O_BINARY)); fd 292 maint/gnulib/tests/test-fcntl.c ASSERT (is_mode (fd + 1, O_BINARY)); fd 293 maint/gnulib/tests/test-fcntl.c ASSERT (close (fd + 1) == 0); fd 295 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, fd + 2) == fd + 2); fd 296 maint/gnulib/tests/test-fcntl.c ASSERT (is_open (fd)); fd 297 maint/gnulib/tests/test-fcntl.c ASSERT (!is_open (fd + 1)); fd 298 maint/gnulib/tests/test-fcntl.c ASSERT (is_open (fd + 2)); fd 299 maint/gnulib/tests/test-fcntl.c ASSERT (is_inheritable (fd)); fd 300 maint/gnulib/tests/test-fcntl.c ASSERT (!is_inheritable (fd + 2)); fd 301 maint/gnulib/tests/test-fcntl.c ASSERT (is_mode (fd, O_BINARY)); fd 302 maint/gnulib/tests/test-fcntl.c ASSERT (is_mode (fd + 2, O_BINARY)); fd 303 maint/gnulib/tests/test-fcntl.c ASSERT (close (fd) == 0); fd 305 maint/gnulib/tests/test-fcntl.c set_binary_mode (fd + 2, O_TEXT); fd 306 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 2, F_DUPFD, fd + 1) == fd + 1); fd 307 maint/gnulib/tests/test-fcntl.c ASSERT (!is_open (fd)); fd 308 maint/gnulib/tests/test-fcntl.c ASSERT (is_open (fd + 1)); fd 309 maint/gnulib/tests/test-fcntl.c ASSERT (is_open (fd + 2)); fd 310 maint/gnulib/tests/test-fcntl.c ASSERT (is_inheritable (fd + 1)); fd 311 maint/gnulib/tests/test-fcntl.c ASSERT (!is_inheritable (fd + 2)); fd 312 maint/gnulib/tests/test-fcntl.c ASSERT (is_mode (fd + 1, O_TEXT)); fd 313 maint/gnulib/tests/test-fcntl.c ASSERT (is_mode (fd + 2, O_TEXT)); fd 314 maint/gnulib/tests/test-fcntl.c ASSERT (close (fd + 1) == 0); fd 316 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 2, F_DUPFD_CLOEXEC, 0) == fd); fd 317 maint/gnulib/tests/test-fcntl.c ASSERT (is_open (fd)); fd 318 maint/gnulib/tests/test-fcntl.c ASSERT (!is_open (fd + 1)); fd 319 maint/gnulib/tests/test-fcntl.c ASSERT (is_open (fd + 2)); fd 320 maint/gnulib/tests/test-fcntl.c ASSERT (!is_inheritable (fd)); fd 321 maint/gnulib/tests/test-fcntl.c ASSERT (!is_inheritable (fd + 2)); fd 322 maint/gnulib/tests/test-fcntl.c ASSERT (is_mode (fd, O_TEXT)); fd 323 maint/gnulib/tests/test-fcntl.c ASSERT (is_mode (fd + 2, O_TEXT)); fd 324 maint/gnulib/tests/test-fcntl.c ASSERT (close (fd + 2) == 0); fd 331 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_GETFD) == -1); fd 339 maint/gnulib/tests/test-fcntl.c int result = fcntl (fd, F_GETFD); fd 342 maint/gnulib/tests/test-fcntl.c ASSERT (dup (fd) == fd + 1); fd 343 maint/gnulib/tests/test-fcntl.c result = fcntl (fd + 1, F_GETFD); fd 346 maint/gnulib/tests/test-fcntl.c ASSERT (close (fd + 1) == 0); fd 355 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_SETFD, 0) == -1); fd 368 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_GETFL) == -1); fd 381 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_SETFL, 0) == -1); fd 394 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_GETOWN) == -1); fd 407 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_SETOWN, 0) == -1); fd 415 maint/gnulib/tests/test-fcntl.c ASSERT (close (fd) == 0); fd 32 maint/gnulib/tests/test-fdatasync.c int fd; fd 37 maint/gnulib/tests/test-fdatasync.c for (fd = 0; fd < 2; fd++) fd 38 maint/gnulib/tests/test-fdatasync.c if (fdatasync (fd) != 0) fd 60 maint/gnulib/tests/test-fdatasync.c fd = open (file, O_WRONLY|O_CREAT|O_TRUNC, 0644); fd 61 maint/gnulib/tests/test-fdatasync.c ASSERT (0 <= fd); fd 62 maint/gnulib/tests/test-fdatasync.c ASSERT (write (fd, "hello", 5) == 5); fd 63 maint/gnulib/tests/test-fdatasync.c ASSERT (fdatasync (fd) == 0); fd 64 maint/gnulib/tests/test-fdatasync.c ASSERT (close (fd) == 0); fd 70 maint/gnulib/tests/test-fdatasync.c fd = open (file, O_RDONLY); fd 71 maint/gnulib/tests/test-fdatasync.c ASSERT (0 <= fd); fd 73 maint/gnulib/tests/test-fdatasync.c ASSERT (fdatasync (fd) == -1); fd 75 maint/gnulib/tests/test-fdatasync.c ASSERT (close (fd) == 0); fd 36 maint/gnulib/tests/test-fdopendir.c int fd; fd 39 maint/gnulib/tests/test-fdopendir.c fd = open ("test-fdopendir.tmp", O_RDONLY | O_CREAT, 0600); fd 40 maint/gnulib/tests/test-fdopendir.c ASSERT (0 <= fd); fd 42 maint/gnulib/tests/test-fdopendir.c ASSERT (fdopendir (fd) == NULL); fd 44 maint/gnulib/tests/test-fdopendir.c ASSERT (close (fd) == 0); fd 61 maint/gnulib/tests/test-fdopendir.c fd = open (".", O_RDONLY); fd 62 maint/gnulib/tests/test-fdopendir.c ASSERT (0 <= fd); fd 63 maint/gnulib/tests/test-fdopendir.c d = fdopendir (fd); fd 66 maint/gnulib/tests/test-fdopendir.c ASSERT (dup2 (fd, fd) == fd); fd 76 maint/gnulib/tests/test-fdopendir.c ASSERT (dup2 (fd, fd) == -1); fd 41 maint/gnulib/tests/test-fdutimensat.c do_futimens (int fd, struct timespec const times[2]) fd 43 maint/gnulib/tests/test-fdutimensat.c return fdutimensat (fd, dfd, NULL, times, 0); fd 53 maint/gnulib/tests/test-fdutimensat.c int fd = openat (dfd, name, O_WRONLY); fd 54 maint/gnulib/tests/test-fdutimensat.c if (fd < 0) fd 55 maint/gnulib/tests/test-fdutimensat.c fd = openat (dfd, name, O_RDONLY); fd 57 maint/gnulib/tests/test-fdutimensat.c nofollow_result = fdutimensat (fd, dfd, name, times, AT_SYMLINK_NOFOLLOW); fd 59 maint/gnulib/tests/test-fdutimensat.c result = fdutimensat (fd, dfd, name, times, 0); fd 62 maint/gnulib/tests/test-fdutimensat.c if (0 <= fd) fd 65 maint/gnulib/tests/test-fdutimensat.c close (fd); fd 98 maint/gnulib/tests/test-fdutimensat.c int fd; fd 122 maint/gnulib/tests/test-fdutimensat.c fd = creat ("file", 0600); fd 123 maint/gnulib/tests/test-fdutimensat.c ASSERT (0 <= fd); fd 125 maint/gnulib/tests/test-fdutimensat.c ASSERT (fdutimensat (AT_FDCWD, fd, ".", NULL, 0) == -1); fd 133 maint/gnulib/tests/test-fdutimensat.c ASSERT (fdutimensat (fd, dfd, BASE "dir/file", ts, 0) == 0); fd 140 maint/gnulib/tests/test-fdutimensat.c ASSERT (close (fd) == 0); fd 39 maint/gnulib/tests/test-fflush.c int fd; fd 53 maint/gnulib/tests/test-fflush.c fd = fileno (f); fd 54 maint/gnulib/tests/test-fflush.c if (!f || 0 > fd || fread (buffer, 1, 5, f) != 5) fd 65 maint/gnulib/tests/test-fflush.c if (lseek (fd, 0, SEEK_CUR) == 5) fd 82 maint/gnulib/tests/test-fflush.c if (lseek (fd, 0, SEEK_CUR) != 5) fd 85 maint/gnulib/tests/test-fflush.c (long) lseek (fd, 0, SEEK_CUR)); fd 107 maint/gnulib/tests/test-fflush.c if (lseek (fd, 0, SEEK_CUR) == 6) fd 123 maint/gnulib/tests/test-fflush.c if (lseek (fd, 0, SEEK_CUR) != 6) fd 126 maint/gnulib/tests/test-fflush.c (long) lseek (fd, 0, SEEK_CUR)); fd 49 maint/gnulib/tests/test-fgetc.c int fd = open (filename, O_RDWR | O_CREAT | O_TRUNC, 0600); fd 50 maint/gnulib/tests/test-fgetc.c ASSERT (fd >= 0); fd 51 maint/gnulib/tests/test-fgetc.c ASSERT (write (fd, text, sizeof (text)) == sizeof (text)); fd 52 maint/gnulib/tests/test-fgetc.c ASSERT (close (fd) == 0); fd 31 maint/gnulib/tests/test-flock.c test_shared (const char *file, int fd) fd 38 maint/gnulib/tests/test-flock.c ASSERT (flock (fd, LOCK_SH) == 0); fd 46 maint/gnulib/tests/test-flock.c ASSERT (flock (fd, LOCK_UN) == 0); fd 51 maint/gnulib/tests/test-flock.c test_exclusive (const char *file, int fd) fd 56 maint/gnulib/tests/test-flock.c ASSERT (flock (fd, LOCK_EX) == 0); fd 86 maint/gnulib/tests/test-flock.c ASSERT (flock (fd, LOCK_UN) == 0); fd 93 maint/gnulib/tests/test-flock.c int fd; fd 97 maint/gnulib/tests/test-flock.c fd = open (file, O_RDWR | O_CREAT | O_TRUNC, 0644); fd 98 maint/gnulib/tests/test-flock.c ASSERT (fd >= 0); fd 99 maint/gnulib/tests/test-flock.c ASSERT (write (fd, "hello", 5) == 5); fd 104 maint/gnulib/tests/test-flock.c ASSERT (flock (fd, LOCK_SH | LOCK_EX) == -1); fd 106 maint/gnulib/tests/test-flock.c ASSERT (flock (fd, LOCK_SH | LOCK_UN) == -1); fd 108 maint/gnulib/tests/test-flock.c ASSERT (flock (fd, LOCK_EX | LOCK_UN) == -1); fd 110 maint/gnulib/tests/test-flock.c ASSERT (flock (fd, 0) == -1); fd 114 maint/gnulib/tests/test-flock.c test_shared (file, fd); fd 115 maint/gnulib/tests/test-flock.c test_exclusive (file, fd); fd 118 maint/gnulib/tests/test-flock.c ASSERT (close (fd) == 0); fd 39 maint/gnulib/tests/test-fopen-gnu.c int fd; fd 50 maint/gnulib/tests/test-fopen-gnu.c fd = fileno (f); fd 51 maint/gnulib/tests/test-fopen-gnu.c ASSERT (fd >= 0); fd 52 maint/gnulib/tests/test-fopen-gnu.c flags = fcntl (fd, F_GETFD); fd 60 maint/gnulib/tests/test-fopen-gnu.c fd = fileno (f); fd 61 maint/gnulib/tests/test-fopen-gnu.c ASSERT (fd >= 0); fd 62 maint/gnulib/tests/test-fopen-gnu.c flags = fcntl (fd, F_GETFD); fd 49 maint/gnulib/tests/test-fread.c int fd = open (filename, O_RDWR | O_CREAT | O_TRUNC, 0600); fd 50 maint/gnulib/tests/test-fread.c ASSERT (fd >= 0); fd 51 maint/gnulib/tests/test-fread.c ASSERT (write (fd, text, sizeof (text)) == sizeof (text)); fd 52 maint/gnulib/tests/test-fread.c ASSERT (close (fd) == 0); fd 127 maint/gnulib/tests/test-free.c int fd = open ("test-free", O_RDONLY); fd 131 maint/gnulib/tests/test-free.c && fd >= 0) fd 156 maint/gnulib/tests/test-free.c if (mmap (NULL, pagesize, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0) fd 32 maint/gnulib/tests/test-fsync.c int fd; fd 37 maint/gnulib/tests/test-fsync.c for (fd = 0; fd < 2; fd++) fd 38 maint/gnulib/tests/test-fsync.c if (fsync (fd) != 0) fd 60 maint/gnulib/tests/test-fsync.c fd = open (file, O_WRONLY|O_CREAT|O_TRUNC, 0644); fd 61 maint/gnulib/tests/test-fsync.c ASSERT (0 <= fd); fd 62 maint/gnulib/tests/test-fsync.c ASSERT (write (fd, "hello", 5) == 5); fd 63 maint/gnulib/tests/test-fsync.c ASSERT (fsync (fd) == 0); fd 64 maint/gnulib/tests/test-fsync.c ASSERT (close (fd) == 0); fd 70 maint/gnulib/tests/test-fsync.c fd = open (file, O_RDONLY); fd 71 maint/gnulib/tests/test-fsync.c ASSERT (0 <= fd); fd 74 maint/gnulib/tests/test-fsync.c ASSERT (read (fd, buf, sizeof buf) == sizeof buf); fd 76 maint/gnulib/tests/test-fsync.c ASSERT (fsync (fd) == 0); fd 77 maint/gnulib/tests/test-fsync.c ASSERT (close (fd) == 0); fd 49 maint/gnulib/tests/test-ftruncate.c int fd = open (filename, O_RDONLY); fd 50 maint/gnulib/tests/test-ftruncate.c ASSERT (fd >= 0); fd 52 maint/gnulib/tests/test-ftruncate.c ASSERT (ftruncate (fd, 0) == -1); fd 56 maint/gnulib/tests/test-ftruncate.c close (fd); fd 130 maint/gnulib/tests/test-fts.c int fd; fd 132 maint/gnulib/tests/test-fts.c fd = open (buf, O_WRONLY | O_CREAT, 0666); fd 133 maint/gnulib/tests/test-fts.c if (fd < 0 || close (fd) != 0) fd 27 maint/gnulib/tests/test-futimens.h int fd = creat (BASE "file", 0600); fd 31 maint/gnulib/tests/test-futimens.h ASSERT (0 <= fd); fd 34 maint/gnulib/tests/test-futimens.h ASSERT (fstat (fd, &st1) == 0); fd 37 maint/gnulib/tests/test-futimens.h result = func (fd, NULL); fd 40 maint/gnulib/tests/test-futimens.h ASSERT (close (fd) == 0); fd 49 maint/gnulib/tests/test-futimens.h ASSERT (fstat (fd, &st2) == 0); fd 69 maint/gnulib/tests/test-futimens.h ASSERT (func (fd, ts) == 0); fd 70 maint/gnulib/tests/test-futimens.h ASSERT (fstat (fd, &st1) == 0); fd 106 maint/gnulib/tests/test-futimens.h ASSERT (func (fd, ts) == -1); fd 116 maint/gnulib/tests/test-futimens.h ASSERT (func (fd, ts) == -1); fd 119 maint/gnulib/tests/test-futimens.h ASSERT (fstat (fd, &st2) == 0); fd 131 maint/gnulib/tests/test-futimens.h ASSERT (func (fd, ts) == 0); fd 132 maint/gnulib/tests/test-futimens.h ASSERT (fstat (fd, &st2) == 0); fd 152 maint/gnulib/tests/test-futimens.h ASSERT (func (fd, ts) == 0); fd 153 maint/gnulib/tests/test-futimens.h ASSERT (fstat (fd, &st3) == 0); fd 163 maint/gnulib/tests/test-futimens.h ASSERT (func (fd, ts) == 0); fd 164 maint/gnulib/tests/test-futimens.h ASSERT (fstat (fd, &st2) == 0); fd 174 maint/gnulib/tests/test-futimens.h ASSERT (close (fd) == 0); fd 62 maint/gnulib/tests/test-isatty.c int fd; fd 64 maint/gnulib/tests/test-isatty.c fd = open (file, O_WRONLY|O_CREAT|O_TRUNC, 0644); fd 65 maint/gnulib/tests/test-isatty.c ASSERT (0 <= fd); fd 66 maint/gnulib/tests/test-isatty.c ASSERT (write (fd, "hello", 5) == 5); fd 67 maint/gnulib/tests/test-isatty.c ASSERT (close (fd) == 0); fd 69 maint/gnulib/tests/test-isatty.c fd = open (file, O_RDONLY); fd 70 maint/gnulib/tests/test-isatty.c ASSERT (0 <= fd); fd 71 maint/gnulib/tests/test-isatty.c ASSERT (! isatty (fd)); fd 72 maint/gnulib/tests/test-isatty.c ASSERT (close (fd) == 0); fd 77 maint/gnulib/tests/test-isatty.c int fd[2]; fd 79 maint/gnulib/tests/test-isatty.c ASSERT (pipe (fd) == 0); fd 80 maint/gnulib/tests/test-isatty.c ASSERT (! isatty (fd[0])); fd 81 maint/gnulib/tests/test-isatty.c ASSERT (! isatty (fd[1])); fd 82 maint/gnulib/tests/test-isatty.c ASSERT (close (fd[0]) == 0); fd 83 maint/gnulib/tests/test-isatty.c ASSERT (close (fd[1]) == 0); fd 88 maint/gnulib/tests/test-isatty.c int fd; fd 90 maint/gnulib/tests/test-isatty.c fd = open (DEV_NULL, O_RDONLY); fd 91 maint/gnulib/tests/test-isatty.c ASSERT (0 <= fd); fd 92 maint/gnulib/tests/test-isatty.c ASSERT (! isatty (fd)); fd 93 maint/gnulib/tests/test-isatty.c ASSERT (close (fd) == 0); fd 27 maint/gnulib/tests/test-link.h int fd; fd 31 maint/gnulib/tests/test-link.h fd = open (BASE "a", O_CREAT | O_EXCL | O_WRONLY, 0600); fd 32 maint/gnulib/tests/test-link.h ASSERT (0 <= fd); fd 33 maint/gnulib/tests/test-link.h ASSERT (write (fd, "hello", 5) == 5); fd 34 maint/gnulib/tests/test-link.h ASSERT (close (fd) == 0); fd 76 maint/gnulib/tests/test-link.h fd = open (BASE "b", O_APPEND | O_WRONLY); fd 77 maint/gnulib/tests/test-link.h ASSERT (0 <= fd); fd 78 maint/gnulib/tests/test-link.h ASSERT (write (fd, "world", 5) == 5); fd 79 maint/gnulib/tests/test-link.h ASSERT (close (fd) == 0); fd 82 maint/gnulib/tests/test-link.h fd = open (BASE "a", O_RDONLY); fd 83 maint/gnulib/tests/test-link.h ASSERT (0 <= fd); fd 84 maint/gnulib/tests/test-link.h ASSERT (read (fd, buf, 10) == 10); fd 86 maint/gnulib/tests/test-link.h ASSERT (close (fd) == 0); fd 88 maint/gnulib/tests/test-link.h fd = open (BASE "a", O_RDONLY); fd 89 maint/gnulib/tests/test-link.h ASSERT (0 <= fd); fd 90 maint/gnulib/tests/test-link.h ASSERT (read (fd, buf, 10) == 10); fd 92 maint/gnulib/tests/test-link.h ASSERT (close (fd) == 0); fd 61 maint/gnulib/tests/test-login_tty.c int fd; fd 62 maint/gnulib/tests/test-login_tty.c for (fd = 0; fd < 3; fd++) fd 63 maint/gnulib/tests/test-login_tty.c if (!(tcgetpgrp (fd) == getpid ())) fd 65 maint/gnulib/tests/test-login_tty.c for (fd = 0; fd < 3; fd++) fd 67 maint/gnulib/tests/test-login_tty.c int sid = tcgetsid (fd); fd 48 maint/gnulib/tests/test-mkfifoat.c test_mknodat (int fd, char const *name, mode_t mode) fd 51 maint/gnulib/tests/test-mkfifoat.c return mknodat (fd, name, mode | S_IFIFO, 0); fd 46 maint/gnulib/tests/test-nonblocking-pipe-main.c int fd[2]; fd 54 maint/gnulib/tests/test-nonblocking-pipe-main.c ASSERT (pipe (fd) >= 0); fd 59 maint/gnulib/tests/test-nonblocking-pipe-main.c if (fd[0] != STDIN_FILENO) fd 61 maint/gnulib/tests/test-nonblocking-pipe-main.c ASSERT (dup2 (fd[0], STDIN_FILENO) >= 0); fd 62 maint/gnulib/tests/test-nonblocking-pipe-main.c close (fd[0]); fd 64 maint/gnulib/tests/test-nonblocking-pipe-main.c if (fd[1] != STDOUT_FILENO) fd 66 maint/gnulib/tests/test-nonblocking-pipe-main.c ASSERT (dup2 (fd[1], STDOUT_FILENO) >= 0); fd 67 maint/gnulib/tests/test-nonblocking-pipe-main.c close (fd[1]); fd 58 maint/gnulib/tests/test-nonblocking-reader.h full_read (size_t fd, void *buf, size_t count) fd 72 maint/gnulib/tests/test-nonblocking-reader.h ret = read (fd, (char *) buf + bytes_read, count - bytes_read); fd 89 maint/gnulib/tests/test-nonblocking-reader.h full_read_from_nonblocking_fd (size_t fd, void *buf, size_t count) fd 103 maint/gnulib/tests/test-nonblocking-reader.h ret = read (fd, (char *) buf + bytes_read, count - bytes_read); fd 127 maint/gnulib/tests/test-nonblocking-reader.h main_reader_loop (int test, size_t data_block_size, int fd) fd 146 maint/gnulib/tests/test-nonblocking-reader.h ret = full_read (fd, data, data_block_size); fd 158 maint/gnulib/tests/test-nonblocking-reader.h ret = full_read (fd, data, data_block_size); fd 171 maint/gnulib/tests/test-nonblocking-reader.h ret = full_read_from_nonblocking_fd (fd, data, data_block_size); fd 184 maint/gnulib/tests/test-nonblocking-reader.h ret = full_read_from_nonblocking_fd (fd, data, data_block_size); fd 60 maint/gnulib/tests/test-nonblocking-writer.h main_writer_loop (int test, size_t data_block_size, int fd, fd 84 maint/gnulib/tests/test-nonblocking-writer.h ret = write (fd, data, 2 * data_block_size); fd 119 maint/gnulib/tests/test-nonblocking-writer.h ret = write (fd, data + bytes_written, fd 159 maint/gnulib/tests/test-nonblocking-writer.h ret = write (fd, data + bytes_written, fd 39 maint/gnulib/tests/test-open.h int fd; fd 53 maint/gnulib/tests/test-open.h fd = func (BASE "file", O_CREAT | O_RDONLY, 0600); fd 54 maint/gnulib/tests/test-open.h ASSERT (0 <= fd); fd 55 maint/gnulib/tests/test-open.h ASSERT (close (fd) == 0); fd 58 maint/gnulib/tests/test-open.h fd = func (BASE "e.exe", O_CREAT | O_RDONLY, 0700); fd 59 maint/gnulib/tests/test-open.h ASSERT (0 <= fd); fd 60 maint/gnulib/tests/test-open.h ASSERT (close (fd) == 0); fd 73 maint/gnulib/tests/test-open.h fd = func ("/dev/null", O_RDONLY); fd 74 maint/gnulib/tests/test-open.h ASSERT (0 <= fd); fd 77 maint/gnulib/tests/test-open.h ASSERT (read (fd, &c, 1) == 0); fd 79 maint/gnulib/tests/test-open.h ASSERT (close (fd) == 0); fd 80 maint/gnulib/tests/test-open.h fd = func ("/dev/null", O_WRONLY); fd 81 maint/gnulib/tests/test-open.h ASSERT (0 <= fd); fd 82 maint/gnulib/tests/test-open.h ASSERT (write (fd, "c", 1) == 1); fd 83 maint/gnulib/tests/test-open.h ASSERT (close (fd) == 0); fd 87 maint/gnulib/tests/test-open.h fd = func (BASE "file", O_NONBLOCK | O_RDONLY); fd 88 maint/gnulib/tests/test-open.h ASSERT (0 <= fd); fd 89 maint/gnulib/tests/test-open.h ASSERT (close (fd) == 0); fd 102 maint/gnulib/tests/test-open.h fd = func (BASE "file", O_CLOEXEC | O_RDONLY); fd 103 maint/gnulib/tests/test-open.h ASSERT (0 <= fd); fd 104 maint/gnulib/tests/test-open.h flags = fcntl (fd, F_GETFD); fd 107 maint/gnulib/tests/test-open.h ASSERT (close (fd) == 0); fd 123 maint/gnulib/tests/test-open.h fd = func (BASE "link", O_RDONLY); fd 124 maint/gnulib/tests/test-open.h ASSERT (0 <= fd); fd 125 maint/gnulib/tests/test-open.h ASSERT (close (fd) == 0); fd 46 maint/gnulib/tests/test-openat-safer.c int fd; fd 60 maint/gnulib/tests/test-openat-safer.c fd = openat (dfd, witness, O_WRONLY | O_CREAT | O_EXCL, 0600); fd 61 maint/gnulib/tests/test-openat-safer.c ASSERT (STDERR_FILENO < fd); fd 62 maint/gnulib/tests/test-openat-safer.c ASSERT (write (fd, "hi", 2) == 2); fd 63 maint/gnulib/tests/test-openat-safer.c ASSERT (close (fd) == 0); fd 101 maint/gnulib/tests/test-openat-safer.c fd = openat (-1, "/dev/null", O_WRONLY); fd 102 maint/gnulib/tests/test-openat-safer.c ASSERT (STDERR_FILENO < fd); fd 106 maint/gnulib/tests/test-openat-safer.c fd = open ("/dev/null", O_RDONLY); fd 107 maint/gnulib/tests/test-openat-safer.c ASSERT (STDERR_FILENO < fd); fd 108 maint/gnulib/tests/test-openat-safer.c ASSERT (openat (fd, ".", O_RDONLY) == -1); fd 110 maint/gnulib/tests/test-openat-safer.c ASSERT (close (fd) == 0); fd 113 maint/gnulib/tests/test-openat-safer.c fd = openat (dfd, witness, O_RDONLY | O_NOFOLLOW); fd 114 maint/gnulib/tests/test-openat-safer.c ASSERT (STDERR_FILENO < fd); fd 115 maint/gnulib/tests/test-openat-safer.c ASSERT (read (fd, buf, 2) == 2); fd 117 maint/gnulib/tests/test-openat-safer.c ASSERT (close (fd) == 0); fd 43 maint/gnulib/tests/test-passfd.c int fd; fd 87 maint/gnulib/tests/test-passfd.c fd = recvfd (pair[0], 0); fd 88 maint/gnulib/tests/test-passfd.c if (fd == -1) fd 114 maint/gnulib/tests/test-passfd.c ret = fstat (fd, &st); fd 123 maint/gnulib/tests/test-passfd.c fd = recvfd (pair[0], 0); fd 124 maint/gnulib/tests/test-passfd.c ASSERT (fd == -1); fd 44 maint/gnulib/tests/test-pipe.c is_open (int fd) fd 50 maint/gnulib/tests/test-pipe.c return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; fd 55 maint/gnulib/tests/test-pipe.c return 0 <= fcntl (fd, F_GETFL); fd 61 maint/gnulib/tests/test-pipe.c is_cloexec (int fd) fd 64 maint/gnulib/tests/test-pipe.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 70 maint/gnulib/tests/test-pipe.c ASSERT ((flags = fcntl (fd, F_GETFD)) >= 0); fd 77 maint/gnulib/tests/test-pipe.c is_nonblocking (int fd) fd 84 maint/gnulib/tests/test-pipe.c ASSERT ((flags = fcntl (fd, F_GETFL)) >= 0); fd 92 maint/gnulib/tests/test-pipe.c int fd[2]; fd 94 maint/gnulib/tests/test-pipe.c fd[0] = -1; fd 95 maint/gnulib/tests/test-pipe.c fd[1] = -1; fd 96 maint/gnulib/tests/test-pipe.c ASSERT (pipe (fd) >= 0); fd 97 maint/gnulib/tests/test-pipe.c ASSERT (fd[0] >= 0); fd 98 maint/gnulib/tests/test-pipe.c ASSERT (fd[1] >= 0); fd 99 maint/gnulib/tests/test-pipe.c ASSERT (fd[0] != fd[1]); fd 100 maint/gnulib/tests/test-pipe.c ASSERT (is_open (fd[0])); fd 101 maint/gnulib/tests/test-pipe.c ASSERT (is_open (fd[1])); fd 102 maint/gnulib/tests/test-pipe.c ASSERT (!is_cloexec (fd[0])); fd 103 maint/gnulib/tests/test-pipe.c ASSERT (!is_cloexec (fd[1])); fd 104 maint/gnulib/tests/test-pipe.c ASSERT (!is_nonblocking (fd[0])); fd 105 maint/gnulib/tests/test-pipe.c ASSERT (!is_nonblocking (fd[1])); fd 47 maint/gnulib/tests/test-pipe2.c is_open (int fd) fd 53 maint/gnulib/tests/test-pipe2.c return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; fd 58 maint/gnulib/tests/test-pipe2.c return 0 <= fcntl (fd, F_GETFL); fd 64 maint/gnulib/tests/test-pipe2.c is_cloexec (int fd) fd 67 maint/gnulib/tests/test-pipe2.c HANDLE h = (HANDLE) _get_osfhandle (fd); fd 73 maint/gnulib/tests/test-pipe2.c ASSERT ((flags = fcntl (fd, F_GETFD)) >= 0); fd 80 maint/gnulib/tests/test-pipe2.c get_nonblocking_flag (int fd) fd 89 maint/gnulib/tests/test-pipe2.c ASSERT ((flags = fcntl (fd, F_GETFL)) >= 0); fd 105 maint/gnulib/tests/test-pipe2.c int fd[2]; fd 113 maint/gnulib/tests/test-pipe2.c fd[0] = -1; fd 114 maint/gnulib/tests/test-pipe2.c fd[1] = -1; fd 115 maint/gnulib/tests/test-pipe2.c ASSERT (pipe2 (fd, o_flags) >= 0); fd 116 maint/gnulib/tests/test-pipe2.c ASSERT (fd[0] >= 0); fd 117 maint/gnulib/tests/test-pipe2.c ASSERT (fd[1] >= 0); fd 118 maint/gnulib/tests/test-pipe2.c ASSERT (fd[0] != fd[1]); fd 119 maint/gnulib/tests/test-pipe2.c ASSERT (is_open (fd[0])); fd 120 maint/gnulib/tests/test-pipe2.c ASSERT (is_open (fd[1])); fd 123 maint/gnulib/tests/test-pipe2.c ASSERT (is_cloexec (fd[0])); fd 124 maint/gnulib/tests/test-pipe2.c ASSERT (is_cloexec (fd[1])); fd 128 maint/gnulib/tests/test-pipe2.c ASSERT (!is_cloexec (fd[0])); fd 129 maint/gnulib/tests/test-pipe2.c ASSERT (!is_cloexec (fd[1])); fd 133 maint/gnulib/tests/test-pipe2.c ASSERT (get_nonblocking_flag (fd[0]) == 1); fd 134 maint/gnulib/tests/test-pipe2.c ASSERT (get_nonblocking_flag (fd[1]) == 1); fd 138 maint/gnulib/tests/test-pipe2.c ASSERT (get_nonblocking_flag (fd[0]) == 0); fd 139 maint/gnulib/tests/test-pipe2.c ASSERT (get_nonblocking_flag (fd[1]) == 0); fd 142 maint/gnulib/tests/test-pipe2.c ASSERT (close (fd[0]) == 0); fd 143 maint/gnulib/tests/test-pipe2.c ASSERT (close (fd[1]) == 0); fd 158 maint/gnulib/tests/test-poll.c poll1 (int fd, int ev, int time) fd 163 maint/gnulib/tests/test-poll.c pfd.fd = fd; fd 177 maint/gnulib/tests/test-poll.c poll1_nowait (int fd, int ev) fd 179 maint/gnulib/tests/test-poll.c return poll1 (fd, ev, 0); fd 183 maint/gnulib/tests/test-poll.c poll1_wait (int fd, int ev) fd 185 maint/gnulib/tests/test-poll.c return poll1 (fd, ev, -1); fd 360 maint/gnulib/tests/test-poll.c int fd[2]; fd 362 maint/gnulib/tests/test-poll.c ASSERT (pipe (fd) >= 0); fd 363 maint/gnulib/tests/test-poll.c test_pair (fd[0], fd[1]); fd 364 maint/gnulib/tests/test-poll.c close (fd[0]); fd 365 maint/gnulib/tests/test-poll.c int revents = poll1_wait (fd[1], POLLIN | POLLOUT); fd 373 maint/gnulib/tests/test-poll.c close (fd[1]); fd 37 maint/gnulib/tests/test-posix_spawn-chdir.c fd_safer (int fd) fd 39 maint/gnulib/tests/test-posix_spawn-chdir.c if (0 <= fd && fd <= 2) fd 41 maint/gnulib/tests/test-posix_spawn-chdir.c int f = fd_safer (dup (fd)); fd 43 maint/gnulib/tests/test-posix_spawn-chdir.c close (fd); fd 45 maint/gnulib/tests/test-posix_spawn-chdir.c fd = f; fd 48 maint/gnulib/tests/test-posix_spawn-chdir.c return fd; fd 64 maint/gnulib/tests/test-posix_spawn-chdir.c int fd; fd 120 maint/gnulib/tests/test-posix_spawn-chdir.c fd = ifd[0]; fd 121 maint/gnulib/tests/test-posix_spawn-chdir.c fp = fdopen (fd, "rb"); fd 37 maint/gnulib/tests/test-posix_spawn-dup2-stdin.c fd_safer (int fd) fd 39 maint/gnulib/tests/test-posix_spawn-dup2-stdin.c if (0 <= fd && fd <= 2) fd 41 maint/gnulib/tests/test-posix_spawn-dup2-stdin.c int f = fd_safer (dup (fd)); fd 43 maint/gnulib/tests/test-posix_spawn-dup2-stdin.c close (fd); fd 45 maint/gnulib/tests/test-posix_spawn-dup2-stdin.c fd = f; fd 48 maint/gnulib/tests/test-posix_spawn-dup2-stdin.c return fd; fd 64 maint/gnulib/tests/test-posix_spawn-dup2-stdin.c int fd; fd 117 maint/gnulib/tests/test-posix_spawn-dup2-stdin.c fd = ofd[1]; fd 118 maint/gnulib/tests/test-posix_spawn-dup2-stdin.c fp = fdopen (fd, "w"); fd 59 maint/gnulib/tests/test-posix_spawn-dup2-stdout.c fd_safer (int fd) fd 61 maint/gnulib/tests/test-posix_spawn-dup2-stdout.c if (0 <= fd && fd <= 2) fd 63 maint/gnulib/tests/test-posix_spawn-dup2-stdout.c int f = fd_safer (dup (fd)); fd 65 maint/gnulib/tests/test-posix_spawn-dup2-stdout.c close (fd); fd 67 maint/gnulib/tests/test-posix_spawn-dup2-stdout.c fd = f; fd 70 maint/gnulib/tests/test-posix_spawn-dup2-stdout.c return fd; fd 86 maint/gnulib/tests/test-posix_spawn-dup2-stdout.c int fd; fd 140 maint/gnulib/tests/test-posix_spawn-dup2-stdout.c fd = ifd[0]; fd 141 maint/gnulib/tests/test-posix_spawn-dup2-stdout.c fp = fdopen (fd, "r"); fd 40 maint/gnulib/tests/test-posix_spawn-fchdir.c fd_safer (int fd) fd 42 maint/gnulib/tests/test-posix_spawn-fchdir.c if (0 <= fd && fd <= 2) fd 44 maint/gnulib/tests/test-posix_spawn-fchdir.c int f = fd_safer (dup (fd)); fd 46 maint/gnulib/tests/test-posix_spawn-fchdir.c close (fd); fd 48 maint/gnulib/tests/test-posix_spawn-fchdir.c fd = f; fd 51 maint/gnulib/tests/test-posix_spawn-fchdir.c return fd; fd 68 maint/gnulib/tests/test-posix_spawn-fchdir.c int fd; fd 129 maint/gnulib/tests/test-posix_spawn-fchdir.c fd = ifd[0]; fd 130 maint/gnulib/tests/test-posix_spawn-fchdir.c fp = fdopen (fd, "r"); fd 37 maint/gnulib/tests/test-posix_spawn_file_actions_addclose.c int fd = getdtablesize (); fd 39 maint/gnulib/tests/test-posix_spawn_file_actions_addclose.c if (fd < OPEN_MAX) fd 40 maint/gnulib/tests/test-posix_spawn_file_actions_addclose.c fd = OPEN_MAX; fd 42 maint/gnulib/tests/test-posix_spawn_file_actions_addclose.c return fd; fd 37 maint/gnulib/tests/test-posix_spawn_file_actions_adddup2.c int fd = getdtablesize (); fd 39 maint/gnulib/tests/test-posix_spawn_file_actions_adddup2.c if (fd < OPEN_MAX) fd 40 maint/gnulib/tests/test-posix_spawn_file_actions_adddup2.c fd = OPEN_MAX; fd 42 maint/gnulib/tests/test-posix_spawn_file_actions_adddup2.c return fd; fd 39 maint/gnulib/tests/test-posix_spawn_file_actions_addopen.c int fd = getdtablesize (); fd 41 maint/gnulib/tests/test-posix_spawn_file_actions_addopen.c if (fd < OPEN_MAX) fd 42 maint/gnulib/tests/test-posix_spawn_file_actions_addopen.c fd = OPEN_MAX; fd 44 maint/gnulib/tests/test-posix_spawn_file_actions_addopen.c return fd; fd 38 maint/gnulib/tests/test-pread.c int fd; fd 44 maint/gnulib/tests/test-pread.c fd = open (file, O_CREAT | O_WRONLY, 0600); fd 45 maint/gnulib/tests/test-pread.c ASSERT (0 <= fd); fd 46 maint/gnulib/tests/test-pread.c ASSERT (write (fd, buf, N) == N); fd 47 maint/gnulib/tests/test-pread.c ASSERT (close (fd) == 0); fd 49 maint/gnulib/tests/test-pread.c fd = open (file, O_RDONLY); fd 50 maint/gnulib/tests/test-pread.c ASSERT (0 <= fd); fd 55 maint/gnulib/tests/test-pread.c off_t init_pos = lseek (fd, pos, SEEK_SET); fd 61 maint/gnulib/tests/test-pread.c ASSERT (pread (fd, &byte_buf, 1, i) == 1); fd 63 maint/gnulib/tests/test-pread.c ASSERT (lseek (fd, 0, SEEK_CUR) == init_pos); fd 70 maint/gnulib/tests/test-pread.c ASSERT (pread (fd, &byte, 1, (off_t) -1) == -1); fd 76 maint/gnulib/tests/test-pread.c ASSERT (close (fd) == 0); fd 83 maint/gnulib/tests/test-ptsname.c int fd; fd 87 maint/gnulib/tests/test-ptsname.c fd = open ("/dev/tty", O_RDONLY); fd 88 maint/gnulib/tests/test-ptsname.c if (fd < 0) fd 94 maint/gnulib/tests/test-ptsname.c result = ptsname (fd); fd 102 maint/gnulib/tests/test-ptsname.c close (fd); fd 110 maint/gnulib/tests/test-ptsname.c int fd; fd 114 maint/gnulib/tests/test-ptsname.c fd = open ("/dev/ptmx", O_RDWR | O_NOCTTY); fd 115 maint/gnulib/tests/test-ptsname.c if (fd < 0) fd 121 maint/gnulib/tests/test-ptsname.c result = ptsname (fd); fd 125 maint/gnulib/tests/test-ptsname.c close (fd); fd 138 maint/gnulib/tests/test-ptsname.c int fd; fd 142 maint/gnulib/tests/test-ptsname.c fd = open ("/dev/ptc", O_RDWR | O_NOCTTY); fd 143 maint/gnulib/tests/test-ptsname.c if (fd < 0) fd 149 maint/gnulib/tests/test-ptsname.c result = ptsname (fd); fd 155 maint/gnulib/tests/test-ptsname.c close (fd); fd 169 maint/gnulib/tests/test-ptsname.c int fd; fd 172 maint/gnulib/tests/test-ptsname.c fd = open (master_name, O_RDONLY); fd 173 maint/gnulib/tests/test-ptsname.c if (fd >= 0) fd 178 maint/gnulib/tests/test-ptsname.c result = ptsname (fd); fd 183 maint/gnulib/tests/test-ptsname.c close (fd); fd 199 maint/gnulib/tests/test-ptsname.c int fd; fd 202 maint/gnulib/tests/test-ptsname.c fd = open (master_name, O_RDONLY); fd 203 maint/gnulib/tests/test-ptsname.c if (fd >= 0) fd 208 maint/gnulib/tests/test-ptsname.c result = ptsname (fd); fd 213 maint/gnulib/tests/test-ptsname.c close (fd); fd 66 maint/gnulib/tests/test-ptsname_r.c test_errors (int fd, const char *slave) fd 81 maint/gnulib/tests/test-ptsname_r.c result = ptsname_r (fd, buffer, buflen); fd 100 maint/gnulib/tests/test-ptsname_r.c result = ptsname_r (fd, null_ptr (), 0); fd 131 maint/gnulib/tests/test-ptsname_r.c int fd; fd 136 maint/gnulib/tests/test-ptsname_r.c fd = open ("/dev/tty", O_RDONLY); fd 137 maint/gnulib/tests/test-ptsname_r.c if (fd < 0) fd 143 maint/gnulib/tests/test-ptsname_r.c result = ptsname_r (fd, buffer, sizeof buffer); fd 151 maint/gnulib/tests/test-ptsname_r.c close (fd); fd 159 maint/gnulib/tests/test-ptsname_r.c int fd; fd 164 maint/gnulib/tests/test-ptsname_r.c fd = open ("/dev/ptmx", O_RDWR | O_NOCTTY); fd 165 maint/gnulib/tests/test-ptsname_r.c if (fd < 0) fd 171 maint/gnulib/tests/test-ptsname_r.c result = ptsname_r (fd, buffer, sizeof buffer); fd 175 maint/gnulib/tests/test-ptsname_r.c test_errors (fd, buffer); fd 177 maint/gnulib/tests/test-ptsname_r.c close (fd); fd 190 maint/gnulib/tests/test-ptsname_r.c int fd; fd 195 maint/gnulib/tests/test-ptsname_r.c fd = open ("/dev/ptc", O_RDWR | O_NOCTTY); fd 196 maint/gnulib/tests/test-ptsname_r.c if (fd < 0) fd 202 maint/gnulib/tests/test-ptsname_r.c result = ptsname_r (fd, buffer, sizeof buffer); fd 206 maint/gnulib/tests/test-ptsname_r.c test_errors (fd, buffer); fd 210 maint/gnulib/tests/test-ptsname_r.c close (fd); fd 224 maint/gnulib/tests/test-ptsname_r.c int fd; fd 227 maint/gnulib/tests/test-ptsname_r.c fd = open (master_name, O_RDONLY); fd 228 maint/gnulib/tests/test-ptsname_r.c if (fd >= 0) fd 234 maint/gnulib/tests/test-ptsname_r.c result = ptsname_r (fd, buffer, sizeof buffer); fd 239 maint/gnulib/tests/test-ptsname_r.c test_errors (fd, buffer); fd 242 maint/gnulib/tests/test-ptsname_r.c close (fd); fd 258 maint/gnulib/tests/test-ptsname_r.c int fd; fd 261 maint/gnulib/tests/test-ptsname_r.c fd = open (master_name, O_RDONLY); fd 262 maint/gnulib/tests/test-ptsname_r.c if (fd >= 0) fd 268 maint/gnulib/tests/test-ptsname_r.c result = ptsname_r (fd, buffer, sizeof buffer); fd 273 maint/gnulib/tests/test-ptsname_r.c test_errors (fd, buffer); fd 275 maint/gnulib/tests/test-ptsname_r.c close (fd); fd 37 maint/gnulib/tests/test-pwrite.c int fd; fd 45 maint/gnulib/tests/test-pwrite.c fd = open (file, O_CREAT | O_WRONLY, 0600); fd 46 maint/gnulib/tests/test-pwrite.c ASSERT (0 <= fd); fd 47 maint/gnulib/tests/test-pwrite.c ASSERT (write (fd, buf, N) == N); fd 48 maint/gnulib/tests/test-pwrite.c ASSERT (close (fd) == 0); fd 50 maint/gnulib/tests/test-pwrite.c fd = open (file, O_WRONLY, 0600); fd 51 maint/gnulib/tests/test-pwrite.c ASSERT (0 <= fd); fd 53 maint/gnulib/tests/test-pwrite.c init_pos = lseek (fd, pos, SEEK_SET); fd 59 maint/gnulib/tests/test-pwrite.c ASSERT (pwrite (fd, &byte, 1, i) == 1); fd 60 maint/gnulib/tests/test-pwrite.c ASSERT (lseek (fd, 0, SEEK_CUR) == init_pos); fd 66 maint/gnulib/tests/test-pwrite.c ASSERT (pwrite (fd, &byte, 1, (off_t) -1) == -1); fd 70 maint/gnulib/tests/test-pwrite.c ASSERT (close (fd) == 0); fd 73 maint/gnulib/tests/test-pwrite.c fd = open (file, O_RDONLY); fd 74 maint/gnulib/tests/test-pwrite.c ASSERT (0 <= fd); fd 75 maint/gnulib/tests/test-pwrite.c ASSERT (read (fd, buf, N) == N); fd 76 maint/gnulib/tests/test-pwrite.c ASSERT (close (fd) == 0); fd 34 maint/gnulib/tests/test-read.c int fd; fd 37 maint/gnulib/tests/test-read.c fd = open (filename, O_CREAT | O_WRONLY, 0600); fd 38 maint/gnulib/tests/test-read.c ASSERT (fd >= 0); fd 39 maint/gnulib/tests/test-read.c ASSERT (write (fd, "Hello World", 11) == 11); fd 40 maint/gnulib/tests/test-read.c ASSERT (close (fd) == 0); fd 43 maint/gnulib/tests/test-read.c fd = open (filename, O_RDONLY); fd 44 maint/gnulib/tests/test-read.c ASSERT (fd >= 0); fd 45 maint/gnulib/tests/test-read.c ASSERT (lseek (fd, 6, SEEK_SET) == 6); fd 48 maint/gnulib/tests/test-read.c ssize_t ret = read (fd, buf, 10); fd 52 maint/gnulib/tests/test-read.c ASSERT (close (fd) == 0); fd 34 maint/gnulib/tests/test-readtokens.c int fd = open (filename, O_CREAT | O_WRONLY, 0600); fd 35 maint/gnulib/tests/test-readtokens.c ASSERT (fd >= 0); fd 36 maint/gnulib/tests/test-readtokens.c ASSERT (write (fd, "a|b;c+d", 7) == 7); fd 37 maint/gnulib/tests/test-readtokens.c ASSERT (close (fd) == 0); fd 76 maint/gnulib/tests/test-rename.h int fd = creat (BASE "file", 0600); fd 77 maint/gnulib/tests/test-rename.h ASSERT (0 <= fd); fd 78 maint/gnulib/tests/test-rename.h ASSERT (write (fd, "hi", 2) == 2); fd 79 maint/gnulib/tests/test-rename.h ASSERT (close (fd) == 0); fd 34 maint/gnulib/tests/test-select-fd.c int fd = atoi (argv[2]); fd 36 maint/gnulib/tests/test-select-fd.c if (fd >= 0) fd 48 maint/gnulib/tests/test-select-fd.c FD_SET (fd, &fds); fd 52 maint/gnulib/tests/test-select-fd.c ? select (fd + 1, &fds, NULL, NULL, &timeout) fd 53 maint/gnulib/tests/test-select-fd.c : select (fd + 1, NULL, &fds, NULL, &timeout)); fd 59 maint/gnulib/tests/test-select-fd.c if ((ret == 0) != ! FD_ISSET (fd, &fds)) fd 157 maint/gnulib/tests/test-select.h do_select (int fd, int ev, struct timeval *timeout, select_fn my_select) fd 166 maint/gnulib/tests/test-select.h FD_SET (fd, &rfds); fd 168 maint/gnulib/tests/test-select.h FD_SET (fd, &wfds); fd 170 maint/gnulib/tests/test-select.h FD_SET (fd, &xfds); fd 171 maint/gnulib/tests/test-select.h r = my_select (fd + 1, &rfds, &wfds, &xfds, timeout); fd 176 maint/gnulib/tests/test-select.h if (FD_ISSET (fd, &rfds)) fd 178 maint/gnulib/tests/test-select.h if (FD_ISSET (fd, &wfds)) fd 180 maint/gnulib/tests/test-select.h if (FD_ISSET (fd, &xfds)) fd 191 maint/gnulib/tests/test-select.h do_select_nowait (int fd, int ev, select_fn my_select) fd 196 maint/gnulib/tests/test-select.h return do_select (fd, ev, &tv0, my_select); fd 200 maint/gnulib/tests/test-select.h do_select_wait (int fd, int ev, select_fn my_select) fd 202 maint/gnulib/tests/test-select.h return do_select (fd, ev, NULL, my_select); fd 255 maint/gnulib/tests/test-select.h do_select_bad_fd (int fd, int ev, struct timeval *timeout, select_fn my_select) fd 263 maint/gnulib/tests/test-select.h FD_SET (fd, &rfds); fd 265 maint/gnulib/tests/test-select.h FD_SET (fd, &wfds); fd 267 maint/gnulib/tests/test-select.h FD_SET (fd, &xfds); fd 269 maint/gnulib/tests/test-select.h return my_select (fd + 1, &rfds, &wfds, &xfds, timeout); fd 276 maint/gnulib/tests/test-select.h do_select_bad_fd_nowait (int fd, int ev, select_fn my_select) fd 281 maint/gnulib/tests/test-select.h return do_select_bad_fd (fd, ev, &tv0, my_select); fd 289 maint/gnulib/tests/test-select.h int fd; fd 295 maint/gnulib/tests/test-select.h fd = 14; fd 297 maint/gnulib/tests/test-select.h fd = 99; fd 302 maint/gnulib/tests/test-select.h if (fd >= FD_SETSIZE) fd 303 maint/gnulib/tests/test-select.h fd = FD_SETSIZE - 1; fd 304 maint/gnulib/tests/test-select.h close (fd); fd 306 maint/gnulib/tests/test-select.h if (do_select_bad_fd_nowait (fd, SEL_IN, my_select) == 0 || errno != EBADF) fd 308 maint/gnulib/tests/test-select.h if (do_select_bad_fd_nowait (fd, SEL_OUT, my_select) == 0 || errno != EBADF) fd 310 maint/gnulib/tests/test-select.h if (do_select_bad_fd_nowait (fd, SEL_EXC, my_select) == 0 || errno != EBADF) fd 437 maint/gnulib/tests/test-select.h int fd[2]; fd 439 maint/gnulib/tests/test-select.h ASSERT (pipe (fd) == 0); fd 440 maint/gnulib/tests/test-select.h test_pair (fd[0], fd[1], my_select); fd 441 maint/gnulib/tests/test-select.h ASSERT (close (fd[0]) == 0); fd 442 maint/gnulib/tests/test-select.h ASSERT (close (fd[1]) == 0); fd 76 maint/gnulib/tests/test-spawn-pipe-child.c is_open (int fd) fd 82 maint/gnulib/tests/test-spawn-pipe-child.c return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; fd 87 maint/gnulib/tests/test-spawn-pipe-child.c return 0 <= fcntl (fd, F_GETFL); fd 142 maint/gnulib/tests/test-spawn-pipe-child.c int fd; fd 143 maint/gnulib/tests/test-spawn-pipe-child.c for (fd = 3; fd < 7; fd++) fd 144 maint/gnulib/tests/test-spawn-pipe-child.c if (!(is_qemu && fd == 3)) fd 147 maint/gnulib/tests/test-spawn-pipe-child.c ASSERT (close (fd) == -1); fd 46 maint/gnulib/tests/test-spawn-pipe-main.c int fd[2]; fd 55 maint/gnulib/tests/test-spawn-pipe-main.c pid = create_pipe_bidi (prog, prog, argv, NULL, false, true, true, fd); fd 57 maint/gnulib/tests/test-spawn-pipe-main.c ASSERT (STDERR_FILENO < fd[0]); fd 58 maint/gnulib/tests/test-spawn-pipe-main.c ASSERT (STDERR_FILENO < fd[1]); fd 61 maint/gnulib/tests/test-spawn-pipe-main.c ASSERT (write (fd[1], buffer, 1) == 1); fd 62 maint/gnulib/tests/test-spawn-pipe-main.c ASSERT (close (fd[1]) == 0); fd 65 maint/gnulib/tests/test-spawn-pipe-main.c ASSERT (read (fd[0], buffer, 2) == 1); fd 69 maint/gnulib/tests/test-spawn-pipe-main.c ASSERT (close (fd[0]) == 0); fd 80 maint/gnulib/tests/test-spawn-pipe-main.c int fd; fd 132 maint/gnulib/tests/test-spawn-pipe-main.c for (fd = 3; fd < 7; fd++) fd 133 maint/gnulib/tests/test-spawn-pipe-main.c close (fd); fd 40 maint/gnulib/tests/test-spawn-pipe-script.c int fd[1]; fd 55 maint/gnulib/tests/test-spawn-pipe-script.c NULL, false, true, false, fd); fd 83 maint/gnulib/tests/test-spawn-pipe-script.c NULL, false, true, false, fd); fd 85 maint/gnulib/tests/test-spawn-pipe-script.c ASSERT (fd[0] > STDERR_FILENO); fd 89 maint/gnulib/tests/test-spawn-pipe-script.c FILE *fp = fdopen (fd[0], "r"); fd 83 maint/gnulib/tests/test-stat-time.c int fd = open (filename, flags | O_WRONLY, 0500); fd 84 maint/gnulib/tests/test-stat-time.c if (fd >= 0) fd 86 maint/gnulib/tests/test-stat-time.c close (fd); fd 33 maint/gnulib/tests/test-supersede-open.h int fd = open_supersede (filename, O_RDWR | O_BINARY | O_TRUNC, 0666, fd 36 maint/gnulib/tests/test-supersede-open.h ASSERT (fd >= 0); fd 37 maint/gnulib/tests/test-supersede-open.h ASSERT (write (fd, "Hello world\n", 12) == 12); fd 42 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); fd 59 maint/gnulib/tests/test-supersede-open.h int fd = open_supersede (filename, O_RDWR | O_BINARY | O_TRUNC, 0666, fd 62 maint/gnulib/tests/test-supersede-open.h ASSERT (fd >= 0); fd 63 maint/gnulib/tests/test-supersede-open.h ASSERT (write (fd, "Foobar\n", 7) == 7); fd 79 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); fd 106 maint/gnulib/tests/test-supersede-open.h int fd = open_supersede (DEV_NULL, O_RDWR | O_BINARY | O_TRUNC, 0666, fd 109 maint/gnulib/tests/test-supersede-open.h ASSERT (fd >= 0); fd 110 maint/gnulib/tests/test-supersede-open.h ASSERT (write (fd, "Foobar\n", 7) == 7); fd 112 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); fd 129 maint/gnulib/tests/test-supersede-open.h int fd = fd 133 maint/gnulib/tests/test-supersede-open.h ASSERT (fd >= 0); fd 134 maint/gnulib/tests/test-supersede-open.h ASSERT (write (fd, "New\n", 4) == 4); fd 150 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); fd 186 maint/gnulib/tests/test-supersede-open.h int fd = fd 190 maint/gnulib/tests/test-supersede-open.h ASSERT (fd >= 0); fd 191 maint/gnulib/tests/test-supersede-open.h ASSERT (write (fd, "New\n", 4) == 4); fd 193 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); fd 215 maint/gnulib/tests/test-supersede-open.h int fd = fd 219 maint/gnulib/tests/test-supersede-open.h ASSERT (fd >= 0); fd 220 maint/gnulib/tests/test-supersede-open.h ASSERT (write (fd, "Hello world\n", 12) == 12); fd 225 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); fd 249 maint/gnulib/tests/test-supersede-open.h int fd = fd 253 maint/gnulib/tests/test-supersede-open.h ASSERT (fd < 0); fd 39 maint/gnulib/tests/test-truncate.c int fd = open (BASE "file", O_RDWR | O_TRUNC | O_CREAT, 0600); fd 40 maint/gnulib/tests/test-truncate.c ASSERT (fd >= 0); fd 41 maint/gnulib/tests/test-truncate.c ASSERT (write (fd, "Hello", 5) == 5); fd 42 maint/gnulib/tests/test-truncate.c close (fd); fd 46 maint/gnulib/tests/test-truncate.c int fd = open (BASE "file", O_RDONLY); fd 47 maint/gnulib/tests/test-truncate.c ASSERT (fd >= 0); fd 48 maint/gnulib/tests/test-truncate.c ASSERT (lseek (fd, 0, SEEK_END) == 5); fd 49 maint/gnulib/tests/test-truncate.c close (fd); fd 55 maint/gnulib/tests/test-truncate.c int fd = open (BASE "file", O_RDONLY); fd 56 maint/gnulib/tests/test-truncate.c ASSERT (fd >= 0); fd 57 maint/gnulib/tests/test-truncate.c ASSERT (lseek (fd, 0, SEEK_END) == 314159); fd 58 maint/gnulib/tests/test-truncate.c close (fd); fd 64 maint/gnulib/tests/test-truncate.c int fd = open (BASE "file", O_RDONLY); fd 65 maint/gnulib/tests/test-truncate.c ASSERT (fd >= 0); fd 66 maint/gnulib/tests/test-truncate.c ASSERT (lseek (fd, 0, SEEK_END) == 3); fd 67 maint/gnulib/tests/test-truncate.c close (fd); fd 73 maint/gnulib/tests/test-truncate.c int fd = open (BASE "file", O_RDONLY); fd 74 maint/gnulib/tests/test-truncate.c ASSERT (fd >= 0); fd 75 maint/gnulib/tests/test-truncate.c ASSERT (lseek (fd, 0, SEEK_END) == 0); fd 76 maint/gnulib/tests/test-truncate.c close (fd); fd 34 maint/gnulib/tests/test-ttyname_r.c int fd; fd 38 maint/gnulib/tests/test-ttyname_r.c fd = open ("/dev/tty", O_RDONLY); fd 39 maint/gnulib/tests/test-ttyname_r.c if (fd < 0) fd 45 maint/gnulib/tests/test-ttyname_r.c ASSERT (ttyname_r (fd, buf, 1) == ERANGE); fd 47 maint/gnulib/tests/test-ttyname_r.c ASSERT (ttyname_r (fd, buf, sizeof (buf)) == 0); fd 256 maint/gnulib/tests/test-unistd-c++.cc (int fd, char *buf, size_t buflen)); fd 38 maint/gnulib/tests/test-utimens.c do_futimens (int fd, struct timespec const times[2]) fd 40 maint/gnulib/tests/test-utimens.c return fdutimens (fd, NULL, times); fd 48 maint/gnulib/tests/test-utimens.c int fd = open (name, O_WRONLY); fd 49 maint/gnulib/tests/test-utimens.c if (fd < 0) fd 50 maint/gnulib/tests/test-utimens.c fd = open (name, O_RDONLY); fd 52 maint/gnulib/tests/test-utimens.c result = fdutimens (fd, name, times); fd 53 maint/gnulib/tests/test-utimens.c if (0 <= fd) fd 56 maint/gnulib/tests/test-utimens.c close (fd); fd 67 maint/gnulib/tests/test-utimensat.c int fd; fd 98 maint/gnulib/tests/test-utimensat.c fd = creat ("file", 0600); fd 99 maint/gnulib/tests/test-utimensat.c ASSERT (0 <= fd); fd 101 maint/gnulib/tests/test-utimensat.c ASSERT (utimensat (fd, ".", NULL, 0) == -1); fd 117 maint/gnulib/tests/test-utimensat.c ASSERT (close (fd) == 0); fd 30 maint/gnulib/tests/test-vdprintf.c my_dprintf (int fd, const char *format, ...) fd 36 maint/gnulib/tests/test-vdprintf.c ret = vdprintf (fd, format, args); fd 34 maint/gnulib/tests/test-write.c int fd; fd 37 maint/gnulib/tests/test-write.c fd = open (filename, O_CREAT | O_WRONLY, 0600); fd 38 maint/gnulib/tests/test-write.c ASSERT (fd >= 0); fd 39 maint/gnulib/tests/test-write.c ASSERT (write (fd, "Hello World", 11) == 11); fd 40 maint/gnulib/tests/test-write.c ASSERT (close (fd) == 0); fd 43 maint/gnulib/tests/test-write.c fd = open (filename, O_WRONLY); fd 44 maint/gnulib/tests/test-write.c ASSERT (fd >= 0); fd 45 maint/gnulib/tests/test-write.c ASSERT (lseek (fd, 6, SEEK_SET) == 6); fd 46 maint/gnulib/tests/test-write.c ASSERT (write (fd, "fascination", 11) == 11); fd 58 maint/gnulib/tests/test-write.c ASSERT (close (fd) == 0); fd 65 maint/gnulib/tests/zerosize-ptr.h const int fd = -1; fd 68 maint/gnulib/tests/zerosize-ptr.h int fd = open ("/dev/zero", O_RDONLY, 0666); fd 69 maint/gnulib/tests/zerosize-ptr.h if (fd >= 0) fd 75 maint/gnulib/tests/zerosize-ptr.h flags, fd, 0);