/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | readdir.c | 34 readdirfd(int fd) argument 37 struct open_file *f = &files[fd]; 39 if ((unsigned)fd >= SOPEN_MAX || !(f->f_flags & F_READ)) {
|
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 | close.c | 69 close(int fd) argument 71 struct open_file *f = &files[fd]; 74 if ((unsigned)fd >= SOPEN_MAX || f->f_flags == 0) {
|
/illumos-gate/usr/src/test/os-tests/tests/poll/ |
H A D | epoll_test.c | 28 int fd, flags; local 30 fd = epoll_create1(0); 31 assert(fd >= 0); 33 flags = fcntl(fd, F_GETFD); 35 (void) close(fd); 38 fd = epoll_create1(EPOLL_CLOEXEC); 39 assert(fd >= 0); 41 flags = fcntl(fd, F_GETFD); 43 (void) close(fd); 45 fd [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
H A D | rc_io.h | 19 int fd; member in struct:krb5_rc_iostuff
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | getlabel.c | 63 fgetlabel(int fd, bslabel_t *label) argument 65 return (syscall(SYS_labelsys, TSOL_FGETLABEL, fd, label));
|
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_close.c | 42 _tx_close(int fd, int api_semantics) argument 47 if (_t_checkfd(fd, 0, api_semantics) == NULL) 52 if (_t_delete_tilink(fd) < 0) { 64 (void) close(fd);
|
H A D | t_sync.c | 41 _tx_sync(int fd, int api_semantics) argument 58 if ((tiptr = _t_checkfd(fd, force_sync, api_semantics)) == NULL)
|
/illumos-gate/usr/src/lib/libbc/libc/gen/4.2/ |
H A D | nlist.c | 39 int fd; local 42 fd = open(name, O_RDONLY, 0); 43 e = _nlist(fd, list); 44 close(fd);
|
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | truncate.c | 39 int fd, ret = 0; local 47 if ((fd = open(path, O_WRONLY)) == -1) { 51 if (ftruncate(fd, length) == -1) { 52 close(fd); 55 close(fd);
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | _creat.c | 39 int fd; local 47 if ((fd = _syscall(SYS_openat, AT_FDCWD, 49 fd_add(fd, UTMPX_MAGIC_FLAG); 50 return (fd); 54 if ((fd = _syscall(SYS_openat, AT_FDCWD, 56 fd_add(fd, UTMPX_MAGIC_FLAG); 57 return (fd);
|
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | truncate.c | 38 int fd, ret = 0; local 44 if ((fd = open(path, O_WRONLY)) == -1) { 48 if (ftruncate(fd, length) == -1) { 49 close(fd); 52 close(fd);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | closedir.c | 52 int fd = dirp->dd_fd; local 57 return (close(fd));
|
H A D | daemon.c | 45 int retv, fd; local 77 if ((fd = open("/dev/null", O_RDWR)) == -1) 86 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) { 87 (void) close(fd); 90 if ((fd != STDOUT_FILENO) && (dup2(fd, STDOUT_FILENO) < 0)) { 91 (void) close(fd); 94 if ((fd != STDERR_FILENO) && (dup2(fd, STDERR_FILEN [all...] |
H A D | opendir.c | 51 int fd; local 54 if ((fd = openat(AT_FDCWD, filename, 57 if ((dirp = fdopendir(fd)) == NULL) 58 (void) close(fd);
|
H A D | tcgetsid.c | 41 tcgetsid(int fd) argument 45 if ((ioctl(fd, TIOCGSID, &ttysid)) < 0 ||
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | getpeerucred.c | 39 getpeerucred(int fd, ucred_t **ucp) argument 49 if (syscall(SYS_ucredsys, UCREDSYS_GETPEERUCRED, fd, uc) != 0) {
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | rawput.c | 47 _elf_read(int fd, off_t off, size_t fsz) argument 54 if (fd == -1) { 59 if (lseek(fd, off, 0) != off) { 68 if (read(fd, p, fsz) != fsz) {
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | proc.c | 44 int fd; local 48 fd = open("/proc/self/psinfo", O_RDONLY); 49 if (fd < 0) 52 bytes = read(fd, &psinfo, sizeof (psinfo)); 58 (void) close(fd);
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/exec/ |
H A D | mmap_exec.c | 43 int fd; local 55 if ((fd = open(argv[1], O_RDONLY)) < 0) { 59 if (fstat(fd, &statbuf) < 0) { 65 PROT_EXEC, MAP_SHARED, fd, 0) == MAP_FAILED) {
|
/illumos-gate/usr/src/cmd/lp/lib/class/ |
H A D | putclass.c | 50 int fd; local 69 if ((fd = open_locked(file, "w", MODE_READ)) < 0) { 76 fdprintlist(fd, clsbufp->members); 78 close(fd); 81 close(fd);
|
/illumos-gate/usr/src/cmd/lp/lib/printers/ |
H A D | default.c | 56 int fd; local 61 if ((fd = open_locked(Lp_Default, "w", MODE_READ)) < 0) 64 fdprintf(fd, "%s\n", dflt); 66 close(fd);
|
/illumos-gate/usr/src/cmd/lp/lib/users/ |
H A D | storepri.c | 69 output_tbl(int fd, struct user_priority *ppri_tbl) argument 73 fdprintf(fd, "%d\n%d:\n", ppri_tbl->deflt, ppri_tbl->deflt_limit); 78 fdprintf(fd, "%d:", limit); 79 fdprintlist(fd, ppri_tbl->users[limit - PRI_MIN]);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | net_read.c | 31 * krb5_net_read() reads from the file descriptor "fd" to the buffer 33 * read anymore from "fd". It returns the number of bytes read 42 krb5_net_read(krb5_context context, int fd, register char *buf, register int len) argument 47 cc = SOCKET_READ((SOCKET)fd, buf, len);
|
H A D | net_write.c | 32 * descriptor "fd". It returns the number of bytes written or 41 krb5_net_write(krb5_context context, int fd, register const char *buf, int len) argument 46 cc = SOCKET_WRITE((SOCKET)fd, buf, wrlen);
|