/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | join.c | 298 register File_t* fp = &jp->file[index]; local 299 register Field_t* field = fp->fields; 300 register Field_t* fieldmax = field + fp->maxfields; 307 if (discard && fp->discard) 308 sfraise(fp->iop, SFSK_DISCARD, NiL); 309 fp->spaces = 0; 310 fp->hit = 0; 311 if (!(cp = sfgetr(fp->iop, '\n', 0))) 316 fp->recptr = cp; 317 fp 471 register File_t* fp = &jp->file[index]; local 562 register File_t* fp; local [all...] |
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_persist.c | 85 static int ipadm_process_db_line(db_wfunc_t *, void *, FILE *fp, FILE *nfp, 688 FILE *fp, *nfp = NULL; local 700 if ((fp = fopen(file, (writeop ? "r+" : "r"))) == NULL) 709 (void) fclose(fp); 716 (void) fclose(fp); 721 err = ipadm_process_db_line(db_walk_func, arg, fp, nfp, db_op); 731 (void) fclose(fp); 745 (void) fclose(fp); 762 ipadm_process_db_line(db_wfunc_t *db_walk_func, void *arg, FILE *fp, FILE *nfp, argument 772 while (fgets(buf, MAXLINELEN, fp) ! [all...] |
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | exrecover.c | 311 struct svfile *fp, svbuf[NENTRY]; local 329 fp = &svbuf[0]; 370 enter(fp++, filname, ecount); 386 for (fp = &svbuf[0]; fp < &svbuf[ecount]; fp++) { 387 (void)cftime((char *)cp, "%a %b %d", &fp->sf_time); 388 (void)cftime((char *)cp2, "%R", &fp->sf_time); 391 cp, cp2, fp->sf_lines, fp 401 enter(struct svfile *fp, unsigned char *fname, int count) argument 696 unsigned char *fp, *lp; local [all...] |
/illumos-gate/usr/src/cmd/vscan/vscanadm/ |
H A D | vscanadm.c | 291 vs_adm_usage(FILE *fp) argument 296 (void) fprintf(fp, "%s %s", vs_adm_cmd, cp->vac_name); 298 (void) fprintf(fp, " %s\n", cp->vac_helpid); 698 FILE *fp; local 700 if ((fp = fopen(filename, "r")) == NULL) { 707 if (fgets(buf, len, fp) == NULL) { 710 (void) fclose(fp); 714 (void) fclose(fp); 730 FILE *fp; local 733 if ((fp [all...] |
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_types.c | 31 ctf_get_ctt_size(const ctf_file_t *fp, const ctf_type_t *tp, ssize_t *sizep, argument 36 if (fp->ctf_version > CTF_VERSION_1 && 58 ctf_member_iter(ctf_file_t *fp, ctf_id_t type, ctf_member_f *func, void *arg) argument 60 ctf_file_t *ofp = fp; 66 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) 69 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL) 72 (void) ctf_get_ctt_size(fp, tp, &size, &increment); 73 kind = LCTF_INFO_KIND(fp, tp->ctt_info); 78 if (fp->ctf_version == CTF_VERSION_1 || size < CTF_LSTRUCT_THRESH) { 82 for (n = LCTF_INFO_VLEN(fp, t 109 ctf_enum_iter(ctf_file_t *fp, ctf_id_t type, ctf_enum_f *func, void *arg) argument 145 ctf_type_iter(ctf_file_t *fp, ctf_type_f *func, void *arg) argument 168 ctf_type_resolve(ctf_file_t *fp, ctf_id_t type) argument 201 ctf_type_qlname(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len, const char *qname) argument 315 ctf_type_lname(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len) argument 325 ctf_type_name(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len) argument 332 ctf_type_qname(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len, const char *qname) argument 345 ctf_type_size(ctf_file_t *fp, ctf_id_t type) argument 394 ctf_type_align(ctf_file_t *fp, ctf_id_t type) argument 458 ctf_type_kind(ctf_file_t *fp, ctf_id_t type) argument 473 ctf_type_reference(ctf_file_t *fp, ctf_id_t type) argument 501 ctf_type_pointer(ctf_file_t *fp, ctf_id_t type) argument 528 ctf_type_encoding(ctf_file_t *fp, ctf_id_t type, ctf_encoding_t *ep) argument 651 ctf_member_info(ctf_file_t *fp, ctf_id_t type, const char *name, ctf_membinfo_t *mip) argument 702 ctf_array_info(ctf_file_t *fp, ctf_id_t type, ctf_arinfo_t *arp) argument 730 ctf_enum_name(ctf_file_t *fp, ctf_id_t type, int value) argument 767 ctf_enum_value(ctf_file_t *fp, ctf_id_t type, const char *name, int *valp) argument 810 ctf_type_rvisit(ctf_file_t *fp, ctf_id_t type, ctf_visit_f *func, void *arg, const char *name, ulong_t offset, int depth) argument 867 ctf_type_visit(ctf_file_t *fp, ctf_id_t type, ctf_visit_f *func, void *arg) argument [all...] |
/illumos-gate/usr/src/lib/abi/apptrace/common/ |
H A D | apptrace.c | 209 FILE *fp; local 301 if ((fp = fdopen(newfd, "wF")) != NULL) { 302 ABISTREAM = fp;
|
/illumos-gate/usr/src/cmd/nlsadmin/ |
H A D | nlsadmin.c | 138 FILE *fp; /* used for checking netspec */ local 346 if ((fp = popen(buf, "r")) == NULL) { 351 if (fgets(buf, BUFSIZ, fp) == NULL) { 367 pclose(fp); 665 FILE *fp; local 677 if ((fp = popen(buf, "r")) == NULL) 680 while (fgets(buf, BUFSIZ, fp) != NULL) { 708 pclose(fp); 733 FILE *fp; local 744 if ((fp 1136 FILE *fp; local [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/ |
H A D | piclenvd.c | 792 FILE *fp; local 805 fp = fopen(fname, "r"); 806 if (fp == NULL) 820 for (line = 1; fgets(buf, sizeof (buf), fp) != NULL; line++) { 934 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/ |
H A D | psvc_objects_class.h | 208 FILE *fp; /* config file */ member in struct:__anon1188
|
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | common.c | 173 printer_state_line(FILE *fp, papi_printer_t p, int num_jobs, char *name) argument 187 fprintf(fp, "%s: %s", name, state_string(state)); 192 fprintf(fp, ": %s\n", reason); 194 fprintf(fp, "\n"); 196 fprintf(fp, "no entries\n"); 200 print_header(FILE *fp) argument 202 fprintf(fp, gettext("Rank\tOwner\t Job\tFile(s)\t\t\t\tTotal Size\n")); 206 print_job_line(FILE *fp, int count, papi_job_t job, int fmt, int ac, char *av[]) argument 245 fprintf(fp, gettext("%s\t%-8.8s %d\t%-32.32s%d %s\n"), 248 fprintf(fp, gettex 258 cancel_job(papi_service_t svc, FILE *fp, char *printer, papi_job_t job, int ac, char *av[]) argument 302 berkeley_queue_report(papi_service_t svc, FILE *fp, char *dest, int fmt, int ac, char *av[]) argument 354 berkeley_cancel_request(papi_service_t svc, FILE *fp, char *dest, int ac, char *av[]) argument [all...] |
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | filesys_rcm.c | 693 FILE *fp; local 743 if ((fp = fopen(MNTTAB, "r")) == NULL) { 753 while (getmntent(fp, &mt) == 0) { 765 (void) fclose(fp); 772 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | server.c | 1520 log(fp, fmt, a1, a2, a3) 1521 FILE *fp; 1530 if (!(options & VERIFY) && fp != NULL) 1531 fprintf(fp, fmt, a1, a2, a3); 1540 static FILE *fp; local 1543 if (!fp && !(fp = fdopen(rem, "w"))) 1546 (void) fprintf(fp, "%crdist: ", 0x01); 1547 (void) fprintf(fp, fmt, a1, a2, a3); 1548 fflush(fp); 1568 static FILE *fp; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | config.c | 77 static int readline(FILE *fp, char *line, int length); 228 FILE *fp; local 242 fp = open_conffile(config_file); 243 if (fp == NULL) { 249 while (readline(fp, line, sizeof (line)) != 0) { 311 (void) fclose(fp); 377 * Read from fp. Handle \ at the end of the line by joining lines together. 381 readline(FILE *fp, char *line, int length) argument 387 if (fgets(line, length, fp) == NULL) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_sg.c | 56 FILE *fp; member in struct:sg_export_arg 784 FILE *fp = larg->fp; local 791 (void) fprintf(fp, "add-server -s server="); 793 (void) fprintf(fp, "%s %s\n", linebuf, sgname); 802 FILE *fp = larg->fp; local 804 (void) fprintf(fp, "create-servergroup %s\n", sg->sgd_name); 812 if (fflush(fp) == EOF) 820 ilbadm_export_servergroups(ilb_handle_t h, FILE *fp) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop.c | 102 struct Pf_ext_packetfilt *fp = NULL; local 408 fp = &pf; 411 fp = &pf; 496 init_datalink(dh, snaplen, chunksize, &timeout, fp);
|
H A D | snoop_capture.c | 174 struct timeval *timeout, struct Pf_ext_packetfilt *fp) 216 if (fp) { 223 if (strioctl(netfd, PFIOCSETF, -1, sizeof (*fp), 224 (char *)fp) < 0) 173 init_datalink(dlpi_handle_t dh, ulong_t snaplen, ulong_t chunksize, struct timeval *timeout, struct Pf_ext_packetfilt *fp) argument
|
/illumos-gate/usr/src/cmd/consadm/ |
H A D | consadm.c | 367 FILE *fp, *nfp; local 391 if ((fp = fopen(CONSCONFIG, "r")) != NULL) { 392 while (fgets(buf, MAXPATHLEN, fp) != NULL) { 410 (void) fclose(fp); 422 FILE *fp, *nfp; local 432 if ((fp = fopen(CONSCONFIG, "r")) == NULL) { 454 while (fgets(value, MAXPATHLEN, fp) != NULL) { 468 (void) fclose(fp); 571 FILE *fp; local 601 if ((fp 617 FILE *fp; local 843 FILE *fp; local [all...] |
/illumos-gate/usr/src/cmd/coreadm/ |
H A D | coreadm.c | 514 FILE *fp; local 530 if ((fp = fopen(PATH_CONFIG, "r")) == NULL) 533 for (line = 1; fgets(buf, sizeof (buf), fp) != NULL; line++) { 601 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.glob.c | 926 char *dp, *fp; local 929 fp = dir; 930 while (*fp) 931 *dp++ = *fp++; 934 fp = file; 935 while (*fp) 936 *dp++ = *fp++;
|
H A D | sh.lex.c | 151 copylex(struct wordent *hp, struct wordent *fp) argument 159 fp = fp->next; 167 wdp->word = savestr(fp->word); 168 fp = fp->next; 176 struct wordent *fp; local 182 fp = vp->next; 183 vp->next = fp->next; 184 xfree(fp [all...] |
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/ |
H A D | mhd_drive.c | 450 FILE *fp; local 481 if ((fp = fopen(METACTLRMAP, "r")) == NULL) { 485 clearerr(fp); 486 while (fgets(line, sizeof (line), fp) != NULL) { 519 if (ferror(fp)) { 521 (void) fclose(fp); 524 if (fclose(fp) != 0) {
|
/illumos-gate/usr/src/cmd/man/ |
H A D | makewhatis.c | 628 FILE *fp; local 637 if ((fp = fopen(page->filename, "r")) == NULL) { 641 while (getline(&line, &linecap, fp) > 0) { 692 (void) fclose(fp); 811 FILE *fp = NULL; local 825 if ((fp = open_whatis(path)) == NULL) 836 finish_whatis(fp, path);
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb.c | 872 mdb_frame_t *fp = mdb.m_frame; local 882 fp->f_cp = mdb_list_next(&fp->f_cmds); 887 for (cp = mdb_list_next(&fp->f_cmds); cp; cp = mdb_list_next(cp)) { 891 mdb_iob_stack_push(&fp->f_istk, mdb.m_in, yylineno); 894 mdb_iob_stack_push(&fp->f_ostk, mdb.m_out, 0); 900 bcopy(fp->f_pcb, pcb, sizeof (jmp_buf)); 901 ASSERT(fp->f_pcmd == NULL); 902 fp->f_pcmd = ncp; 904 mdb_frame_set_pipe(fp); [all...] |
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | msgfmt.c | 891 FILE *fp; local 913 fp = fopen(fname, "w"); 914 if (fp == NULL) { 957 (void) fwrite(&i, sizeof (int), 1, fp); 958 (void) fwrite(&message_count, sizeof (int), 1, fp); 959 (void) fwrite(&string_count_msgid, sizeof (int), 1, fp); 960 (void) fwrite(&string_count_msg, sizeof (int), 1, fp); 962 (void) fwrite(&i, sizeof (int), 1, fp); 968 (void) fwrite(&less[i], sizeof (int), 1, fp); 969 (void) fwrite(&more[i], sizeof (int), 1, fp); [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_log.c | 558 ea_object_t *egrp, *ip, **fp; local 603 fe = fp = fmd_zalloc(frsize, FMD_SLEEP); 604 *fp++ = ip; 672 ea_object_t **fp = fe; local 675 for (; *fp != NULL && i < cip->ci_nitems; i++) 676 (void) ea_free_item(*fp++, EUP_ALLOC);
|