/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getusershell.c | 124 FILE *fp; local 133 if ((fp = fopen(SHELLS, "rF")) == (FILE *)0) 147 if ((fstat(fileno(fp), &statb) == -1) || (statb.st_size > LONG_MAX) || 149 (void) fclose(fp); 154 (void) fclose(fp); 161 while (fgets(cp, MAXPATHLEN + 1, fp) != NULL) { 172 (void) fclose(fp);
|
H A D | walkstack.c | 86 * %fp + sizeof (struct frame) == oldcontext 134 #define CHECK_FOR_SIGFRAME(fp, oldctx) ((fp) + SA(sizeof (struct frame)) \ 140 #define CHECK_FOR_SIGFRAME(fp, oldctx) ((((fp) + sizeof (struct frame)) + \ 142 (((struct frame *)fp)->fr_savpc == (greg_t)-1)) 147 #define CHECK_FOR_SIGFRAME(fp, oldctx) ((((fp) + sizeof (struct frame)) + \ 149 (((struct frame *)fp)->fr_savpc == (greg_t)-1)) 162 read_safe(int fd, struct frame *fp, struc argument 209 struct frame *fp = (struct frame *) local [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | friendly.c | 49 FILE *fp; local 62 if ( (fp = fopen( filename, "rF" )) == NULL ) 66 while ( fgets( buf, sizeof(buf), fp ) != NULL ) { 70 rewind( fp ); 74 fclose( fp ); 79 while ( fgets( buf, sizeof(buf), fp ) != NULL && i < entries ) { 114 fclose( fp );
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | sttydefs.c | 247 FILE *fp; local 259 if ((fp = fopen(TTYDEFS, "r")) != NULL) { 265 if (find_label(fp,ttydef->g_id)) { 266 (void)fclose(fp); 272 (void)fclose(fp); 277 if ((fp = fopen(TTYDEFS, "a+")) == NULL) { 284 (void)fprintf(fp,"# VERSION=%d\n", TTYDEFS_VERS); 306 (void)fprintf(fp,"%s:%s:%s:A:%s\n", ttydef->g_id, ttydef->g_iflags, 310 (void)fprintf(fp,"%s:%s:%s::%s\n", ttydef->g_id, ttydef->g_iflags, 313 (void)fclose(fp); 323 FILE *fp; /* scratch file pointer */ local 381 FILE *fp; /* fp associated with tname */ local [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lseek.c | 77 lseek32_common(file_t *fp, int stype, offset_t off, offset_t max, argument 87 vp = fp->f_vnode; 90 curoff = fp->f_offset; 115 if (error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL)) { 145 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL); 154 fp->f_offset = (offset_t)noff; 174 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL); 185 fp->f_offset = (offset_t)noff; 197 fp->f_offset = newoff; 208 file_t *fp; local 246 file_t *fp; local 276 file_t *fp; local [all...] |
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | tail.c | 154 tailpos(register Sfio_t* fp, register Sfoff_t number, int delim) argument 164 last = sfsize(fp); 165 if ((first = sfseek(fp, (Sfoff_t)0, SEEK_CUR)) < 0) 166 return last || fstat(sffileno(fp), &st) || st.st_size || FIFO(st.st_mode) ? -1 : 0; 177 sfseek(fp, offset, SEEK_SET); 179 if (!(s = sfreserve(fp, n, SF_LOCKR))) 185 sfread(fp, s, 0); 188 sfread(fp, s, 0); 423 register Tail_t* fp; local 613 if (!(fp [all...] |
H A D | wc.c | 95 Sfio_t *fp; local 157 fp = sfstdin; 158 else if (!(fp = sfopen(NiL,cp,"r"))) 165 if (!(mode&(WC_WORDS|WC_LINES|WC_MBYTE|WC_LONGEST)) && fstat(sffileno(fp),&statb)>=0 168 wp->chars = statb.st_size - lseek(sffileno(fp),0L,1); 169 lseek(sffileno(fp),0L,2); 172 wc_count(wp, fp, cp); 173 if (fp!=sfstdin) 174 sfclose(fp);
|
/illumos-gate/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_pr.c | 166 __memp_dump_region(dbmp, area, fp) 169 FILE *fp; 181 if (fp == NULL) 182 fp = stderr; 205 (void)fprintf(fp, "%s\nPool (region addr 0x%lx, alloc addr 0x%lx)\n", 212 (void)fprintf(fp, "file #%d: %s: refs %lu, type %ld, %s\n", 222 (void)fprintf(fp, "file #%d: %s: fd: %d: per-process, %s\n", 235 (void)fprintf(fp, 241 (void)fprintf(fp, "%lu:\n", (u_long)bucket); 244 __memp_pbh(dbmp, bhp, fmap, fp); [all...] |
/illumos-gate/usr/src/common/fs/ |
H A D | bootfsops.c | 139 bfile_t *fp; local 150 if ((fp = bkmem_alloc(sizeof (bfile_t))) == NULL) { 156 canonicalise(cpath, fp->bf_name); 161 bkmem_free(fp, sizeof (bfile_t)); 165 fp->bf_addr = (void *)(uintptr_t)propval; 170 bkmem_free(fp, sizeof (bfile_t)); 174 fp->bf_size = (size_t)propval; 175 fp->bf_ino = i; 177 fp->bf_next = head; 178 head = fp; 189 bfile_t *fp; local 306 bfile_t *fp; local [all...] |
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | cd9660.c | 276 struct file *fp = NULL; local 376 fp = malloc(sizeof(struct file)); 377 bzero(fp, sizeof(struct file)); 378 f->f_fsdata = (void *)fp; 381 fp->f_flags = F_ISDIR; 384 fp->f_flags |= F_ROOTDIR; 401 fp->f_flags |= F_RR; 402 fp->f_susp_skip = lenskip; 404 fp->f_off = 0; 405 fp 422 struct file *fp = (struct file *)f->f_fsdata; local 433 struct file *fp = (struct file *)f->f_fsdata; local 468 struct file *fp = (struct file *)f->f_fsdata; local 497 struct file *fp = (struct file *)f->f_fsdata; local 568 struct file *fp = (struct file *)f->f_fsdata; local 589 struct file *fp = (struct file *)f->f_fsdata; local [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pidle.c | 126 idle_add_mapping(struct ps_prochandle *P, GElf_Phdr *php, file_info_t *fp) argument 136 (void) strncpy(pmap.pr_mapname, fp->file_pname, 151 return (Padd_mapping(P, php->p_offset, fp, &pmap)); 162 file_info_t *fp = NULL; local 203 if ((fp = calloc(1, sizeof (file_info_t))) == NULL) { 208 if ((fp->file_lo = calloc(1, sizeof (rd_loadobj_t))) == NULL) { 214 (void) strncpy(fp->file_pname, fname, sizeof (fp->file_pname)); 218 if (getcwd(fp->file_pname, sizeof (fp [all...] |
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | eftwrite.c | 84 FILE *fp = (FILE *)arg; local 86 (void) fwrite(s, strlen(s) + 1, 1, fp); 93 FILE *fp = (FILE *)arg; local 95 (void) fwrite(s, strlen(s) + 1, 1, fp); 101 FILE *fp; local 140 if ((fp = fopen(fname, "w")) == NULL) 162 (void) fwrite(&hdr, sizeof (hdr), 1, fp); 163 if (ferror(fp)) 167 lut_walk(Ident, (lut_cb)ident_printer, (void *)fp); 169 lut_walk(Dicts, (lut_cb)dict_printer, (void *)fp); [all...] |
/illumos-gate/usr/src/cmd/saf/ |
H A D | admutil.c | 117 FILE *fp; /* fp associated with tname */ local 134 fp = fopen(tname, "w"); 135 if (fp == NULL) { 139 return(fp); 172 * args: fp - source file's file pointer 179 copy_file(FILE *fp, FILE *tfp, int start, int finish) argument 188 rewind(fp); 196 if (!fgets(dummy, SIZE, fp)) 206 if (!fgets(dummy, SIZE, fp)) 236 find_pm(FILE *fp, char *pmtag) argument [all...] |
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | getpcstack.c | 58 struct frame *fp; local 127 fp = (struct frame *)((caddr_t)getfp() + STACK_BIAS); 129 minfp = fp; 131 if (((uintptr_t)fp - base) >= size) 138 nextfp = (struct frame *)((caddr_t)fp->fr_savfp + STACK_BIAS); 143 * increasing compared to the last %fp (or the top of the 180 if (check_signal && (fp->fr_savpc - sigbase) <= sigsize) 183 pcstack[depth++] = fp->fr_savpc; 184 fp = nextfp; 185 minfp = fp; [all...] |
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | memstat.c | 202 static FILE *fp; 217 fp = fopen("/proc/meminfo", "r"); 218 return (fp != NULL) ? 0 : errno; 234 if (fp != NULL) 236 fclose(fp); 237 fp = NULL; 267 if (fp == NULL) 269 rewind(fp); 273 while (fgets(buf, sizeof(buf), fp) != NULL)
|
/illumos-gate/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_send.c | 71 static FILE *fp; /* File pointer for receipient's terminal */ variable 79 extern FILE *fp; 121 fp = fopen(&rterminal[0], "w"); 134 (void) fprintf(fp, gettext( 138 fprintf(fp, gettext("\r\nMessage to %s"), msg); 139 fflush(fp); 144 fclose(fp); 190 extern FILE *fp; 192 (void) fprintf(fp, "%s\r\n", gettext("<EOT>"));
|
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg_lockdmsg.c | 145 FILE *fp; local 153 fp = fopen("/tmp/locktag", "a"); 154 if (fp) { 156 fprintf(fp, "%19.19s read lock acquired\n", ctime(&t)); 157 fclose(fp); 167 FILE *fp; local 175 fp = fopen("/tmp/locktag", "a"); 176 if (fp) { 178 fprintf(fp, "%19.19s write lock acquired\n", ctime(&t)); 179 fclose(fp); 189 FILE *fp; local 280 FILE *fp; local [all...] |
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | trace.c | 58 static FILE *fp; local 65 fp = fopen("trace.out", "wF"); 66 if (fp == (FILE *) 0) { 74 (void) vfprintf(fp, fmt, vp); 76 fputc('\n', fp);
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetgr.c | 35 putgrent(const struct group *grp, FILE *fp) argument 44 if (fprintf(fp, "%s:%s:%u:", 54 if (fputs(*mem++, fp) == EOF) 58 if (fprintf(fp, ",%s", *mem++) == EOF) 61 if (putc('\n', fp) == EOF)
|
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/i386/ |
H A D | elf32_freebsd.c | 63 elf32_exec(struct preloaded_file *fp) argument 70 if ((md = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL) 74 err = bi_load(fp->f_args, &boothowto, &bootdev, &bootinfop, &modulep, &kernend); 81 ldr_enter(fp->f_name); 90 elf32_obj_exec(struct preloaded_file *fp) argument
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | bf.c | 89 ** fp -- file pointer being filled-in for file being open'd 100 sm_bfopen(fp, info, flags, rpool) 101 SM_FILE_T *fp; 178 fp->f_cookie = bfp; 259 ** fp -- file pointer to get info about 265 sm_bfgetinfo(fp, what, valp) 266 SM_FILE_T *fp; 272 bfp = (struct bf *) fp->f_cookie; 288 ** fp -- cookie of file to close 301 sm_bfclose(fp) [all...] |
/illumos-gate/usr/src/uts/sun4/io/efcode/ |
H A D | fc_subr.c | 146 struct fc_request *fp, *qp; local 157 fp = kmem_zalloc(sizeof (struct fc_request), KM_SLEEP); 159 fp->next = NULL; 160 fp->busy = FC_R_INIT; 161 fp->error = FC_SUCCESS; 162 fp->ap_dip = ap; 163 fp->ap_ops = ops; 164 fp->handle = handle; 172 fc_request_head = fp; 176 qp->next = fp; 236 struct fc_request *fp = arg; local 280 struct fc_request *fp; local 309 fc_finish_request(struct fc_request *fp) argument 342 struct fc_resource *fp; local [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_pr.c | 86 FILE * fp; member in struct:pvt 143 if (pvt->fp) 144 (void) fclose(pvt->fp); 184 if (pvt->fp) { 185 if (fseek(pvt->fp, 0L, SEEK_SET) == 0) 187 (void)fclose(pvt->fp); 189 if (!(pvt->fp = fopen(_PATH_PROTOCOLS, "r" ))) 191 if (fcntl(fileno(pvt->fp), F_SETFD, 1) < 0) { 192 (void)fclose(pvt->fp); 193 pvt->fp [all...] |
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | ids.c | 286 FILE *fp; local 289 fp = fopen (path, "r"); 290 if (fp == NULL) { 295 fseek (fp, 0, SEEK_END); 296 pci_ids_len = ftell (fp); 297 fseek (fp, 0, SEEK_SET); 305 num_read = fread (pci_ids, sizeof (char), pci_ids_len, fp); 309 fclose(fp); 313 fclose(fp); 503 FILE *fp; local [all...] |
/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_kopen.c | 69 t_kopen(file_t *fp, dev_t rdev, int flags, TIUSER **tiptr, cred_t *cr) argument 87 KTLILOG(2, "t_kopen: fp %x, ", fp); 94 if (fp == NULL) { 104 if ((error = falloc(NULL, flags, &fp, NULL)) != 0) { 110 if (cr != fp->f_cred) { 112 crfree(fp->f_cred); 113 fp->f_cred = cr; 132 unfalloc(fp); 137 * fp i [all...] |