/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | defs.h | 379 extern struct cleanup *make_cleanup_close (int fd);
|
H A D | event-loop.c | 56 int fd; /* File descriptor that is ready. */ member in struct:gdb_event 65 int fd; /* File descriptor. */ member in struct:file_handler 69 handler_func *proc; /* Procedure to call when fd is ready. */ 71 int error; /* Was an error detected on this fd? */ 121 in, for each fd. */ 156 /* Number of valid bits (highest fd value + 1). (for select) */ 209 static void create_file_handler (int fd, int mask, handler_func * proc, gdb_client_data client_data); 215 static gdb_event *create_file_event (int fd); 262 create_file_event (int fd) 268 file_event_ptr->fd 261 create_file_event(int fd) argument 285 int fd; local 434 add_file_handler(int fd, handler_func * proc, gdb_client_data client_data) argument 481 create_file_handler(int fd, int mask, handler_func * proc, gdb_client_data client_data) argument 554 delete_file_handler(int fd) argument [all...] |
H A D | event-loop.h | 89 extern void delete_file_handler (int fd); 90 extern void add_file_handler (int fd, handler_func * proc, gdb_client_data client_data);
|
H A D | go32-nat.c | 722 device_mode (int fd, int raw_p) argument 728 regs.x.bx = fd; 742 regs.x.bx = fd; 1948 tcgetpgrp (int fd) argument 1950 if (isatty (fd)) 1957 tcsetpgrp (int fd, pid_t pgid) argument 1959 if (isatty (fd) && pgid == SOME_PID)
|
H A D | inftarg.c | 695 int fd; local 703 fd = open (procname, O_RDONLY); 704 if (fd >= 0) 706 close (fd);
|
H A D | mdebugread.c | 1419 parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs, 1473 if (aux_index >= (debug_info->fdr + fd)->caux) 1580 xref_fh = get_rfd (fd, rf); 1600 ax += cross_ref (fd, ax, &tp, type_code, &name, bigend, sym_name); 1659 ax += cross_ref (fd, ax, &tp, type_code, &name, bigend, sym_name); 1690 ax += cross_ref (fd, ax, &tp, type_code, &name, bigend, sym_name); 1722 ax += upgrade_type(fd, &tp, t->tq, ax, bigend, sym_name); \ 1757 upgrade_type (int fd, struct type **tpp, int tq, union aux_ext *ax, int bigend, 1796 fh = get_rfd (fd, rf); 4233 cross_ref (int fd, unio 1412 parse_type(int fd, union aux_ext *ax, unsigned int aux_index, int *bs, int bigend, char *sym_name) argument 1750 upgrade_type(int fd, struct type **tpp, int tq, union aux_ext *ax, int bigend, char *sym_name) argument 4224 cross_ref(int fd, union aux_ext *ax, struct type **tpp, enum type_code type_code, char **pname, int bigend, char *sym_name) argument [all...] |
H A D | nto-procfs.c | 124 int fd, total_size; local 160 fd = open (nto_procfs_path, O_RDONLY); 161 if (fd == -1) 169 if (devctl (fd, DCMD_PROC_SYSINFO, sysinfo, sizeof buffer, 0) != EOK) 173 close (fd); 184 close (fd); 189 if (devctl (fd, DCMD_PROC_SYSINFO, sysinfo, total_size, 0) != EOK) 193 close (fd); 201 close (fd); 207 close (fd); 261 int fd = -1; local 973 int fd, fds[3]; local [all...] |
H A D | proc-api.c | 225 ioctl_with_trace (int fd, long opcode, void *ptr, char *file, int line) argument 377 ret = ioctl (fd, opcode, ptr); 460 write_with_trace (int fd, void *varg, size_t len, char *file, int line) argument 600 ret = write (fd, (void *) arg, len); 617 lseek_with_trace (int fd, off_t offset, int whence, char *file, int line) argument 623 ret = lseek (fd, offset, whence); 681 close_with_trace (int fd, char *file, int line) argument 687 ret = close (fd); 698 "%d = close (%d)\n", ret, fd);
|
H A D | procfs.c | 88 the read/write (multiple fd) API never does. */ 355 /* The following four fd fields may be identical, or may contain 356 several different fd's, depending on the version of /proc 365 * implementation) filling them with copies of the control fd. 532 int fd; local 596 fd = open_with_retry (tmp, O_WRONLY); 597 if (fd <= 0) 599 pi->ctl_fd = fd; 605 fd = open_with_retry (tmp, O_RDWR); 606 if (fd < 2940 int fd; local 5406 int fd; local [all...] |
H A D | remote-fileio.c | 93 remote_fileio_fd_to_targetfd (int fd) argument 96 remote_fio_data.fd_map[target_fd] = fd; 565 int flags, fd; local 619 fd = open (pathname, flags, mode); 620 if (fd < 0) 626 fd = remote_fileio_fd_to_targetfd (fd); 627 remote_fileio_return_success (fd); 634 int fd; local 642 fd 662 int fd, ret, retlength; local 780 int fd, ret, retlength; local 852 int fd, flag; local 1099 int fd, ret, retlength; local 1224 int fd; local [all...] |
H A D | rs6000-nat.c | 127 #define LDI_FD(ldi, arch64) LDI_FIELD(ldi, arch64, fd) 728 int fd; 740 fd = LDI_FD (ldi, arch64); 741 if (fd < 0) 746 abfd = bfd_fdopenr (objname, gnutarget, fd); 823 int fd = LDI_FD (ldi, arch64); 827 if (fstat (fd, &ii) < 0) 832 warning ("%s (fd=%d) has disappeared, keeping its symbols", 833 name, fd); 869 close (fd); 726 int fd; local 820 int fd = LDI_FD (ldi, arch64); local [all...] |
H A D | ser-e7kpc.c | 225 dosasync_read (int fd, char *buf, int len, int timeout) argument 266 dosasync_write (int fd, const char *buf, int len) argument 302 scb->fd = e7000pc_init (); 304 if (!scb->fd) 329 if (dosasync_read (scb->fd, &buf, 1, timeout)) 395 dosasync_write (scb->fd, str, len);
|
H A D | ser-go32.c | 462 int fd, i; 485 fd = name[3] - '1'; 486 port = &ports[fd]; 490 scb->fd = fd; 537 scb->fd = fd; 572 port = &ports[scb->fd]; 621 struct dos_ttystate *port = &ports[scb->fd]; 639 struct dos_ttystate *port = &ports[scb->fd]; 459 int fd, i; local [all...] |
H A D | ser-pipe.c | 110 scb->fd = pdes[0]; 126 close (scb->fd); 127 scb->fd = -1;
|
H A D | ser-tcp.c | 98 scb->fd = socket (PF_INET, SOCK_DGRAM, 0); 100 scb->fd = socket (PF_INET, SOCK_STREAM, 0); 102 if (scb->fd < 0) 112 ioctl (scb->fd, FIONBIO, &tmp); 115 n = connect (scb->fd, (struct sockaddr *) &sockaddr, sizeof (sockaddr)); 146 FD_SET (scb->fd, &rset); 151 n = select (scb->fd + 1, &rset, &wset, NULL, &t); 168 res = getsockopt (scb->fd, SOL_SOCKET, SO_ERROR, &err, &len); 180 ioctl (scb->fd, FIONBIO, &tmp); 186 setsockopt (scb->fd, IPPROTO_TC [all...] |
H A D | ser-unix.c | 109 scb->fd = open (name, O_RDWR); 110 if (scb->fd < 0) 120 if (tcgetattr (scb->fd, &state->termios) < 0) 127 if (ioctl (scb->fd, TCGETA, &state->termio) < 0) 133 if (ioctl (scb->fd, TIOCGETP, &state->sgttyb) < 0) 135 if (ioctl (scb->fd, TIOCGETC, &state->tc) < 0) 137 if (ioctl (scb->fd, TIOCGLTC, &state->ltc) < 0) 139 if (ioctl (scb->fd, TIOCLGET, &state->lmode) < 0) 150 if (tcsetattr (scb->fd, TCSANOW, &state->termios) < 0) 157 if (ioctl (scb->fd, TCSET [all...] |
H A D | serial.c | 239 serial_fdopen (const int fd) 245 if (scb->fd == fd) 263 scb->fd = fd; 509 if (scb->fd < 0) 514 return scb->fd; /* sigh */ 237 serial_fdopen(const int fd) argument
|
H A D | serial.h | 46 extern struct serial *serial_fdopen (const int fd); 183 int fd; /* File descriptor */ member in struct:serial
|
H A D | solib-svr4.c | 312 static int look_for_base (int fd, CORE_ADDR baseaddr) 322 fd is open on, if it exists, and if so, initialize the dynamic 331 look_for_base (int fd, CORE_ADDR baseaddr) argument 337 /* If the fd is -1, then there is no file that corresponds to this 338 mapped memory segment, so skip it. Also, if the fd corresponds 341 if (fd == -1 343 && fdmatch (fileno ((FILE *) (exec_bfd->iostream)), fd))) 348 /* Try to open whatever random file this fd corresponds to. Note that 352 if ((interp_bfd = bfd_fdopenr ("unnamed", gnutarget, fd)) == NULL)
|
H A D | source.c | 664 int fd; 686 fd = open (filename, mode, prot); 687 if (fd >= 0) 693 fd = -1; 707 fd = -1; 748 fd = open (filename, mode); 749 if (fd >= 0) 762 if (fd < 0) 779 return fd; 798 int fd; 661 int fd; local 795 int fd; local 876 int fd; local [all...] |
H A D | symfile.c | 1017 int fd; 1021 fd = open (name, O_RDONLY | O_BINARY); 1022 if (fd < 0) 1025 while ((count = read (fd, buffer, sizeof (buffer))) > 0) 1028 close (fd); 1016 int fd; local
|
H A D | utils.c | 239 int *fd = arg; 240 close (*fd); 241 xfree (fd); 245 make_cleanup_close (int fd) 247 int *saved_fd = xmalloc (sizeof (fd)); 248 *saved_fd = fd; 238 int *fd = arg; local 244 make_cleanup_close(int fd) argument
|
H A D | uw-thread.c | 242 static int fd = -1, len; local 250 if (fd < 0) 255 if ((fd = open (path, O_WRONLY | O_CREAT | O_TRUNC, 0664)) < 0) 265 (void)write (fd, buf, len + 1);
|
H A D | wince.c | 1573 int fd; local 1592 if ((fd = openp (getenv ("PATH"), TRUE, (char *) from, O_RDONLY, 0, NULL)) < 0) 1596 if (fstat (fd, &st)) 1635 while ((n = read (fd, buf, sizeof (buf))) > 0) 1641 close (fd);
|
/freebsd-11-stable/contrib/groff/src/include/ |
H A D | nonposix.h | 138 # define FLUSH_INPUT_PIPE(fd) \ 139 do if (!isatty(fd)) \ 142 while (read(fd, drain, sizeof(drain)) > 0) \ 169 # define FLUSH_INPUT_PIPE(fd) do {} while(0)
|