/freebsd-11-stable/contrib/gcc/config/i386/ |
H A D | host-cygwin.c | 30 static void * cygwin_gt_pch_get_address (size_t, int fd); 52 cygwin_gt_pch_get_address (size_t sz, int fd) argument 55 off_t p = lseek(fd, 0, SEEK_CUR); 64 if ( ftruncate (fd, sz) == -1 ) 68 base = mmap (NULL, sz, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 75 if (lseek (fd, p, SEEK_SET) == (off_t) -1 )
|
H A D | host-mingw32.c | 81 mingw32_gt_pch_get_address (size_t size, int fd ATTRIBUTE_UNUSED) 114 mingw32_gt_pch_use_address (void *addr, size_t size, int fd, argument 128 mmap_handle = CreateFileMapping ((HANDLE) _get_osfhandle (fd),
|
/freebsd-11-stable/contrib/gcc/config/sparc/ |
H A D | gmon-sol2.c | 173 int fd; local 205 fd = creat( proffile, 0666 ); 206 if ( fd < 0 ) { 213 write( fd , sbuf , ssiz ); 229 write( fd , &rawarc , sizeof rawarc ); 232 close( fd );
|
/freebsd-11-stable/contrib/gcc/ |
H A D | dwarf2out.c | 4258 static int maybe_emit_file (struct dwarf_file_data *fd); 5220 struct dwarf_file_data *fd) 5226 attr.dw_attr_val.v.val_file = fd; 13752 maybe_emit_file (struct dwarf_file_data * fd) 13754 if (! fd->emitted_number) 13757 fd->emitted_number = last_emitted_file->emitted_number + 1; 13759 fd->emitted_number = 1; 13760 last_emitted_file = fd; 13764 fprintf (asm_out_file, "\t.file %u ", fd->emitted_number); 13765 output_quoted_string (asm_out_file, fd 5212 add_AT_file(dw_die_ref die, enum dwarf_attribute attr_kind, struct dwarf_file_data *fd) argument 13736 maybe_emit_file(struct dwarf_file_data * fd) argument [all...] |
H A D | gcov-io.c | 68 int fd; local 87 fd = open (name, O_RDWR); 89 fd = open (name, O_RDWR | O_CREAT, 0666); 90 if (fd < 0) 93 while (fcntl (fd, F_SETLKW, &s_flock) && errno == EINTR) 96 gcov_var.file = fdopen (fd, "r+b"); 99 close (fd); 109 if (fstat (fd, &st) < 0)
|
H A D | ggc-common.c | 602 int fd ATTRIBUTE_UNUSED) 614 default_gt_pch_use_address (void *base, size_t size, int fd ATTRIBUTE_UNUSED, 638 mmap_gt_pch_get_address (size_t size, int fd) 642 ret = mmap (NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 660 mmap_gt_pch_use_address (void *base, size_t size, int fd, size_t offset) 671 fd, offset); 637 mmap_gt_pch_get_address(size_t size, int fd) argument 659 mmap_gt_pch_use_address(void *base, size_t size, int fd, size_t offset) argument
|
H A D | hosthooks.h | 31 void * (*gt_pch_get_address) (size_t size, int fd); 37 int (*gt_pch_use_address) (void *addr, size_t size, int fd, size_t offset);
|
H A D | mips-tfile.c | 4351 int fd, es; 4502 for (fd = delete_ifd; fd < orig_sym_hdr.ifdMax; fd++) 4504 FDR *fd_ptr = ORIG_FILES (fd); 4509 remap_file_number[fd] = cur_file_ptr->file_index; 4540 for (fd = delete_ifd; fd < orig_sym_hdr.ifdMax; fd++) 4542 FDR *fd_ptr = ORIG_FILES (fd); 4311 int fd, es; local [all...] |
H A D | omp-low.c | 152 extract_omp_for_data (tree for_stmt, struct omp_for_data *fd) argument 156 fd->for_stmt = for_stmt; 157 fd->pre = NULL; 161 fd->v = TREE_OPERAND (t, 0); 162 gcc_assert (DECL_P (fd->v)); 163 gcc_assert (TREE_CODE (TREE_TYPE (fd->v)) == INTEGER_TYPE); 164 fd->n1 = TREE_OPERAND (t, 1); 167 fd->cond_code = TREE_CODE (t); 168 gcc_assert (TREE_OPERAND (t, 0) == fd->v); 169 fd 286 struct omp_for_data fd; local 325 struct omp_for_data fd; local 2589 expand_omp_for_generic(struct omp_region *region, struct omp_for_data *fd, enum built_in_function start_fn, enum built_in_function next_fn) argument 2783 expand_omp_for_static_nochunk(struct omp_region *region, struct omp_for_data *fd) argument 2955 expand_omp_for_static_chunk(struct omp_region *region, struct omp_for_data *fd) argument 3129 struct omp_for_data fd; local 4003 lower_omp_for_lastprivate(struct omp_for_data *fd, tree *body_p, tree *dlist, struct omp_context *ctx) argument 4051 struct omp_for_data fd; local [all...] |
/freebsd-11-stable/contrib/gcclibs/libcpp/ |
H A D | files.c | 89 int fd; member in struct:_cpp_file 207 file->fd = 0; 211 file->fd = open (file->path, O_RDONLY | O_NOCTTY | O_BINARY, 0666); 213 if (file->fd != -1) 215 if (fstat (file->fd, &file->st) == 0) 228 close (file->fd); 229 file->fd = -1; 539 If FILE->fd is something weird, like a block device, we don't want 578 if ((offset = lseek(file->fd, 0, SEEK_CUR)) < 0) 601 while ((count = read (file->fd, bu [all...] |
H A D | mkdeps.c | 385 deps_restore (struct deps *deps, FILE *fd, const char *self) argument 393 if (fread (&count, 1, sizeof (count), fd) != sizeof (count)) 400 if (fread (&num_to_read, 1, sizeof (size_t), fd) != sizeof (size_t)) 407 if (fread (buf, 1, num_to_read, fd) != num_to_read)
|
H A D | pch.c | 417 cpp_valid_state (cpp_reader *r, const char *name, int fd) argument 434 if (read (fd, &m, sizeof (m)) != sizeof (m)) 444 if (lseek (fd, m.definition_length, SEEK_CUR) == -1) 456 if ((size_t)read (fd, namebuf, m.definition_length) 492 if ((size_t) read (fd, undeftab, m.definition_length) != m.definition_length)
|
/freebsd-11-stable/contrib/gcclibs/libiberty/ |
H A D | make-temp-file.c | 153 int fd; local 168 fd = mkstemps (temp_filename, suffix_len); 171 if (fd == -1) 174 if (close (fd))
|
H A D | mkstemps.c | 111 int fd; local 126 fd = open (pattern, O_BINARY|O_RDWR|O_CREAT|O_EXCL, 0600); 127 if (fd >= 0) 129 return fd;
|
H A D | pex-djgpp.c | 106 pex_djgpp_close (struct pex_obj *obj ATTRIBUTE_UNUSED, int fd) argument 108 return close (fd);
|
H A D | pex-msdos.c | 130 pex_msdos_fdindex (struct pex_msdos *ms, int fd) argument 132 fd -= PEX_MSDOS_FD_OFFSET; 133 if (fd < 0 || fd >= PEX_MSDOS_FILE_COUNT || ms->files[fd] == NULL) 135 return fd; 142 pex_msdos_close (struct pex_obj *obj, int fd) argument 148 fdindex = pe_msdos_fdindex (ms, fd);
|
H A D | pex-unix.c | 330 pex_unix_close (struct pex_obj *obj ATTRIBUTE_UNUSED, int fd) argument 332 return close (fd); 508 pex_unix_fdopenr (struct pex_obj *obj ATTRIBUTE_UNUSED, int fd, argument 511 return fdopen (fd, "r"); 515 pex_unix_fdopenw (struct pex_obj *obj ATTRIBUTE_UNUSED, int fd, argument 518 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) 520 return fdopen (fd, "w");
|
H A D | pex-win32.c | 142 pex_win32_close (struct pex_obj *obj ATTRIBUTE_UNUSED, int fd) argument 144 return _close (fd); 630 int fd = _open (executable, _O_RDONLY); local 632 if (fd >= 0) 635 int len = _read (fd, buf, sizeof (buf) - 1); 636 _close (fd); 858 pex_win32_fdopenr (struct pex_obj *obj ATTRIBUTE_UNUSED, int fd, argument 861 return fdopen (fd, binary ? "rb" : "r"); 865 pex_win32_fdopenw (struct pex_obj *obj ATTRIBUTE_UNUSED, int fd, argument 868 HANDLE h = (HANDLE) _get_osfhandle (fd); [all...] |
/freebsd-11-stable/contrib/gcclibs/libiberty/testsuite/ |
H A D | test-expandargv.c | 159 FILE *fd; local 165 fd = fopen (filename, "w"); 166 if (fd == NULL) 179 fwrite (parse, len, sizeof (char), fd); 181 fclose (fd);
|
/freebsd-11-stable/contrib/gcclibs/libmudflap/ |
H A D | mf-hooks1.c | 312 __mf_0fn_mmap (void *start, size_t l, int prot, int f, int fd, off_t off) argument 322 int flags, int fd, off_t offset) 327 BEGIN_PROTECT (mmap, start, length, prot, flags, fd, offset); 330 flags, fd, offset); 320 WRAPPER(void *, mmap, void *start, size_t length, int prot, int flags, int fd, off_t offset) argument
|
H A D | mf-hooks2.c | 725 WRAPPER2(FILE *, fdopen, int fd, const char *mode) argument 734 p = fdopen (fd, mode);
|
H A D | mf-runtime.c | 2233 write_itoa (int fd, unsigned n) argument 2248 write (fd, m, strlen(m));
|
/freebsd-11-stable/contrib/gcclibs/libssp/ |
H A D | ssp.c | 67 int fd; local 72 fd = open ("/dev/urandom", O_RDONLY); 73 if (fd != -1) 75 ssize_t size = read (fd, &__stack_chk_guard, 77 close (fd); 98 int fd; local 102 fd = open (_PATH_TTY, O_WRONLY); 103 if (fd != -1) 121 ssize_t wrote = write (fd, buf, len); 127 close (fd); [all...] |
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | auxv.c | 54 int fd; local 61 fd = open (pathname, writebuf != NULL ? O_WRONLY : O_RDONLY); 63 if (fd < 0) 67 && lseek (fd, (off_t) offset, SEEK_SET) != (off_t) offset) 70 n = read (fd, readbuf, len); 72 n = write (fd, writebuf, len); 74 (void) close (fd);
|
/freebsd-11-stable/contrib/gdb/gdb/config/rs6000/ |
H A D | xm-rs6000.h | 83 int fd = fileno (stdout); \ 84 if (isatty (fd)) { \ 87 val = atoi (termdef (fd, 'l')); \ 90 val = atoi (termdef (fd, 'c')); \
|