/freebsd-10.0-release/lib/libulog/ |
H A D | utempter.c | 36 utempter_add_record(int fd, const char *host) argument 39 ulog_login_pseudo(fd, host); 40 last_fd = fd; 56 utempter_remove_record(int fd) argument 59 ulog_logout_pseudo(fd); 60 if (last_fd == fd) 66 addToUtmp(const char *pty __unused, const char *host, int fd) argument 69 utempter_add_record(fd, host); 80 removeLineFromUtmp(const char *pty __unused, int fd) argument 83 utempter_remove_record(fd); [all...] |
/freebsd-10.0-release/usr.sbin/vidcontrol/ |
H A D | decode.h | 3 int decode(FILE *fd, char *buffer, int len);
|
/freebsd-10.0-release/contrib/sendmail/include/sm/ |
H A D | fdset.h | 16 ** Note: SM_FD_OK_SELECT(fd) requires that ValidSocket(fd) has been checked 20 # define SM_FD_SET(fd, pfdset) FD_SET(fd, pfdset) 21 # define SM_FD_ISSET(fd, pfdset) FD_ISSET(fd, pfdset) 23 # define SM_FD_OK_SELECT(fd) (FD_SETSIZE <= 0 || (fd) < FD_SETSIZE)
|
/freebsd-10.0-release/crypto/openssh/openbsd-compat/ |
H A D | daemon.c | 54 int fd; local 71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { 72 (void)dup2(fd, STDIN_FILENO); 73 (void)dup2(fd, STDOUT_FILENO); 74 (void)dup2(fd, STDERR_FILENO); 75 if (fd > 2) 76 (void)close (fd);
|
/freebsd-10.0-release/lib/libutil/ |
H A D | login_tty.c | 47 login_tty(int fd) argument 54 if (tcsetsid(fd, s) == -1) 56 (void) dup2(fd, 0); 57 (void) dup2(fd, 1); 58 (void) dup2(fd, 2); 59 if (fd > 2) 60 (void) close(fd);
|
/freebsd-10.0-release/tools/regression/capsicum/syscalls/ |
H A D | cap_fcntls_limit.c | 48 fcntl_tests_0(int fd) argument 53 CHECK(cap_fcntls_get(fd, &fcntlrights) == 0); 56 CHECK(fcntl(fd, F_GETFD) == 0); 57 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 58 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 59 CHECK(fcntl(fd, F_SETFD, 0) == 0); 60 CHECK(fcntl(fd, F_GETFD) == 0); 62 CHECK(fcntl(fd, F_GETFL) == O_RDWR); 63 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0); 64 CHECK(fcntl(fd, F_GETF 157 fcntl_tests_1(int fd) argument 206 fcntl_tests_2(int fd) argument 252 int fd; local 278 int fd; local 407 int fd, pfd, sp[2]; local [all...] |
H A D | cap_ioctls_limit.c | 50 ioctl_tests_0(int fd) argument 54 CHECK(cap_ioctls_get(fd, NULL, 0) == CAP_IOCTLS_ALL); 56 CHECK(fcntl(fd, F_GETFD) == 0); 57 CHECK(ioctl(fd, FIOCLEX) == 0); 58 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 59 CHECK(ioctl(fd, FIONCLEX) == 0); 60 CHECK(fcntl(fd, F_GETFD) == 0); 64 CHECK(cap_ioctls_limit(fd, cmds, nitems(cmds)) == 0); 66 CHECK(cap_ioctls_get(fd, cmds, nitems(cmds)) == nitems(cmds)); 71 CHECK(cap_ioctls_limit(fd, cmd 131 ioctl_tests_1(int fd) argument 173 ioctl_tests_2(int fd) argument 211 int fd; local 240 int fd; local 311 int fd, pfd, sp[2]; local [all...] |
/freebsd-10.0-release/contrib/openbsm/compat/ |
H A D | closefrom.h | 40 int error, fd, maxfd; local 47 for (fd = lowfd; fd <= maxfd; fd++) 48 (void)close(fd);
|
/freebsd-10.0-release/lib/libstand/ |
H A D | stat.c | 44 int fd, rv; local 46 fd = open(str, O_RDONLY); 47 if (fd < 0) 49 rv = fstat(fd, sb); 50 (void)close(fd);
|
H A D | fstat.c | 40 fstat(fd, sb) 41 int fd; 44 struct open_file *f = &files[fd]; 46 if ((unsigned)fd >= SOPEN_MAX || f->f_flags == 0) {
|
/freebsd-10.0-release/usr.sbin/pciconf/ |
H A D | pciconf.h | 36 void list_caps(int fd, struct pci_conf *p); 37 void list_errors(int fd, struct pci_conf *p); 38 uint8_t pci_find_cap(int fd, struct pci_conf *p, uint8_t id); 39 uint16_t pcie_find_cap(int fd, struct pci_conf *p, uint16_t id); 40 uint32_t read_config(int fd, struct pcisel *sel, long reg, int width);
|
/freebsd-10.0-release/tools/regression/posixshm/ |
H A D | posixshm.c | 54 int fd; local 56 fd = shm_open(path, flags, mode); 57 if (fd >= 0) { 59 close(fd); 88 * Open the test object and write '1' to the first byte. Returns valid fd 95 int fd; local 97 fd = shm_open(TEST_PATH, O_CREAT | O_EXCL | O_RDWR, 0777); 98 if (fd < 0 && errno == EEXIST) { 103 fd = shm_open(TEST_PATH, O_CREAT | O_EXCL | O_RDWR, 0777); 105 if (fd < 141 int fd; local 183 int fd; local 223 int fd; local 257 int fd; local 302 int fd; local 354 int fd; local 374 int fd; local 451 int fd, status; local [all...] |
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_compat.h | 36 int zcmd_ioctl(int fd, int request, zfs_cmd_t *zc); 38 #define ioctl(fd, ioc, zc) zcmd_ioctl((fd), (ioc), (zc))
|
/freebsd-10.0-release/tools/regression/nfsmmap/test1/ |
H A D | test1.c | 8 int fd, fd2; local 17 fd = open("test1.data", O_RDWR|O_CREAT, 0666); 18 if (fd < 0) 20 if (write(fd, zeros, sizeof zeros) < 0) 22 close(fd); 25 fd = open("test1.data", O_RDWR); 26 if (fd < 0) 28 if (lseek(fd, 600, SEEK_SET) < 0) 31 if (write(fd, ones, sizeof ones) < 0) 34 fsync(fd); [all...] |
/freebsd-10.0-release/tools/regression/poll/ |
H A D | pipeselect.c | 20 #define SETUP(fd, rfds, tv) do { \ 22 FD_SET((fd), &(rfds)); \ 60 child(int fd, int num) argument 68 fd = open(FIFONAME, O_RDONLY | O_NONBLOCK); 69 if (fd < 0) 72 if (fd >= FD_SETSIZE) 73 errx(1, "fd = %d too large for select()", fd); 76 SETUP(fd, rfds, tv); 77 if (select(fd 218 parent(int fd) argument 276 int fd[2], num; local [all...] |
/freebsd-10.0-release/contrib/dialog/ |
H A D | prgbox.c | 39 int fd[2]; local 43 if ((*type == 'r' || *type != 'w') && pipe(fd) == 0) { 46 (void) close(fd[0]); 47 (void) close(fd[1]); 51 if (fd[1] != STDOUT_FILENO) { 52 (void) dup2(fd[1], STDOUT_FILENO); 53 (void) close(fd[1]); 56 (void) close(fd[0]); 58 if (fd[0] != STDIN_FILENO) { 59 (void) dup2(fd[ [all...] |
/freebsd-10.0-release/contrib/diff/lib/ |
H A D | setmode.h | 25 # define set_binary_mode(fd, mode) true
|
/freebsd-10.0-release/crypto/heimdal/lib/roken/ |
H A D | closefrom.c | 46 closefrom(int fd) argument 53 for (; fd <= num; fd++) 54 close(fd);
|
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);
|
/freebsd-10.0-release/lib/libc/sys/ |
H A D | ftruncate.c | 46 ftruncate(fd, length) 47 int fd; 52 return(__sys_ftruncate(fd, length)); 54 return(__sys_freebsd6_ftruncate(fd, 0, length));
|
/freebsd-10.0-release/share/syscons/scrnmaps/ |
H A D | mkscrfil.c | 37 FILE *fd; local 40 if ((fd = fopen(argv[1], "w")) == NULL) { 44 fwrite(&scrmap, sizeof(scrmap_t), 1, fd); 45 fclose(fd);
|
/freebsd-10.0-release/usr.bin/tftp/ |
H A D | tftp.h | 33 void recvfile(int peer, char *port, int fd, char *name, char *mode); 34 void xmitfile(int peer, char *port, int fd, char *name, char *mode);
|
/freebsd-10.0-release/contrib/ipfilter/lib/ |
H A D | kvatoname.c | 22 int fd; local 26 fd = -1; 29 fd = open(IPL_NAME, O_RDONLY); 30 if (fd == -1) 33 (void) (*iocfunc)(fd, SIOCFUNCL, &res); 34 if (fd >= 0) 35 close(fd);
|
H A D | nametokva.c | 21 int fd; local 25 fd = -1; 28 fd = open(IPL_NAME, O_RDONLY); 29 if (fd == -1) 32 (void) (*iocfunc)(fd, SIOCFUNCL, &res); 33 if (fd >= 0) 34 close(fd);
|
/freebsd-10.0-release/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...] |