/netbsd-current/external/lgpl3/mpc/dist/tests/ |
H A D | close_datafile.c | 27 fclose (dc->fd);
|
/netbsd-current/tests/kernel/ |
H A D | h_fexecve.c | 43 int fd = open(args[0], O_RDONLY); local 44 if (fd == -1) 46 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) 48 if (fexecve(fd, args, NULL) == -1)
|
/netbsd-current/external/ibm-public/postfix/dist/src/util/ |
H A D | peekfd.c | 11 /* ssize_t peekfd(fd) 12 /* int fd; 62 ssize_t peekfd(int fd) argument 79 if (ioctl(fd, FIONREAD, (char *) &count) < 0) { 80 (void) shutdown(fd, SHUT_RDWR); 86 return (ioctl(fd, FIONREAD, (char *) &count) < 0 ? -1 : count);
|
/netbsd-current/external/gpl3/gcc.old/dist/gcc/ |
H A D | omp-grid.h | 24 extern tree omp_grid_lastprivate_predicate (struct omp_for_data *fd);
|
/netbsd-current/external/gpl3/gdb.old/dist/gdbsupport/ |
H A D | scoped_mmap.cc | 30 scoped_fd fd (gdb_open_cloexec (filename, O_RDONLY, 0)); 31 if (fd.get () < 0) 34 off_t size = lseek (fd.get (), 0, SEEK_END); 42 scoped_mmap mmapped_file (nullptr, size, PROT_READ, MAP_PRIVATE, fd.get (), 0);
|
/netbsd-current/external/gpl3/gdb.old/dist/ld/testsuite/ld-xtensa/ |
H A D | relax-undef-weak-shared.d | 9 .*R_XTENSA_GLOB_DAT.*fd.* 13 .*R_XTENSA_JMP_SLOT.*fd.*
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/lib/ |
H A D | read1.c | 29 read (int fd, void *buf, size_t count) argument 31 static ssize_t (*read2) (int fd, void *buf, size_t count) = NULL; 41 if (count > 1 && isatty (fd) >= 1) 43 return read2 (fd, buf, count);
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/contrib/ |
H A D | expect-read1.c | 26 read (int fd, void *buf, size_t count) argument 28 static ssize_t (*read2) (int fd, void *buf, size_t count) = NULL; 36 if (count > 1 && isatty (fd) == 1) 39 return read2 (fd, buf, count);
|
/netbsd-current/external/gpl3/gdb/dist/gdbsupport/ |
H A D | scoped_mmap.cc | 30 scoped_fd fd = gdb_open_cloexec (filename, O_RDONLY, 0); local 31 if (fd.get () < 0) 34 off_t size = lseek (fd.get (), 0, SEEK_END); 42 scoped_mmap mmapped_file (nullptr, size, PROT_READ, MAP_PRIVATE, fd.get (), 0);
|
/netbsd-current/external/gpl3/gdb/dist/gdb/contrib/ |
H A D | expect-read1.c | 26 read (int fd, void *buf, size_t count) argument 28 static ssize_t (*read2) (int fd, void *buf, size_t count) = NULL; 36 if (count > 1 && isatty (fd) == 1) 39 return read2 (fd, buf, count);
|
/netbsd-current/external/bsd/file/dist/src/ |
H A D | pread.c | 15 pread(int fd, void *buf, size_t len, off_t off) { argument 19 if ((old = lseek(fd, off, SEEK_SET)) == -1) 22 if ((rv = read(fd, buf, len)) == -1) 25 if (lseek(fd, old, SEEK_SET) == -1)
|
/netbsd-current/usr.sbin/sdpd/ |
H A D | record.c | 50 record_insert_request(server_t *srv, int fd) argument 55 log_debug("RecordInsertRequest by client on fd#%d", fd); 60 if (!srv->fdidx[fd].control 61 || !srv->fdidx[fd].priv) 64 srv->fdidx[fd].offset = 0; 65 db_unselect(srv, fd); 85 if (!db_create(srv, fd, &bdaddr, srv->handle, &seq)) 104 record_update_request(server_t *srv, int fd) argument 109 log_debug("RecordUpdateRequest by client on fd# 163 record_remove_request(server_t *srv, int fd) argument [all...] |
/netbsd-current/lib/libc/stdio/ |
H A D | mkstemp.c | 51 int fd; local 55 return GETTEMP(path, &fd, 0, 0, 0) ? fd : -1;
|
/netbsd-current/lib/libc/sys/ |
H A D | posix_fadvise.c | 34 int __posix_fadvise50(int fd, int pad, off_t offset, off_t size, int hint); 37 posix_fadvise(int fd, off_t offset, off_t size, int hint) argument 39 return __posix_fadvise50(fd, 0, offset, size, hint);
|
/netbsd-current/lib/libc/termios/ |
H A D | tcdrain.c | 53 tcdrain(int fd) 56 _DIAGASSERT(fd != -1); 58 return (ioctl(fd, TIOCDRAIN, 0));
|
/netbsd-current/sys/lib/libsa/ |
H A D | fstat.c | 37 fstat(int fd, struct stat *sb) argument 39 struct open_file *f = &files[fd]; 42 if ((unsigned int)fd >= SOPEN_MAX || f->f_flags == 0) {
|
H A D | ioctl.c | 66 ioctl(int fd, u_long cmd, char *arg) argument 69 struct open_file *f = &files[fd]; 73 if ((unsigned int)fd >= SOPEN_MAX || f->f_flags == 0) {
|
H A D | getfile.c | 40 int fd; local 48 } while ((fd = open(buf, mode)) < 0); 50 return fd;
|
/netbsd-current/tests/lib/libc/sys/ |
H A D | t_fsync.c | 52 int i, fd[2]; local 56 * when the 'fd' is not a valid descriptor. 71 ATF_REQUIRE(pipe(fd) == 0); 75 ATF_REQUIRE(fsync(fd[0]) == -1); 80 ATF_REQUIRE(fsync(fd[1]) == -1); 83 ATF_REQUIRE(close(fd[0]) == 0); 84 ATF_REQUIRE(close(fd[1]) == 0); 96 int fd, i; local 102 fd = mkstemp(buf); 104 ATF_REQUIRE(fd ! [all...] |
/netbsd-current/external/gpl2/diffutils/dist/lib/ |
H A D | setmode.c | 55 set_binary_mode (int fd, bool mode) argument 58 if (isatty (fd)) 60 return setmode (fd, mode ? O_BINARY : O_TEXT) != O_TEXT;
|
/netbsd-current/external/gpl2/xcvs/dist/lib/ |
H A D | dup-safer.c | 40 dup_safer (int fd) argument 43 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); 47 return fd_safer (dup (fd));
|
/netbsd-current/external/gpl3/binutils.old/dist/gold/ |
H A D | pread.c | 37 pread (int fd, void *buf, size_t count, off_t offset) argument 39 if (lseek(fd, offset, SEEK_SET) != offset) 41 return read(fd, buf, count);
|
/netbsd-current/external/gpl3/binutils/dist/gold/ |
H A D | pread.c | 37 pread (int fd, void *buf, size_t count, off_t offset) argument 39 if (lseek(fd, offset, SEEK_SET) != offset) 41 return read(fd, buf, count);
|
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/ |
H A D | dirfd.c | 32 int fd; member in struct:dirp_fd_list 36 /* Register fd associated with dirp to dirp_fd_list. */ 38 _gl_register_dirp_fd (int fd, DIR *dirp) argument 45 new_dirp_fd->fd = fd; 53 /* Unregister fd from dirp_fd_list with closing it */ 55 _gl_unregister_dirp_fd (int fd) argument 63 if (dirp_fd->fd == fd) 70 close (fd); 81 int fd = DIR_TO_FD (dir_p); local [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gold/ |
H A D | pread.c | 37 pread (int fd, void *buf, size_t count, off_t offset) argument 39 if (lseek(fd, offset, SEEK_SET) != offset) 41 return read(fd, buf, count);
|