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

1234567891011>>

/osnet-11/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;
/osnet-11/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)
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) {
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dcan_use_af.c49 int fd; local
51 if ((fd = open("/dev/udp", O_RDONLY)) < 0) {
56 if (ioctl(fd, SIOCGLIFNUM, &lifn, sizeof (lifn)) < 0) {
60 (void) close(fd);
/osnet-11/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);
H A Dnet_read.c32 * krb5_net_read() reads from the file descriptor "fd" to the buffer
34 * read anymore from "fd". It returns the number of bytes read
42 krb5_net_read(krb5_context context, int fd, register char *buf, register int len) argument
47 cc = SOCKET_READ((SOCKET)fd, buf, len);
/osnet-11/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);
/osnet-11/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));
H A Dclosedir.c49 int fd = dirp->d_fd; local
54 return (close(fd));
H A Ddaemon.c45 int retv, fd; local
77 if ((fd = open("/dev/null", O_RDWR)) == -1)
86 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) {
87 (void) close(fd);
90 if ((fd != STDOUT_FILENO) && (dup2(fd, STDOUT_FILENO) < 0)) {
91 (void) close(fd);
94 if ((fd != STDERR_FILENO) && (dup2(fd, STDERR_FILEN
[all...]
H A Dopendir.c48 int fd; local
51 if ((fd = openat(AT_FDCWD, filename,
54 if ((dirp = fdopendir(fd)) == NULL)
55 (void) close(fd);
H A Dtcgetsid.c41 tcgetsid(int fd) argument
45 if ((ioctl(fd, TIOCGSID, &ttysid)) < 0 ||
/osnet-11/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);
/osnet-11/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);
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_io.h18 int fd; member in struct:krb5_rc_iostuff
/osnet-11/usr/src/lib/libc/port/sys/
H A Dgetpeerucred.c39 getpeerucred(int fd, ucred_t **ucp) argument
49 if (syscall(SYS_ucredsys, UCREDSYS_GETPEERUCRED, fd, uc) != 0) {
/osnet-11/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));
/osnet-11/usr/src/lib/libresolv2/common/bsd/
H A Ddaemon.c53 int fd; local
70 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
71 (void)dup2(fd, STDIN_FILENO);
72 (void)dup2(fd, STDOUT_FILENO);
73 (void)dup2(fd, STDERR_FILENO);
74 if (fd > 2)
75 (void)close (fd);
/osnet-11/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);

Completed in 89 milliseconds

1234567891011>>