Searched defs:fd (Results 1 - 25 of 1641) 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.c50 * Set the file descriptor for typeahead checks to fd. fd can be -1
55 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/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/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/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/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)
H A Dt_close.c42 _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 Dt_sync.c41 _tx_sync(int fd, int api_semantics) argument
58 if ((tiptr = _t_checkfd(fd, force_sync, 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/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/boot/lib/libstand/
H A Dreaddir.c34 readdirfd(int fd) argument
37 struct open_file *f = &files[fd];
39 if ((unsigned)fd >= SOPEN_MAX || !(f->f_flags & F_READ)) {
H A Dfstat.c39 fstat(int fd, struct stat *sb) argument
41 struct open_file *f = &files[fd];
43 if ((unsigned)fd >= SOPEN_MAX || f->f_flags == 0) {
/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Depoll_test.c28 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/cmd/acpi/common/
H A Dosl.c29 int fd; local
32 fd = fileno(File);
33 if (fstat(fd, &sb) != 0)
/illumos-gate/usr/src/tools/smatch/src/validation/linear/
H A Ddegen-array.c5 int *fd(int i) { return a; } function
25 fd:
/illumos-gate/usr/src/lib/libtsol/common/
H A Dgetlabel.c63 fgetlabel(int fd, bslabel_t *label) argument
65 return (syscall(SYS_labelsys, TSOL_FGETLABEL, fd, label));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_io.h19 int fd; member in struct:krb5_rc_iostuff

Completed in 80 milliseconds

1234567891011>>