/freebsd-11-stable/tools/regression/priv/ |
H A D | priv_vfs_fhopen.c | 69 int errno_saved, error, fd; local 71 fd = fhopen(&fh, O_RDONLY); 72 if (fd >= 0) { 75 close(fd);
|
/freebsd-11-stable/tools/tools/net80211/w00t/libw00t/ |
H A D | w00t.h | 39 int inject(int fd, void *buf, int len); 40 int inject_params(int fd, void *buf, int len, 42 int sniff(int fd, void *buf, int len); 45 int send_ack(int fd, char *mac);
|
/freebsd-11-stable/tools/tools/tionxcl/ |
H A D | tionxcl.c | 51 int fd; local 87 fd = open(ttyname, O_RDWR); 88 if (fd == -1) { 95 if (0 != ioctl(fd, TIOCNXCL, 0))
|
/freebsd-11-stable/sys/dev/firewire/ |
H A D | if_fwevar.h | 41 /* XXX this must be the first for fd.post_explore() */ 42 struct firewire_dev_comm fd; member in struct:fwe_softc
|
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | printhash_live.c | 13 printhash_live(hp, fd, name, opts, fields) 15 int fd; 53 while (!last && (ioctl(fd, SIOCLOOKUPITER, &obj) == 0)) { 62 ipferror(fd, "walking hash nodes");
|
/freebsd-11-stable/contrib/netbsd-tests/net/if/ |
H A D | t_compat.c | 52 int fd, ifnum; local 71 RL(fd = rump_sys_socket(AF_INET, SOCK_DGRAM, 0)); 72 RL(rump_sys_ioctl(fd, OOSIOCGIFBRDADDR, &ifreq)); 77 rump_sys_close(fd);
|
/freebsd-11-stable/crypto/openssh/regress/unittests/sshkey/ |
H A D | common.c | 42 int fd; local 46 ASSERT_INT_NE(fd = open(test_data_file(name), O_RDONLY), -1); 47 ASSERT_INT_EQ(sshkey_load_file(fd, ret), 0); 48 close(fd);
|
/freebsd-11-stable/lib/libc/tests/gen/ |
H A D | realpath2_test.c | 75 int fd; local 81 fd = open("aaa", O_RDONLY | O_CREAT, 0600); 83 ATF_REQUIRE(fd >= 0); 84 ATF_REQUIRE(close(fd) == 0);
|
/freebsd-11-stable/lib/libcapsicum/ |
H A D | capsicum_helpers.h | 48 caph_limit_stream(int fd, int flags) argument 63 if (cap_rights_limit(fd, &rights) < 0 && errno != ENOSYS) { 69 if (cap_ioctls_limit(fd, cmds, nitems(cmds)) < 0 && errno != ENOSYS) 72 if (cap_fcntls_limit(fd, CAP_FCNTL_GETFL) < 0 && errno != ENOSYS)
|
/freebsd-11-stable/contrib/netbsd-tests/fs/nfs/ |
H A D | t_mountd.c | 60 int fd, fail; local 66 fd = rump_sys_open("file", O_RDWR | O_CREAT); 67 if (fd == -1) { 73 rump_sys_close(fd);
|
/freebsd-11-stable/contrib/netbsd-tests/fs/puffs/ |
H A D | t_io.c | 41 int fd; local 46 RL(fd = rump_sys_open("afile", O_CREAT | O_RDWR, 0755)); 47 RL(rump_sys_write(fd, data, sizeof(data))); 48 rump_sys_close(fd);
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/c063/ |
H A D | t_fexecve.c | 62 int fd; local 64 if ((fd = open("/usr/bin/touch", O_RDONLY, 0)) == -1) 67 if (fexecve(fd, __UNCONST(argv), __UNCONST(envp)) == -1) { 73 (void)close(fd);
|
/freebsd-11-stable/sbin/nvmecontrol/ |
H A D | nvmecontrol.h | 83 int open_dev(const char *str, int *fd, int show_error, int exit_on_error); 85 void read_controller_data(int fd, struct nvme_controller_data *cdata); 86 void read_namespace_data(int fd, int nsid, struct nvme_namespace_data *nsdata); 88 void read_logpage(int fd, uint8_t log_page, int nsid, void *payload,
|
/freebsd-11-stable/stand/efi/loader/ |
H A D | loader_efi.h | 42 ssize_t efi_readin(const int fd, vm_offset_t dest, const size_t len);
|
/freebsd-11-stable/stand/libsa/ |
H A D | pager.c | 128 * Display from (fd). 135 int fd; local 138 if ((fd = open(fname, O_RDONLY)) == -1) { 144 hmuch = read(fd, buf, sizeof(buf) - 1); 159 close(fd);
|
/freebsd-11-stable/usr.sbin/fifolog/lib/ |
H A D | libfifolog_int.h | 37 int fd; member in struct:fifolog_file
|
/freebsd-11-stable/usr.sbin/vidcontrol/ |
H A D | decode.c | 40 int decode(FILE *fd, char *buffer, int len) argument 50 if (!fgets(temp, sizeof(temp), fd)) 56 if (!fgets(p = temp, sizeof(temp), fd)) 98 if (!fgets(temp, sizeof(temp), fd) || strcmp(temp, "end\n"))
|
/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | mevent.h | 43 struct mevent *mevent_add(int fd, enum ev_type type,
|
/freebsd-11-stable/usr.sbin/kgzip/ |
H A D | kgzip.h | 39 int fd; /* File descriptor */ member in struct:iodesc
|
/freebsd-11-stable/usr.sbin/pw/ |
H A D | pw_log.c | 51 int fd, i, rlen; local 60 fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600); 61 if (fd == -1) { 64 logfile = fdopen(fd, "a");
|
/freebsd-11-stable/usr.bin/mktemp/ |
H A D | mktemp.c | 56 int c, fd, ret; local 131 fd = mkstemp(name); 132 if (fd < 0) { 137 close(fd);
|
/freebsd-11-stable/usr.sbin/smbmsg/ |
H A D | smbmsg.c | 56 static int fd; /* file descriptor for /dev/smbX */ variable 117 if (ioctl(fd, SMB_RECVB, &c) != -1) 119 if (ioctl(fd, SMB_QUICK_WRITE, &c) != -1) 150 return (ioctl(fd, SMB_QUICK_WRITE, &c)); 153 return (ioctl(fd, SMB_QUICK_READ, &c)); 156 if (ioctl(fd, SMB_RECVB, &c) == -1) 164 return (ioctl(fd, SMB_SENDB, &c)); 170 if (ioctl(fd, SMB_READB, &c) == -1) 178 return (ioctl(fd, SMB_WRITEB, &c)); 181 if (ioctl(fd, SMB_READ [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_ftok.c | 66 int fd; local 68 fd = open(path, O_RDONLY | O_CREAT, 0600); 70 ATF_REQUIRE(fd >= 0); 71 (void)close(fd);
|
/freebsd-11-stable/contrib/wpa/src/l2_packet/ |
H A D | l2_packet_privsep.c | 19 int fd; /* UNIX domain socket for privsep access */ member in struct:l2_packet_data 46 if (sendmsg(l2->fd, &msg, 0) < 0) { 84 if (sendmsg(l2->fd, &msg, 0) < 0) { 165 l2->fd = socket(PF_UNIX, SOCK_DGRAM, 0); 166 if (l2->fd < 0) { 177 if (bind(l2->fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 192 FD_SET(l2->fd, &rfds); 195 res = select(l2->fd + 1, &rfds, NULL, NULL, &tv); 201 if (FD_ISSET(l2->fd, &rfds)) { 202 res = recv(l2->fd, repl [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/API/ |
H A D | SBLaunchInfo.h | 121 bool AddCloseFileAction(int fd); 123 bool AddDuplicateFileAction(int fd, int dup_fd); 125 bool AddOpenFileAction(int fd, const char *path, bool read, bool write); 127 bool AddSuppressFileAction(int fd, bool read, bool write);
|