Searched refs:fd (Results 1 - 25 of 2333) sorted by last modified time

1234567891011>>

/freebsd-11-stable/contrib/elftoolchain/readelf/
H A Dreadelf.c253 static const char *aeabi_fp_denormal(uint64_t fd);
314 static void dump_flags(struct flag_desc *fd, uint64_t flags);
1683 aeabi_fp_denormal(uint64_t fd) argument
1687 switch (fd) {
1693 (uintmax_t) fd);
2856 struct flag_desc *fd; local
2858 for (fd = desc; fd->flag != 0; fd++) {
2859 if (val & fd
7309 dump_ar(struct readelf *re, int fd) argument
7389 dump_object(struct readelf *re, int fd) argument
7760 int fd, opt, i; local
[all...]
/freebsd-11-stable/contrib/libarchive/test_utils/
H A Dtest_main.c1965 int fd;
1967 fd = open(path, O_CREAT | O_WRONLY, mode >= 0 ? mode : 0644);
1968 if (fd < 0) {
1976 close(fd);
1986 if (wsize != write(fd, contents, wsize)) {
1987 close(fd);
1991 close(fd);
1995 close(fd);
2200 int fd, r, flagsa, flagsb;
2203 fd
2804 sunacl_get(int cmd, int *aclcnt, int fd, const char *path) argument
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_sparse_basic.c186 int fd, r; local
194 fd = open(testfile, O_RDWR);
195 if (fd < 0)
203 r = ioctl(fd, FS_IOC_FIEMAP, fm);
204 close(fd);
242 int fd, r; local
247 fd = open(testfile, O_RDWR);
248 if (fd < 0)
250 r = lseek(fd, 0, SEEK_HOLE);
251 close(fd);
284 int fd; local
453 int fd; local
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_write_disk_posix.c265 int fd; member in struct:archive_write_disk
386 static int set_fflags_platform(struct archive_write_disk *, int fd,
415 int oerrno, fd; local
422 fd = __archive_mkstemp(a->tmpname);
423 if (fd == -1)
427 if (fchmod(fd, mode) == -1) {
429 close(fd);
433 return fd;
437 la_opendirat(int fd, const char *path) { argument
457 if (fd !
2466 int fd, ret; local
3435 set_time(int fd, int mode, const char *name, time_t atime, long atime_nsec, time_t mtime, long mtime_nsec) argument
3516 set_time_tru64(int fd, int mode, const char *name, time_t atime, long atime_nsec, time_t mtime, long mtime_nsec, time_t ctime, long ctime_nsec) argument
3539 set_times(struct archive_write_disk *a, int fd, int mode, const char *name, time_t atime, long atime_nanos, time_t birthtime, long birthtime_nanos, time_t mtime, long mtime_nanos, time_t cctime, long ctime_nanos) argument
3864 set_fflags_platform(struct archive_write_disk *a, int fd, const char *name, mode_t mode, unsigned long set, unsigned long clear) argument
3939 set_fflags_platform(struct archive_write_disk *a, int fd, const char *name, mode_t mode, unsigned long set, unsigned long clear) argument
4043 set_fflags_platform(struct archive_write_disk *a, int fd, const char *name, mode_t mode, unsigned long set, unsigned long clear) argument
4272 int fd; local
4320 int fd = -1, ret = ARCHIVE_OK; local
4644 archive_write_disk_set_acls(struct archive *a, int fd, const char *name, struct archive_acl *abstract_acl, __LA_MODE_T mode) argument
[all...]
H A Darchive_read_support_format_mtree.c105 int fd; member in struct:mtree
284 mtree->fd = -1;
1123 if (mtree->fd >= 0) {
1124 close(mtree->fd);
1125 mtree->fd = -1;
1246 mtree->fd = -1;
1254 mtree->fd = open(path, O_RDONLY | O_BINARY | O_CLOEXEC);
1255 __archive_ensure_cloexec_flag(mtree->fd);
1256 if (mtree->fd == -1 &&
1266 if (mtree->fd >
[all...]
H A Darchive_read_disk_posix.c366 static int close_and_restore_time(int fd, struct tree *,
1301 * symlink. (This uses an extra fd, but it can only happen once at the
1485 get_xfer_size(struct tree *t, int fd, const char *path) argument
1489 if (fd >= 0) {
1491 fpathconf(fd, _PC_REC_INCR_XFER_SIZE);
1493 fpathconf(fd, _PC_REC_MAX_XFER_SIZE);
1495 fpathconf(fd, _PC_REC_MIN_XFER_SIZE);
1497 fpathconf(fd, _PC_REC_XFER_ALIGN);
1516 get_xfer_size(struct tree *t, int fd, const char *path) argument
1519 (void)fd; /* UNUSE
1597 int fd = openat(tree_current_dir_fd(t), local
1771 int fd = openat(tree_current_dir_fd(t), local
1893 int fd = openat(tree_current_dir_fd(t), local
2010 close_and_restore_time(int fd, struct tree *t, struct restore_time *rt) argument
2078 tree_dup(int fd) argument
[all...]
H A Darchive_random.c195 int done, fd, i; local
207 fd = open(RANDOMDEV, O_RDONLY | O_CLOEXEC, 0);
208 if (fd >= 0) {
209 if (read(fd, &rdat, KEYSIZE) == KEYSIZE)
211 (void)close(fd);
H A Darchive_private.h161 void __archive_ensure_cloexec_flag(int fd);
H A Darchive_disk_acl_freebsd.c321 set_acl(struct archive *a, int fd, const char *name, argument
533 /* Try restoring the ACL through 'fd' if we can. */
534 if (fd >= 0) {
535 if (acl_set_fd_np(fd, acl, acl_type) == 0)
543 "Failed to set acl on fd: %s", tname);
574 struct archive_entry *entry, int *fd)
582 if (*fd < 0) {
583 accpath = archive_read_disk_entry_setup_path(a, entry, fd);
594 if (*fd >= 0)
595 acl = acl_get_fd_np(*fd, ACL_TYPE_NFS
573 archive_read_disk_entry_setup_acls(struct archive_read_disk *a, struct archive_entry *entry, int *fd) argument
679 archive_write_disk_set_acls(struct archive *a, int fd, const char *name, struct archive_acl *abstract_acl, __LA_MODE_T mode) argument
[all...]
H A Darchive.h615 __LA_DECL int archive_read_data_into_fd(struct archive *, int fd);
974 struct archive_entry *, int /* fd */, const struct stat *);
/freebsd-11-stable/contrib/libarchive/cpio/
H A Dcpio.h79 int fd; member in struct:cpio
H A Dcpio.c124 const char *, int fd);
797 int fd = -1; local
853 fd = open(srcpath, O_RDONLY | O_BINARY);
854 if (fd < 0) {
875 if (r >= ARCHIVE_WARN && archive_entry_size(entry) > 0 && fd >= 0) {
876 bytes_read = read(fd, cpio->buff, (unsigned)cpio->buff_size);
889 bytes_read = read(fd, cpio->buff,
894 fd = restore_time(cpio, entry, srcpath, fd);
899 if (fd >
905 restore_time(struct cpio *cpio, struct archive_entry *entry, const char *name, int fd) argument
[all...]
/freebsd-11-stable/sbin/dhclient/
H A Ddhclient.c352 int ch, fd, quiet = 0, i = 0; local
493 if ((fd = open(path_dhclient_db, O_RDONLY|O_EXLOCK|O_CREAT, 0)) == -1)
497 close(fd);
2784 fork_privchld(int fd, int fd2) argument
2810 pfd[0].fd = fd;
2819 dispatch_imsg(ifi, fd);
/freebsd-11-stable/usr.sbin/bhyve/
H A Dpci_virtio_rnd.c146 int fd; local
156 fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
158 assert(fd >= 0);
162 if (cap_rights_limit(fd, &rights) == -1 && errno != ENOSYS)
169 len = read(fd, &v, sizeof(v));
183 sc->vrsc_fd = fd;
H A Dpci_virtio_console.c277 int s = -1, fd = -1, error = 0; local
294 fd = open(dirname(path), O_RDONLY | O_DIRECTORY);
295 if (fd < 0) {
304 if (bindat(fd, s, (struct sockaddr *)&sun, sun.sun_len) < 0) {
343 if (fd != -1)
344 close(fd);
353 pci_vtcon_sock_accept(int fd __unused, enum ev_type t __unused, void *arg)
375 pci_vtcon_sock_rx(int fd __unused, enum ev_type t __unused, void *arg)
/freebsd-11-stable/libexec/ftpd/
H A Dftpd.c267 FILE *fd; local
424 int *ctl_sock, fd, maxfd = -1, nfds, i; local
492 fd = accept(ctl_sock[i],
495 if (fd == -1) {
503 (void) dup2(fd, s);
504 (void) dup2(fd, STDOUT_FILENO);
505 (void) close(fd);
515 close(fd);
606 if ((fd = fopen(_PATH_NOLOGIN,"r")) != NULL) {
607 while (fgets(line, sizeof(line), fd) !
1097 FILE *fd; local
1371 FILE *fd; local
1772 int fd; local
[all...]
/freebsd-11-stable/usr.bin/ar/
H A Dwrite.c137 if ((obj->fd = open(name, O_RDONLY, 0)) < 0) {
158 if (fstat(obj->fd, &sb) < 0) {
203 MAP_PRIVATE, obj->fd, (off_t)0)) == MAP_FAILED) {
207 if (close(obj->fd) < 0)
214 if (close(obj->fd) < 0)
228 if (obj->fd == -1)
368 * Objects from archive have obj->fd set to -1,
371 obj->fd = -1;
/freebsd-11-stable/usr.sbin/cpucontrol/
H A Dintel.c56 intel_probe(int fd) argument
64 error = ioctl(fd, CPUCTL_CPUID, &idargs);
81 int fd, devfd; local
110 fd = -1;
154 fd = open(path, O_RDONLY, 0);
155 if (fd < 0) {
159 error = fstat(fd, &st);
173 MAP_PRIVATE, fd, 0);
294 if (fd >= 0)
295 close(fd);
[all...]
/freebsd-11-stable/lib/libcasper/libcasper/
H A Dlibcasper_impl.c43 fd_is_valid(int fd) argument
46 return (fcntl(fd, F_GETFL) != -1 || errno != EBADF);
64 errx(1, "Unable to secure fd");
66 errx(1, "Unable to secure fd");
H A Dservice.c329 fd_add(fd_set *fdsp, int maxfd, int fd) argument
332 FD_SET(fd, fdsp);
333 return (fd > maxfd ? fd : maxfd);
347 int fd; local
349 fd = open(_PATH_DEVNULL, O_RDWR);
350 if (fd == -1)
356 if (dup2(fd, STDIN_FILENO) == -1)
358 if (dup2(fd, STDOUT_FILENO) == -1)
360 if (dup2(fd, STDERR_FILEN
370 int fd, maxfd, minfd; local
[all...]
H A Dlibcasper_impl.h44 bool fd_is_valid(int fd);
81 void casper_main_loop(int fd);
/freebsd-11-stable/contrib/sqlite3/
H A Dsqlite3.c33872 int fd; /* File descriptor to close */ member in struct:UnixUnusedFd
34419 robustFchown(int fd, uid_t uid, gid_t gid) argument
34537 int fd; local
34641 lockTrace(int fd, int op, struct flock *p) argument
35227 int fd; /* The file descriptor for pFile */ local
36264 robust_flock(int fd, int op) argument
36653 int fd; /* file desc to assoc this lock with */ member in struct:ByteRangeLockPB2
37273 seekAndWriteFd( int fd, i64 iOff, const void *pBuf, int nBuf, int *piErrno ) argument
37463 full_fsync(int fd, int fullSync, int dataOnly) argument
37561 int fd = -1; local
38546 unixShmMap( sqlite3_file *fd, int iRegion, int szRegion, int bExtend, void volatile **pp ) argument
38721 unixShmLock( sqlite3_file *fd, int ofst, int n, int flags ) argument
38872 unixShmUnmap( sqlite3_file *fd, int deleteFlag ) argument
39083 unixFetch(sqlite3_file *fd, i64 iOff, int nAmt, void **pp) argument
39114 unixUnfetch(sqlite3_file *fd, i64 iOff, void *p) argument
39878 int fd = -1; /* File descriptor returned by open() */ local
40166 int fd; local
40479 int fd, got; local
40872 int fd = -1; local
41013 int fd = -1; local
41305 int fd; local
46131 winShmUnmap( sqlite3_file *fd, int deleteFlag ) argument
46172 winShmLock( sqlite3_file *fd, int ofst, int n, int flags ) argument
46309 winShmMap( sqlite3_file *fd, int iRegion, int szRegion, int isWrite, void volatile **pp ) argument
46610 winFetch(sqlite3_file *fd, i64 iOff, int nAmt, void **pp) argument
46652 winUnfetch(sqlite3_file *fd, i64 iOff, void *p) argument
52807 sqlite3_file *fd; /* File descriptor for database */ member in struct:Pager
53246 read32bits(sqlite3_file *fd, i64 offset, u32 *pRes) argument
53265 write32bits(sqlite3_file *fd, i64 offset, u32 val) argument
55622 sqlite3_file *fd = pPager->fd; local
58581 sqlite3_file *fd = pPager->fd; local
69923 sqlite3_file *fd = sqlite3PagerFile(pBt->pPager); local
167886 sqlite3_file *fd; local
204795 sqlite3_file *fd; local
[all...]
H A Dshell.c2357 WIN32_FIND_DATAW fd; local
2362 memset(&fd, 0, sizeof(WIN32_FIND_DATAW));
2363 hFindFile = FindFirstFileW(zUnicodeName, &fd);
2365 pStatBuf->st_ctime = (time_t)fileTimeToUnixTime(&fd.ftCreationTime);
2366 pStatBuf->st_atime = (time_t)fileTimeToUnixTime(&fd.ftLastAccessTime);
2367 pStatBuf->st_mtime = (time_t)fileTimeToUnixTime(&fd.ftLastWriteTime);
7337 /* Open a write fd on the file. Also load the entire central directory
/freebsd-11-stable/testcode/
H A Dfake_event.c375 c.fd = -1;
458 repinfo.c->fd = -1;
1326 int ATTR_UNUSED(fd), size_t ATTR_UNUSED(bufsize),
1338 int ATTR_UNUSED(fd), int ATTR_UNUSED(writing),
1426 void comm_point_udp_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event),
1432 void comm_point_udp_ancil_callback(int ATTR_UNUSED(fd),
1438 void comm_point_tcp_accept_callback(int ATTR_UNUSED(fd),
1444 void comm_point_tcp_handle_callback(int ATTR_UNUSED(fd),
1450 void comm_timer_callback(int ATTR_UNUSED(fd),
1456 void comm_signal_callback(int ATTR_UNUSED(fd),
[all...]
/freebsd-11-stable/contrib/unbound/validator/
H A Dautotrust.c988 FILE* fd; local
1000 if (!(fd = fopen(nm, "r"))) {
1006 while ( (r=read_multiline(line, sizeof(line), fd, &line_nr)) != 0) {
1010 fclose(fd);
1018 fclose(fd);
1039 fclose(fd);
1046 fclose(fd);

Completed in 784 milliseconds

1234567891011>>