/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | daemon.c | 53 int fd; local 70 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { 71 dup2(fd, STDIN_FILENO); 72 dup2(fd, STDOUT_FILENO); 73 dup2(fd, STDERR_FILENO); 74 if (fd > 2) 75 close (fd);
|
H A D | eread.c | 43 eread (int fd, void *buf, size_t nbytes) argument 47 ret = net_read (fd, buf, nbytes);
|
H A D | ewrite.c | 43 ewrite (int fd, const void *buf, size_t nbytes) argument 47 ret = net_write (fd, buf, nbytes);
|
H A D | fchown.c | 39 fchown(int fd, uid_t owner, gid_t group) argument
|
/freebsd-11-stable/tools/regression/nfsmmap/test2/ |
H A D | test2.c | 8 int fd, fd2; local 17 fd = open("test2.data", O_RDWR|O_CREAT, 0666); 18 if (fd < 0) 20 if (write(fd, zeros, sizeof zeros) < 0) 22 close(fd); 25 fd = open("test2.data", O_RDWR); 26 if (fd < 0) 28 if (lseek(fd, 600, SEEK_SET) < 0) 31 if (write(fd, ones, sizeof ones) < 0) 34 addr = mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, [all...] |
/freebsd-11-stable/usr.bin/mkimg/ |
H A D | image.h | 34 int image_copyin(lba_t blk, int fd, uint64_t *sizep); 35 int image_copyout(int fd); 36 int image_copyout_done(int fd); 37 int image_copyout_region(int fd, lba_t blk, lba_t size); 38 int image_copyout_zeroes(int fd, size_t count);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_fd.h | 41 void FdAcquire(ThreadState *thr, uptr pc, int fd); 42 void FdRelease(ThreadState *thr, uptr pc, int fd); 43 void FdAccess(ThreadState *thr, uptr pc, int fd); 44 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true); 45 void FdFileCreate(ThreadState *thr, uptr pc, int fd); 48 void FdEventCreate(ThreadState *thr, uptr pc, int fd); 49 void FdSignalCreate(ThreadState *thr, uptr pc, int fd); 50 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd); 51 void FdPollCreate(ThreadState *thr, uptr pc, int fd); 52 void FdSocketCreate(ThreadState *thr, uptr pc, int fd); [all...] |
/freebsd-11-stable/tools/regression/ufs/uprintf/ |
H A D | ufs_uprintf.c | 72 int fd, i; local 74 fd = open(BLOCKS_FILENAME, O_CREAT | O_TRUNC | O_RDWR, 0600); 75 if (fd < 0) 85 len = write(fd, block, BLOCKSIZE); 91 close(fd); 99 close(fd); 109 len = write(fd, block, BLOCKSIZE); 112 close(fd); 118 close(fd); 132 int fd, local [all...] |
/freebsd-11-stable/tests/sys/file/ |
H A D | closefrom_test.c | 134 int fd; local 136 fd = open(_PATH_DEVNULL, O_RDONLY); 137 if (fd < 0) 139 return (fd); 147 int fd, i, start; local 151 /* We better start up with fd's 0, 1, and 2 open. */ 158 fd = highest_fd(); 159 if (start != fd) 160 fail("highest_fd", "bad descriptor %d != %d", start, fd); 163 /* Try to use closefrom() for just closing fd [all...] |
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | connecttcp.c | 20 int fd; local 38 fd = socket(AF_INET, SOCK_STREAM, 0); 39 if (fd == -1) 42 if (connect(fd, (struct sockaddr *)&sin, sizeof(sin)) == -1) { 43 close(fd); 47 return fd;
|
/freebsd-11-stable/lib/libgeom/ |
H A D | geom_util.c | 54 int fd; local 56 path = g_device_path_open(name, &fd, dowrite); 59 if (fd == -1) 61 return (fd); 65 g_close(int fd) argument 68 return (close(fd)); 72 g_ioctl_arg(int fd, unsigned long cmd, void *arg) argument 77 ret = ioctl(fd, cmd, arg); 79 ret = ioctl(fd, cmd); 84 g_ioctl(int fd, unsigne argument 94 g_mediasize(int fd) argument 107 g_sectorsize(int fd) argument 120 g_stripesize(int fd) argument 133 g_stripeoffset(int fd) argument 146 g_providername(int fd) argument 159 g_flush(int fd) argument 169 g_delete(int fd, off_t offset, off_t length) argument 182 g_get_ident(int fd, char *ident, size_t size) argument 205 int fd; local 225 int error, fd; local 279 int fd; local [all...] |
/freebsd-11-stable/sys/contrib/ncsw/inc/Peripherals/ |
H A D | dpaa_ext.h | 98 #define DPAA_FD_GET_DD(fd) ((((t_DpaaFD *)fd)->id & DPAA_FD_DD_MASK) >> (31-1)) /**< Macro to get FD DD field */ 99 #define DPAA_FD_GET_PID(fd) (((((t_DpaaFD *)fd)->id & DPAA_FD_PID_MASK) >> (31-7)) | \ 100 ((((t_DpaaFD *)fd)->id & DPAA_FD_ELIODN_MASK) >> (31-19-6))) /**< Macro to get FD PID field */ 101 #define DPAA_FD_GET_BPID(fd) ((((t_DpaaFD *)fd)->id & DPAA_FD_BPID_MASK) >> (31-15)) /**< Macro to get FD BPID field */ 102 #define DPAA_FD_GET_ADDRH(fd) (((t_DpaaFD *)fd)->id & DPAA_FD_ADDRH_MASK) /**< Macro to get FD ADDRH field */ 103 #define DPAA_FD_GET_ADDRL(fd) ((t_DpaaF [all...] |
/freebsd-11-stable/contrib/ntp/include/ |
H A D | libntp.h | 9 * if we have no idea about the max fd value set up things 15 extern void make_socket_nonblocking( SOCKET fd ); 16 extern SOCKET move_fd( SOCKET fd );
|
/freebsd-11-stable/contrib/gcc/ |
H A D | hosthooks.h | 31 void * (*gt_pch_get_address) (size_t size, int fd); 37 int (*gt_pch_use_address) (void *addr, size_t size, int fd, size_t offset);
|
/freebsd-11-stable/contrib/gcc/config/ |
H A D | host-darwin.h | 21 extern void * darwin_gt_pch_get_address (size_t sz, int fd); 22 extern int darwin_gt_pch_use_address (void *addr, size_t sz, int fd,
|
/freebsd-11-stable/lib/libc/sys/ |
H A D | fsync.c | 44 fsync(int fd) argument 47 return (((int (*)(int))__libc_interposing[INTERPOS_fsync])(fd));
|
H A D | fdatasync.c | 42 fdatasync(int fd) argument 45 return (((int (*)(int))__libc_interposing[INTERPOS_fdatasync])(fd));
|
/freebsd-11-stable/crypto/heimdal/lib/krb5/ |
H A D | net_read.c | 42 krb5_socket_t fd = *((krb5_socket_t *)p_fd); local 43 return net_read(fd, buf, len);
|
/freebsd-11-stable/usr.sbin/mfiutil/ |
H A D | mfi_properties.c | 51 mfi_ctrl_get_properties(int fd, struct mfi_ctrl_props *info) argument 54 return (mfi_dcmd_command(fd, MFI_DCMD_CTRL_GET_PROPS, info, 59 mfi_ctrl_set_properties(int fd, struct mfi_ctrl_props *info) argument 62 return (mfi_dcmd_command(fd, MFI_DCMD_CTRL_SET_PROPS, info, 73 int error, fd; local 81 fd = mfi_open(mfi_unit, O_RDWR); 82 if (fd < 0) { 88 error = mfi_ctrl_get_properties(fd, &ctrl_props); 92 close(fd); 100 error = mfi_ctrl_set_properties(fd, 125 int error, fd; local [all...] |
/freebsd-11-stable/contrib/netbsd-tests/fs/psshfs/ |
H A D | h_have_puffs.c | 37 int exitcode, fd; local 39 fd = open("/dev/puffs", O_RDWR); 40 if (fd != -1) { 42 close(fd);
|
/freebsd-11-stable/contrib/file/src/ |
H A D | pread.c | 9 pread(int fd, void *buf, size_t len, off_t off) { argument 13 if ((old = lseek(fd, off, SEEK_SET)) == -1) 16 if ((rv = read(fd, buf, len)) == -1) 19 if (lseek(fd, old, SEEK_SET) == -1)
|
/freebsd-11-stable/contrib/xz/src/common/ |
H A D | tuklib_open_stdxxx.c | 38 const int fd = open("/dev/null", O_NOCTTY 41 if (fd != i) { 42 if (fd != -1) 43 (void)close(fd);
|
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_printf.c | 38 static void pchar(int fd, char c); 39 static void pstr(int fd, const char *s); 53 _thread_printf(int fd, const char *fmt, ...) argument 58 _thread_vprintf(fd, fmt, ap); 63 _thread_vprintf(int fd, const char *fmt, va_list ap) argument 85 pchar(fd, va_arg(ap, int)); 88 pstr(fd, va_arg(ap, char *)); 94 pstr(fd, "0x"); 100 pstr(fd, "0x"); 108 pchar(fd, ' 135 pchar(int fd, char c) argument 145 pstr(int fd, const char *s) argument [all...] |
/freebsd-11-stable/lib/libc/gen/ |
H A D | fdevname.c | 37 fdevname_r(int fd, char *buf, int len) argument 44 if (_ioctl(fd, FIODGNAME, &fgn) == -1) 50 fdevname(int fd) argument 54 return (fdevname_r(fd, buf, sizeof(buf)));
|
/freebsd-11-stable/stand/libsa/ |
H A D | ioctl.c | 69 ioctl(fd, cmd, arg) 70 int fd; 74 struct open_file *f = &files[fd]; 76 if ((unsigned)fd >= SOPEN_MAX || f->f_flags == 0) {
|