Searched defs:fd (Results 51 - 75 of 1651) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dwrite_msg.c37 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 Ddlink_init.c72 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 Dt_sndrel.c49 _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 Dmkstemp.c16 int fd, i; local
29 while ((fd = open(as, O_CREAT|O_EXCL|O_RDWR, 0600)) == -1) {
34 return (fd);
H A Dttyslot.c54 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 Dlseek.c36 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 Dmkfifo.c39 mkfifoat(int fd, const char *path, mode_t mode) argument
43 return (mknodat(fd, path, mode, 0));
H A Dposix_fadvise.c49 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 Daccess.c33 faccessat(int fd, const char *fname, int amode, int flag) argument
35 return (syscall(SYS_faccessat, fd, fname, amode, flag));
H A Dmkdir.c32 mkdirat(int fd, const char *path, mode_t mode) argument
34 return (syscall(SYS_mkdirat, fd, path, mode));
H A Dmknod.c32 mknodat(int fd, const char *path, mode_t mode, dev_t dev) argument
34 return (syscall(SYS_mknodat, fd, path, mode, dev));
H A Dsymlink.c32 symlinkat(const char *path1, int fd, const char *path2) argument
34 return (syscall(SYS_symlinkat, path1, fd, path2));
H A Dsignalfd.c23 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 Drcapd_stat.c42 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 Dcreatemf.c41 int fd; local
50 if ((fd = creat(file, MFMODE)) == -1)
53 close(fd);
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfflush.c51 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 Dsetvbuf.c59 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 Dlintsup.c48 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 Dbpb.c170 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 Dmany_fds.c56 int fd = open("/dev/null", O_RDONLY); local
57 if (fd == -1) {
/illumos-gate/usr/src/uts/common/syscall/
H A Dfdsync.c52 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 Dsfsetfd.c30 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 Dvecfile.c44 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 Dfiltertable.c70 int fd; local
79 fd = open_locked(file, mode, MODE_READ);
84 return (fd);
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dflock.c43 flock(int fd, int operation) argument
76 ret = fcntl(fd, cmd, &fl);

Completed in 826 milliseconds

1234567891011>>