fd                138 ext/fcntl/fcntl.c     int fd = Scm_GetPortFd(port_or_fd, TRUE), r;
fd                152 ext/fcntl/fcntl.c         SCM_SYSCALL(r, fcntl(fd, op));
fd                174 ext/fcntl/fcntl.c         SCM_SYSCALL(r, fcntl(fd, op, Scm_GetInteger(arg)));
fd                185 ext/fcntl/fcntl.c         SCM_SYSCALL(r, fcntl(fd, op, &fl->lock));
fd                140 ext/net/gauche/net.h     Socket fd;                     /* INVALID_SOCKET if closed */
fd                149 ext/net/gauche/net.h #define SOCKET_CLOSED(fd)  ((fd) == INVALID_SOCKET)
fd                150 ext/net/gauche/net.h #define SOCKET_INVALID(fd) ((fd) == INVALID_SOCKET)
fd                 54 ext/net/net.c      if (!(SOCKET_CLOSED(sock->fd))) {
fd                 55 ext/net/net.c          closeSocket(sock->fd);
fd                 56 ext/net/net.c          sock->fd = INVALID_SOCKET;
fd                 90 ext/net/net.c  ScmSocket *make_socket(Socket fd, int type)
fd                 94 ext/net/net.c      s->fd = fd;
fd                118 ext/net/net.c      SCM_SYSCALL(r, shutdown(s->fd, how));
fd                135 ext/net/net.c      closeSocket(s->fd);
fd                136 ext/net/net.c      s->fd = INVALID_SOCKET;
fd                152 ext/net/net.c  	infd = sock->fd;
fd                154 ext/net/net.c  	infd = _open_osfhandle(sock->fd, O_RDONLY);
fd                178 ext/net/net.c  	outfd = sock->fd;
fd                180 ext/net/net.c  	outfd = _open_osfhandle(sock->fd, 0);
fd                202 ext/net/net.c      if (SOCKET_CLOSED(sock->fd)) {
fd                205 ext/net/net.c      SCM_SYSCALL(r, bind(sock->fd, &addr->addr, addr->addrlen));
fd                214 ext/net/net.c      SCM_SYSCALL(r, getsockname(sock->fd, &naddr->addr, &naddr->addrlen));
fd                226 ext/net/net.c      if (SOCKET_CLOSED(sock->fd)) {
fd                229 ext/net/net.c      SCM_SYSCALL(r, listen(sock->fd, backlog));
fd                245 ext/net/net.c      if (SOCKET_CLOSED(sock->fd)) {
fd                248 ext/net/net.c      SCM_SYSCALL(newfd, accept(sock->fd, (struct sockaddr *)addrbuf, &addrlen));
fd                268 ext/net/net.c      if (SOCKET_CLOSED(sock->fd)) {
fd                271 ext/net/net.c      SCM_SYSCALL(r, connect(sock->fd, &addr->addr, addr->addrlen));
fd                286 ext/net/net.c      if (SOCKET_CLOSED(sock->fd)) {
fd                289 ext/net/net.c      SCM_SYSCALL(r, getsockname(sock->fd, (struct sockaddr *)addrbuf, &addrlen));
fd                302 ext/net/net.c      if (SOCKET_CLOSED(sock->fd)) {
fd                305 ext/net/net.c      SCM_SYSCALL(r, getpeername(sock->fd, (struct sockaddr *)addrbuf, &addrlen));
fd                316 ext/net/net.c      if (SOCKET_CLOSED(sock->fd)) {
fd                320 ext/net/net.c      SCM_SYSCALL(r, send(sock->fd, cmsg, size, flags));
fd                332 ext/net/net.c      if (SOCKET_CLOSED(sock->fd)) {
fd                336 ext/net/net.c      SCM_SYSCALL(r, sendto(sock->fd, cmsg, size, flags,
fd                348 ext/net/net.c      if (SOCKET_CLOSED(sock->fd)) {
fd                352 ext/net/net.c      SCM_SYSCALL(r, recv(sock->fd, buf, bytes, flags));
fd                365 ext/net/net.c      if (SOCKET_CLOSED(sock->fd)) {
fd                369 ext/net/net.c      SCM_SYSCALL(r, recvfrom(sock->fd, buf, bytes, flags, &from, &fromlen));
fd                386 ext/net/net.c      if (SOCKET_CLOSED(s->fd)) {
fd                393 ext/net/net.c          SCM_SYSCALL(r, setsockopt(s->fd, level, option, cvalue, size));
fd                396 ext/net/net.c          SCM_SYSCALL(r, setsockopt(s->fd, level, option, &v, sizeof(int)));
fd                408 ext/net/net.c      if (SOCKET_CLOSED(s->fd)) {
fd                413 ext/net/net.c          SCM_SYSCALL(r, getsockopt(s->fd, level, option, buf, &rrsize));
fd                419 ext/net/net.c          SCM_SYSCALL(r, getsockopt(s->fd, level, option, &val, &rrsize));
fd                447 ext/net/netlib.c  SCM_RESULT = (sock->fd);
fd                122 ext/termios/termiolib.c   int fd = Scm_GetPortFd(port_or_fd, TRUE);
fd                124 ext/termios/termiolib.c   if (tcgetattr(fd, &term->term) < 0) {
fd                154 ext/termios/termiolib.c int fd = Scm_GetPortFd(port_or_fd, TRUE);
fd                155 ext/termios/termiolib.c if (tcsetattr(fd, option, &term->term) < 0) {
fd                180 ext/termios/termiolib.c   int fd = Scm_GetPortFd(port_or_fd, TRUE);
fd                181 ext/termios/termiolib.c   SCM_RETURN(tcsendbreak(fd, duration) < 0 ? SCM_FALSE : SCM_TRUE);
fd                198 ext/termios/termiolib.c int fd = Scm_GetPortFd(port_or_fd, TRUE);
fd                199 ext/termios/termiolib.c if (tcdrain(fd) < 0) Scm_SysError("tcdrain failed");
fd                222 ext/termios/termiolib.c int fd = Scm_GetPortFd(port_or_fd, TRUE);
fd                223 ext/termios/termiolib.c if (tcflush(fd, queue) < 0) Scm_SysError("tcflush failed");
fd                246 ext/termios/termiolib.c int fd = Scm_GetPortFd(port_or_fd, TRUE);
fd                247 ext/termios/termiolib.c if (tcflow(fd, action) < 0) Scm_SysError("tcflow failed");
fd                265 ext/termios/termiolib.c   int fd = Scm_GetPortFd(port_or_fd, TRUE);
fd                266 ext/termios/termiolib.c   pid_t r = tcgetpgrp(fd);
fd                290 ext/termios/termiolib.c int fd = Scm_GetPortFd(port_or_fd, TRUE);
fd                291 ext/termios/termiolib.c if (tcsetpgrp(fd, pgrp) < 0) Scm_SysError("tcsetpgrp failed");
fd                128 gc/cord/cordxtra.c     CORD_fill_data fd;
fd                130 gc/cord/cordxtra.c     fd.len = len;
fd                131 gc/cord/cordxtra.c     fd.buf = buf;
fd                132 gc/cord/cordxtra.c     fd.count = 0;
fd                133 gc/cord/cordxtra.c     (void)CORD_iter5(x, i, CORD_fill_proc, CORD_batched_fill_proc, &fd);
fd                303 gc/dyn_load.c  extern ssize_t GC_repeat_read(int fd, char *buf, size_t count);
fd                587 gc/dyn_load.c      static int fd = -1;
fd                603 gc/dyn_load.c      if (fd < 0) {
fd                607 gc/dyn_load.c        fd = open(buf, O_RDONLY);
fd                608 gc/dyn_load.c        if (fd < 0) {
fd                612 gc/dyn_load.c      if (ioctl(fd, PIOCNMAP, &needed_sz) < 0) {
fd                613 gc/dyn_load.c  	GC_err_printf2("fd = %d, errno = %d\n", fd, errno);
fd                622 gc/dyn_load.c      if (ioctl(fd, PIOCMAP, addr_map) < 0) {
fd                624 gc/dyn_load.c                          fd, errno, needed_sz, addr_map);
fd                672 gc/dyn_load.c  	    obj = ioctl(fd, PIOCOPENM, &arg);
fd                690 gc/dyn_load.c      	if (close(fd) < 0) ABORT("Couldnt close /proc file");
fd                691 gc/dyn_load.c  	fd = -1;
fd                914 gc/misc.c      int GC_write(fd, buf, len)
fd                915 gc/misc.c      int fd;
fd                924 gc/misc.c      	    result = syscall(SYS_write, fd, buf + bytes_written,
fd                927 gc/misc.c           	    result = write(fd, buf + bytes_written, len - bytes_written);
fd                937 gc/misc.c      int GC_write(fd, buf, len)
fd                945 gc/misc.c      int GC_write(fd, buf, len)
fd                180 gc/os_dep.c    ssize_t GC_repeat_read(int fd, char *buf, size_t count)
fd                186 gc/os_dep.c    	result = READ(fd, buf + num_read, count - num_read);
fd               2970 gc/os_dep.c        ssize_t read(int fd, void *buf, size_t nbyte)
fd               2973 gc/os_dep.c          int read(fd, buf, nbyte)
fd               2975 gc/os_dep.c          int GC_read(fd, buf, nbyte)
fd               2977 gc/os_dep.c        int fd;
fd               2997 gc/os_dep.c    	    result = readv(fd, &iov, 1);
fd               3001 gc/os_dep.c    	result = __read(fd, buf, nbyte);
fd               3006 gc/os_dep.c         	result = syscall(SYS_read, fd, buf, nbyte, 0, 0);
fd               3021 gc/os_dep.c        ssize_t __wrap_read(int fd, void *buf, size_t nbyte)
fd               3027 gc/os_dep.c    	result = __real_read(fd, buf, nbyte);
fd               3110 gc/os_dep.c        int fd;
fd               3125 gc/os_dep.c        fd = open(buf, O_RDONLY);
fd               3126 gc/os_dep.c        if (fd < 0) {
fd               3129 gc/os_dep.c        GC_proc_fd = syscall(SYS_ioctl, fd, PIOCOPENPD, 0);
fd               3130 gc/os_dep.c        close(fd);
fd               3157 gc/os_dep.c    #   define READ(fd,buf,nbytes) syscall(SYS_read, fd, buf, nbytes)
fd               3159 gc/os_dep.c    #   define READ(fd,buf,nbytes) read(fd, buf, nbytes)
fd               3729 src/extlib.c     int fd;
fd               3740 src/extlib.c     fd = SCM_INT_VALUE(fd_scm);
fd               3750 src/extlib.c      if (fd < 0) Scm_Error("bad file descriptor: %d", fd);
fd               3751 src/extlib.c      return Scm_MakePortWithFd(name, SCM_PORT_INPUT, fd, bufmode, ownerP);
fd               3761 src/extlib.c     int fd;
fd               3772 src/extlib.c     fd = SCM_INT_VALUE(fd_scm);
fd               3782 src/extlib.c      if (fd < 0) Scm_Error("bad file descriptor: %d", fd);
fd               3783 src/extlib.c      return Scm_MakePortWithFd(name, SCM_PORT_OUTPUT, fd, bufmode, ownerP);
fd               1493 src/gauche.h   				     int fd,
fd               1503 src/gauche.h   SCM_EXTERN int    Scm_FdReady(int fd, int dir);
fd                117 src/gauche/mingw-compat.h int pipe(int fd[]);
fd                120 src/gauche/mingw-compat.h int ftruncate(int fd, off_t len);
fd                240 src/port.c     int Scm_FdReady(int fd, int dir)
fd                248 src/port.c         if (fd < 0) return SCM_FD_READY;
fd                251 src/port.c         FD_SET(fd, &fds);
fd                254 src/port.c             SCM_SYSCALL(r, select(fd+1, NULL, &fds, NULL, &tm));
fd                256 src/port.c             SCM_SYSCALL(r, select(fd+1, &fds, NULL, NULL, &tm));
fd                765 src/port.c         int fd = (int)p->src.buf.data;
fd                767 src/port.c         SCM_ASSERT(fd >= 0);
fd                770 src/port.c             SCM_SYSCALL(r, read(fd, datptr, cnt-nread));
fd                789 src/port.c         int fd = (int)p->src.buf.data;
fd                792 src/port.c         SCM_ASSERT(fd >= 0);
fd                796 src/port.c             SCM_SYSCALL(r, write(fd, datptr, datsiz-nwrote));
fd                810 src/port.c         int fd = (int)p->src.buf.data;
fd                811 src/port.c         SCM_ASSERT(fd >= 0);
fd                812 src/port.c         close(fd);
fd                817 src/port.c         int fd = (int)p->src.buf.data;
fd                818 src/port.c         SCM_ASSERT(fd >= 0);
fd                819 src/port.c         return Scm_FdReady(fd, SCM_PORT_DIR(p));
fd                834 src/port.c         int fd, dir = 0;
fd                850 src/port.c         fd = open(path, flags, perm);
fd                851 src/port.c         if (fd < 0) return SCM_FALSE;
fd                861 src/port.c         bufrec.data = (void*)fd;
fd                875 src/port.c                               int fd, int bufmode, int ownerp)
fd                889 src/port.c         bufrec.data = (void*)fd;
fd               1157 src/syslib.c     int fd;
fd               1158 src/syslib.c     SCM_SYSCALL(fd, mkstemp(nam));
fd               1159 src/syslib.c     if (fd < 0) Scm_SysError("mkstemp failed");
fd               1160 src/syslib.c     close(fd);
fd               1367 src/syslib.c     int fd = Scm_GetPortFd(port_or_fd, FALSE), r;
fd               1368 src/syslib.c     if (fd < 0) SCM_RETURN(SCM_FALSE);
fd               1369 src/syslib.c     SCM_SYSCALL(r, fstat(fd, &s->statrec));
fd               1370 src/syslib.c     if (r < 0) Scm_SysError("fstat failed for %d", fd);
fd               2214 src/syslib.c     int fd;
fd               2218 src/syslib.c     fd = Scm_GetInteger(fd_scm);
fd               2223 src/syslib.c   SCM_SYSCALL(r, close(fd));
fd               2399 src/syslib.c   int fd = Scm_GetPortFd(port_or_fd, FALSE);
fd               2400 src/syslib.c   SCM_RESULT = (fd >= 0 && isatty(fd));
fd               2419 src/syslib.c   int fd = Scm_GetPortFd(port_or_fd, FALSE);
fd               2420 src/syslib.c   if (fd < 0) SCM_RESULT = NULL;
fd               2421 src/syslib.c   else SCM_RESULT = ttyname(fd);
fd               2472 src/syslib.c   int r; int fd = Scm_GetPortFd(port_or_fd, TRUE);
fd               2473 src/syslib.c   SCM_SYSCALL(r, ftruncate(fd, Scm_IntegerToOffset(length)));
fd               2584 src/syslib.c   int fd = Scm_GetPortFd(pf, FALSE);
fd               2585 src/syslib.c   if (fd < 0) SCM_RESULT = TRUE;
fd               2586 src/syslib.c   else SCM_RESULT = FD_ISSET(fd, &fdset->fdset);
fd               2615 src/syslib.c   int fd = Scm_GetPortFd(pf, FALSE);
fd               2616 src/syslib.c     if (fd >= 0) {
fd               2618 src/syslib.c         FD_SET(fd, &fdset->fdset);
fd               2619 src/syslib.c         if (fdset->maxfd < fd) fdset->maxfd = fd;
fd               2621 src/syslib.c         FD_CLR(fd, &fdset->fdset);
fd               2622 src/syslib.c         if (fdset->maxfd == fd) {
fd                142 src/system.c       int fd = -1;
fd                144 src/system.c           fd = SCM_INT_VALUE(port_or_fd);
fd                146 src/system.c           fd = Scm_PortFileNo(SCM_PORT(port_or_fd));
fd                147 src/system.c           if (fd < 0 && needfd) {
fd                154 src/system.c       return fd;
fd                553 src/system.c       int fd = -1;
fd                555 src/system.c       SCM_SYSCALL(fd, mkstemp(templat));
fd                556 src/system.c       if (fd < 0) Scm_SysError("mkstemp failed");
fd                557 src/system.c       return fd;
fd                577 src/system.c   	    SCM_SYSCALL(fd, open(templat, flags, 0600));
fd                578 src/system.c   	    if (fd >= 0) break;
fd                585 src/system.c       return fd;
fd                596 src/system.c       int fd;
fd                604 src/system.c       fd = Scm_Mkstemp(name);
fd                606 src/system.c       SCM_RETURN(Scm_Values2(Scm_MakePortWithFd(sname, SCM_PORT_OUTPUT, fd,
fd               1587 src/system.c   int pipe(int fd[])
fd               1590 src/system.c       int r = _pipe(fd, PIPE_BUFFER_SIZE, O_BINARY);
fd               1604 src/system.c   int ftruncate(int fd, off_t len)