/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | tinputfd.c | 50 tinputfd(int fd) argument 52 cur_term->_inputfd = fd;
|
H A D | typeahead.c | 49 * 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 D | closedir.c | 39 int fd; local 43 fd = dirp->dd_fd; 48 return (close(fd));
|
H A D | opendir.c | 43 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 D | 0@0.c | 46 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 D | unlck_file.c | 34 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 D | flushinp.c | 53 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 D | flushinp.c | 58 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 D | t_getstate.c | 42 _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 D | can_use_af.c | 48 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 D | gtty.c | 36 gtty(int fd, struct sgttyb *ap) argument 39 return (ioctl(fd, TIOCGETP, ap));
|
H A D | stty.c | 36 stty(int fd, struct sgttyb *ap) argument 39 return(ioctl(fd, TIOCSETP, ap));
|
/illumos-gate/usr/src/lib/libbc/libc/gen/sys5/ |
H A D | nlist.c | 39 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 D | close.c | 32 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 D | dup.c | 31 dup(int fd) argument 35 if ((ret = _syscall(SYS_fcntl, fd, F_DUPFD, 0)) == -1) 38 if ((fds = fd_get(fd)) != -1)
|
H A D | fsync.c | 34 fsync(int fd) argument 36 return (_syscall(SYS_fdsync, fd, FSYNC));
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | isastream.c | 49 isastream(int fd) argument 53 rval = ioctl(fd, I_CANPUT, 0);
|
H A D | tcgetpgrp.c | 40 tcgetpgrp(int fd) argument 44 if (tcgetsid(fd) < 0 || ioctl(fd, TIOCGPGRP, &pgrp) < 0)
|
H A D | tcsetpgrp.c | 40 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 D | vtinfo.c | 43 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 D | kvatoname.c | 12 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 D | nametokva.c | 11 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.c | 29 _stdopen(int fd, const char* mode) argument 31 return fdopen(fd, mode);
|
H A D | fdopen.c | 27 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 D | alloc_pbuf.c | 36 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);
|