/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | write_msg.c | 37 int fd = *( (int *) fdp); local 40 if (krb5_net_write(context, fd, (char *)&len, 4) < 0) { 43 if (outbuf->length && (krb5_net_write(context, fd, outbuf->data, outbuf->length) < 0)) {
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dlink_init.c | 72 int fd; local 74 if ((fd = open64(devname, O_RDWR)) < 0) { 79 if ((gen = ioctl(fd, DTRACEHIOC_REMOVE, gen)) == -1) 84 (void) close(fd);
|
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_sndrel.c | 49 _tx_sndrel(int fd, int api_semantics) argument 55 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 77 if (_t_look_locked(fd, tiptr, 0, 97 if (putmsg(fd, &ctlbuf, NULL, 0) < 0) {
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | mkstemp.c | 16 int fd, i; local 29 while ((fd = open(as, O_CREAT|O_EXCL|O_RDWR, 0600)) == -1) { 34 return (fd);
|
H A D | ttyslot.c | 54 int fd; local 67 if ((fd = _syscall(SYS_openat, 74 while (_read(fd, &utx, sizeof (struct utmpx)) > 0) { 77 _syscall(SYS_close, fd); 81 _syscall(SYS_close, fd);
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | lseek.c | 36 lseek(int fd, off_t offset, int whence) argument 44 if (fd_get(fd) != -1) { 47 if ((ret = _syscall(SYS_lseek, fd, off, whence)) != -1) 52 return (_syscall(SYS_lseek, fd, offset, whence));
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | mkfifo.c | 39 mkfifoat(int fd, const char *path, mode_t mode) argument 43 return (mknodat(fd, path, mode, 0));
|
H A D | posix_fadvise.c | 49 posix_fadvise(int fd, off_t offset, off_t len, int advice) argument 66 if (fstat64(fd, &statb) != 0) 77 posix_fadvise64(int fd, off64_t offset, off64_t len, int advice) argument 94 if (fstat64(fd, &statb) != 0)
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | access.c | 33 faccessat(int fd, const char *fname, int amode, int flag) argument 35 return (syscall(SYS_faccessat, fd, fname, amode, flag));
|
H A D | mkdir.c | 32 mkdirat(int fd, const char *path, mode_t mode) argument 34 return (syscall(SYS_mkdirat, fd, path, mode));
|
H A D | mknod.c | 32 mknodat(int fd, const char *path, mode_t mode, dev_t dev) argument 34 return (syscall(SYS_mknodat, fd, path, mode, dev));
|
H A D | symlink.c | 32 symlinkat(const char *path1, int fd, const char *path2) argument 34 return (syscall(SYS_symlinkat, path1, fd, path2));
|
H A D | signalfd.c | 23 signalfd(int fd, const sigset_t *mask, int flags) argument 25 int origfd = fd; 27 if (fd == -1) { 41 if ((fd = open("/dev/signalfd", oflags)) < 0) 45 if (ioctl(fd, SIGNALFDIOC_MASK, mask) != 0) { 48 (void) close(fd); 53 * it's because it's not a valid fd or not a sigfd. ioctl 59 return (fd);
|
/illumos-gate/usr/src/cmd/rcap/common/ |
H A D | rcapd_stat.c | 42 int fd; local 47 if ((fd = open(file, O_RDONLY)) < 0) 50 if (read(fd, &hdr, sizeof (hdr)) != sizeof (hdr)) { 51 (void) close(fd); 54 (void) close(fd);
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | createmf.c | 41 int fd; local 50 if ((fd = creat(file, MFMODE)) == -1) 53 close(fd);
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | fflush.c | 51 int fd; local 67 SM_CONVERT_TIME(fp, fd, timeout, &to); 97 int fd; local 116 if ((fd = sm_io_getinfo(fp, SM_IO_WHAT_FD, NULL)) == -1) 118 /* can't get an fd, likely internal 'fake' fp */ 120 fd = -1; 142 if (IS_IO_ERROR(fd, t, *timeout)) 149 SM_IO_WR_TIMEOUT(fp, fd, *timeout);
|
H A D | setvbuf.c | 59 int fd; local 83 SM_CONVERT_TIME(fp, fd, timeout, &to); 103 ** a `tty flag' to suggest that we check isatty(fd), but we do not
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | lintsup.c | 48 elfedit32_init_obj_state(const char *file, int fd, Elf *elf) argument 54 elfedit64_init_obj_state(const char *file, int fd, Elf *elf) argument
|
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/ |
H A D | bpb.c | 170 readBPB(int fd) argument 177 if (lseek64(fd, PartitionOffset, SEEK_SET) < 0) { 180 (void) close(fd); 186 if (read(fd, ubpb.buf, BPSEC) < BPSEC) { 189 (void) close(fd); 229 (void) close(fd);
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/libzfs/ |
H A D | many_fds.c | 56 int fd = open("/dev/null", O_RDONLY); local 57 if (fd == -1) {
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | fdsync.c | 52 fdsync(int fd, int flag) argument 58 if ((fp = getf(fd)) != NULL) { 69 releasef(fd);
|
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfsetfd.c | 30 static int _sfdup(int fd, int newfd) argument 32 static int _sfdup(fd,newfd) 33 int fd; 40 while((dupfd = sysfcntlf(fd,F_DUPFD,newfd)) < 0 && errno == EINTR) 45 if((dupfd = sysdupf(fd)) < 0 || dupfd >= newfd) 49 newfd = _sfdup(fd,newfd);
|
/illumos-gate/usr/src/lib/libast/common/vec/ |
H A D | vecfile.c | 44 int fd; local 48 if ((fd = open(file, O_RDONLY)) >= 0) 50 if (!fstat(fd, &st) && S_ISREG(st.st_mode) && (n = st.st_size) > 0 && (buf = newof(0, char, n + 1, 0))) 52 if (read(fd, buf, n) == n) 59 close(fd);
|
/illumos-gate/usr/src/cmd/lp/lib/filters/ |
H A D | filtertable.c | 70 int fd; local 79 fd = open_locked(file, mode, MODE_READ); 84 return (fd);
|
/illumos-gate/usr/src/ucblib/libucb/port/sys/ |
H A D | flock.c | 43 flock(int fd, int operation) argument 76 ret = fcntl(fd, cmd, &fl);
|