fd 420 src/dps8/dps8_crdrdr.c static int getCardLine (int fd, unsigned char * buffer) fd 427 src/dps8/dps8_crdrdr.c ssize_t rc = read (fd, & ch, 1); fd 441 src/dps8/dps8_crdrdr.c static int getCardData (int fd, char * buffer) fd 444 src/dps8/dps8_crdrdr.c ssize_t rc = read (fd, buffer, 80); fd 451 src/dps8/dps8_crdrdr.c static int getRawCardData (int fd, uint8_t * buffer) fd 454 src/dps8/dps8_crdrdr.c ssize_t rc = read (fd, buffer, rawCardImageBytes); fd 352 src/dps8/dps8_socket_dev.c int fd = -1; fd 375 src/dps8/dps8_socket_dev.c fd = socket ((int) buffer[0], (int) buffer[1], (int) buffer[2]); fd 376 src/dps8/dps8_socket_dev.c sim_printf ("socket() returned %d\n", fd); fd 377 src/dps8/dps8_socket_dev.c if (fd < 0) fd 382 src/dps8/dps8_socket_dev.c else if (fd < N_FDS) fd 384 src/dps8/dps8_socket_dev.c sk_data.fd_unit[fd] = (int) unit_idx; fd 385 src/dps8/dps8_socket_dev.c sk_data.fd_dev_code[fd] = dev_code; fd 387 src/dps8/dps8_socket_dev.c sk_data.fd_nonblock[fd] = 0; fd 389 src/dps8/dps8_socket_dev.c sk_data.fd_nonblock[fd] = !! (type & SOCK_NONBLOCK); fd 394 src/dps8/dps8_socket_dev.c close (fd); fd 395 src/dps8/dps8_socket_dev.c fd = -1; fd 400 src/dps8/dps8_socket_dev.c buffer[3] = ((word36) ((word36s) fd)) & MASK36; // fd fd 1145 src/dps8/dps8_socket_dev.c int fd = accept (sk_data.unit_data[unit_idx][dev_code].accept_fd, (struct sockaddr *) & from, & size); fd 1146 src/dps8/dps8_socket_dev.c if (fd == -1) fd 1152 src/dps8/dps8_socket_dev.c else if (fd < N_FDS) fd 1154 src/dps8/dps8_socket_dev.c sk_data.fd_unit[fd] = (int) unit_idx; fd 1155 src/dps8/dps8_socket_dev.c sk_data.fd_dev_code[fd] = dev_code; fd 1156 src/dps8/dps8_socket_dev.c sk_data.fd_nonblock[fd] = false ; // !! (type & SOCK_NONBLOCK); fd 1160 src/dps8/dps8_socket_dev.c close (fd); fd 1161 src/dps8/dps8_socket_dev.c fd = -1; fd 1167 src/dps8/dps8_socket_dev.c buffer[1] = ((word36) ((word36s) fd)) & MASK36; fd 228 src/dps8/fnpuv.c int fd, err; fd 230 src/dps8/fnpuv.c if ((fd = open ("/dev/net/tun", O_RDWR)) < 0) fd 232 src/dps8/fnpuv.c return fd; fd 247 src/dps8/fnpuv.c if ((err = ioctl (fd, TUNSETIFF, (void *) & ifr)) < 0) fd 249 src/dps8/fnpuv.c close (fd); fd 253 src/dps8/fnpuv.c return fd; fd 641 src/dps8/hdbg.c int fd = open ("M.dump", O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); fd 642 src/dps8/hdbg.c if (fd == -1) { fd 647 src/dps8/hdbg.c /* ssize_t n = */ write (fd, (const void *) M, MEMSIZE * sizeof (word36)); fd 648 src/dps8/hdbg.c close (fd); fd 342 src/dps8/segldr.c int fd = open (p2, O_WRONLY | O_CREAT, 0664); fd 343 src/dps8/segldr.c if (fd < 0) fd 353 src/dps8/segldr.c ssize_t n = write (fd, (void *) M, wrsz); fd 364 src/dps8/segldr.c (void) close (fd); fd 370 src/dps8/segldr.c int fd = open (p2, O_RDONLY); fd 371 src/dps8/segldr.c if (fd < 0) fd 381 src/dps8/segldr.c ssize_t n = read (fd, (void *) M, msize); fd 386 src/dps8/segldr.c (void) close (fd); fd 401 src/dps8/segldr.c (void) close (fd); fd 91 src/dps8/shm.c int fd = open(buf, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); fd 92 src/dps8/shm.c if (fd == -1) fd 255 src/dps8/shm.c rc = flock(fd, LOCK_EX | LOCK_NB); fd 279 src/dps8/shm.c rc = fcntl(fd, F_SETLK, &lock); fd 290 src/dps8/shm.c if (fcntl(fd, F_GETLK, &lock) == FALSE && lock.l_pid > 0) fd 304 src/dps8/shm.c if (ftruncate(fd, (off_t)shm_size) == -1) fd 317 src/dps8/shm.c (void)fdatasync(fd); fd 320 src/dps8/shm.c p = mmap(NULL, shm_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); fd 376 src/dps8/shm.c int fd = open(buf, O_RDWR, 0); fd 377 src/dps8/shm.c if (fd == -1) fd 417 src/dps8/shm.c rc = flock(fd, LOCK_EX | LOCK_NB); fd 438 src/dps8/shm.c rc = fcntl(fd, F_SETLK, &lock); fd 456 src/dps8/shm.c p = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); fd 463 src/dps8/shm.c (void)fcntl(fd, F_SETLK, &lock); fd 467 src/dps8/shm.c (void)fsync(fd); fd 468 src/dps8/shm.c (void)close(fd); fd 36 src/dps8/tracker.c static int fd; fd 46 src/dps8/tracker.c write (fd, & segno, sizeof (segno)); fd 47 src/dps8/tracker.c write (fd, & ic, sizeof (ic)); fd 48 src/dps8/tracker.c write (fd, & opcode, sizeof (opcode)); fd 54 src/dps8/tracker.c read (fd, & psegno, sizeof (segno)); fd 55 src/dps8/tracker.c read (fd, & pic, sizeof (ic)); fd 56 src/dps8/tracker.c read (fd, & popcode, sizeof (opcode)); fd 79 src/dps8/tracker.c fd = open ("track.dat", O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); fd 83 src/dps8/tracker.c fd = open ("track.dat", O_RDONLY, 0); fd 85 src/dps8/tracker.c if (fd == -1) fd 225 src/dps8/utfile.c int fd = open(pattern, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); fd 227 src/dps8/utfile.c if (fd >= 0) fd 230 src/dps8/utfile.c return ( fd ); fd 229 src/simh/linehistory.c enableRawMode(int fd) fd 244 src/simh/linehistory.c if (tcgetattr(fd, &orig_termios) == -1) fd 264 src/simh/linehistory.c if (tcsetattr(fd, TCSAFLUSH, &raw) < 0) fd 278 src/simh/linehistory.c disableRawMode(int fd) fd 281 src/simh/linehistory.c if (rawmode && tcsetattr(fd, TCSAFLUSH, &orig_termios) != -1) fd 696 src/simh/linehistory.c int fd = l->ofd; fd 744 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) fd 769 src/simh/linehistory.c int fd = l->ofd, j; fd 867 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) fd 10596 src/simh/scp.c int fd; fd 10598 src/simh/scp.c fd = _open (tmpnam, _O_CREAT | _O_RDWR | _O_EXCL, _S_IREAD | _S_IWRITE); fd 10599 src/simh/scp.c if (fd != -1) { fd 10600 src/simh/scp.c tmp = _fdopen (fd, "w+");