• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/usr/eclipseclp/Kernel/src/

Lines Matching refs:fd

104  *    and basically means that the fd is not positioned at offset.
397 static int _isafifo(int fd),
528 else /* connect to fd 0,1,2 */
583 /* stdin and others are done on the fd owner */
669 /* same as above, but the stream type is derived from the fd (unit) */
762 int fd;
782 if ((fd = ec_open(buf, smode, 0666)) < 0) {
787 io_type = isatty(fd) ? &ec_tty : &ec_file;
791 init_stream(nst, fd, mode|io_type->io_type, enter_dict(name, 0), NO_PROMPT, NO_STREAM, 0);
2311 /* check the fd directly, our own stream flags are not reliable: */
2449 * FUNCTION NAME: _set_raw_tty(fd, min, time)
2451 * PARAMETERS: fd - file descriptor
2461 _set_raw_tty(int fd, int min, int time, struct termios *tbuf)
2466 if (isatty(fd))
2469 if (tcgetattr(fd, tbuf) == -1)
2471 if (ioctl(fd, GetTermAttr, tbuf) == -1)
2492 if (tcsetattr(fd, TCSANOW, &rawbuf) == -1)
2494 if (ioctl(fd, SetTermAttr, &rawbuf) == -1)
2507 * FUNCTION NAME: _unset_raw_tty(fd)
2509 * PARAMETERS: fd - file descriptor
2521 _unset_raw_tty(int fd, struct termios *tbuf)
2524 if (isatty(fd))
2527 if (tcsetattr(fd, TCSANOW, tbuf) == -1)
2529 if (ioctl(fd, SetTermAttr, tbuf) == -1)
2795 pushback_char(int fd, char *p)
2797 (void) ioctl(fd, TIOCSTI, p);
2848 set_sigio(int fd)
2852 if (fcntl(fd, F_SETOWN, getpid()) == -1 ||
2853 (i = fcntl(fd, F_GETFL, 0)) == -1)
2859 if (fcntl(fd, F_SETFL, i | FASYNC) == -1) {
2866 if (ioctl(fd, I_SETSIG, S_RDNORM|S_RDBAND|S_HIPRI|S_BANDURG) == -1) {
2876 if (ioctl(fd, SIOCSPGRP, &pid) == -1)
2882 if (ioctl(fd, FIOASYNC, &on) == -1)
2892 reset_sigio(int fd)
2897 if ((i = fcntl(fd, F_GETFL, 0)) == -1)
2903 if (fcntl(fd, F_SETFL, i & ~FASYNC) == -1) {
2909 if (ioctl(fd, I_SETSIG, 0) == -1) {
2918 if (ioctl(fd, FIOASYNC, &off) == -1)
2928 _isafifo(int fd)
2934 fd != NO_UNIT &&
2935 fstat(fd, &st) != -1 &&
2978 _dummy_close(int fd)
2984 _dummy_io(int fd, char *buf, int n)
3003 _close_fd(int fd)
3005 if (close(fd) < 0)
3019 _write_fd(int fd, char *buf, int n)
3025 cnt = write(fd, buf, n);
3046 _read_fd(int fd, char *buf, int n)
3052 count = read(fd, buf, n);