Searched defs:fd (Results 1 - 25 of 1651) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libcurses/screen/
H A Dtinputfd.c50 tinputfd(int fd) argument
52 cur_term->_inputfd = fd;
H A Dtypeahead.c49 * Set the file descriptor for typeahead checks to fd. fd can be -1
54 typeahead(int fd) argument
103 * cur_term->_check_fd = (tty = ttyname(fd)) ?
106 if (isatty(fd)) {
116 if (isatty(fd))
117 cur_term->_check_fd = fd;
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dclosedir.c39 int fd; local
43 fd = dirp->dd_fd;
48 return (close(fd));
H A Dopendir.c43 register int fd; local
49 if ((fd = open(name, O_RDONLY | O_NDELAY)) == -1)
51 if (fstat(fd, &sb) == -1) {
52 (void) close(fd);
57 (void) close(fd);
64 (void) close(fd);
67 dirp->dd_fd = fd;
72 (void) fcntl(fd, F_SETFD, FD_CLOEXEC);
/illumos-gate/usr/src/cmd/sgs/0@0/common/
H A D0@0.c46 int fd; local
48 if ((fd = open("/dev/zero", O_RDWR)) < 0)
50 (void) mmap(0, 1, PROT_READ, MAP_PRIVATE|MAP_FIXED, fd, 0);
51 (void) close(fd);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dunlck_file.c34 krb5_unlock_file(krb5_context context, int fd) argument
36 return krb5_lock_file(context, fd, KRB5_LOCKMODE_UNLOCK);
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dflushinp.c53 int fd; local
63 fd = cur_term->_ifd;
65 fd = cur_term->_ofd;
67 fd = -1;
69 if (0 <= fd)
70 (void) tcflush(fd, TCIFLUSH);
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dflushinp.c58 int fd; local
64 fd = cur_term->_ifd;
66 fd = cur_term->_ofd;
68 fd = -1;
70 if (0 <= fd)
71 (void) tcflush(fd, TCIFLUSH);
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_getstate.c42 _tx_getstate(int fd, int api_semantics) argument
46 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dcan_use_af.c48 int fd; local
50 if ((fd = open("/dev/udp", O_RDONLY)) < 0)
56 if (ioctl(fd, SIOCGLIFNUM, &lifn, sizeof (lifn)) < 0)
59 (void) close(fd);
/illumos-gate/usr/src/lib/libbc/libc/compat/common/
H A Dgtty.c36 gtty(int fd, struct sgttyb *ap) argument
39 return (ioctl(fd, TIOCGETP, ap));
H A Dstty.c36 stty(int fd, struct sgttyb *ap) argument
39 return(ioctl(fd, TIOCSETP, ap));
/illumos-gate/usr/src/lib/libbc/libc/gen/sys5/
H A Dnlist.c39 int fd; local
41 fd = open(name, O_RDONLY, 0);
42 (void) _nlist(fd, list);
43 close(fd);
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dclose.c32 close(int fd) argument
34 return (bc_close(fd));
38 bc_close(int fd) argument
40 fd_rem(fd);
41 return (_syscall(SYS_close, fd));
H A Ddup.c31 dup(int fd) argument
35 if ((ret = _syscall(SYS_fcntl, fd, F_DUPFD, 0)) == -1)
38 if ((fds = fd_get(fd)) != -1)
H A Dfsync.c34 fsync(int fd) argument
36 return (_syscall(SYS_fdsync, fd, FSYNC));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Disastream.c49 isastream(int fd) argument
53 rval = ioctl(fd, I_CANPUT, 0);
H A Dtcgetpgrp.c40 tcgetpgrp(int fd) argument
44 if (tcgetsid(fd) < 0 || ioctl(fd, TIOCGPGRP, &pgrp) < 0)
H A Dtcsetpgrp.c40 tcsetpgrp(int fd, pid_t pgrp) argument
42 if (tcgetsid(fd) < 0)
44 return (ioctl(fd, TIOCSPGRP, &pgrp));
/illumos-gate/usr/src/cmd/vt/
H A Dvtinfo.c43 int fd; local
45 if ((fd = open("/dev/vt/0", O_RDONLY)) < 0)
48 if (ioctl(fd, VT_ENABLED, &result) != 0) {
49 (void) close(fd);
53 (void) close(fd);
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dkvatoname.c12 int fd; local
16 fd = -1;
19 fd = open(IPL_NAME, O_RDONLY);
20 if (fd == -1)
23 (void) (*iocfunc)(fd, SIOCFUNCL, &res);
24 if (fd >= 0)
25 close(fd);
H A Dnametokva.c11 int fd; local
15 fd = -1;
18 fd = open(IPL_NAME, O_RDONLY);
19 if (fd == -1)
22 (void) (*iocfunc)(fd, SIOCFUNCL, &res);
23 if (fd >= 0)
24 close(fd);
/illumos-gate/usr/src/lib/libast/common/stdio/
H A D_stdopen.c29 _stdopen(int fd, const char* mode) argument
31 return fdopen(fd, mode);
H A Dfdopen.c27 fdopen(int fd, const char* mode) argument
31 if (fd < 0 || !(flags = _sftype(mode, NiL, NiL)))
33 return sfnew(NiL, NiL, (size_t)SF_UNBOUND, fd, flags);
/illumos-gate/usr/src/lib/libbc/csu/common/
H A Dalloc_pbuf.c36 int fd; local
38 if((fd = open("/dev/zero",O_RDONLY)) == -1 ) {
41 buf = (char*) mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
42 close(fd);

Completed in 1694 milliseconds

1234567891011>>