Home
last modified time | relevance | path

Searched refs:fp (Results 276 – 300 of 1263) sorted by relevance

1...<<11121314151617181920>>...51

/illumos-gate/usr/src/cmd/bnu/
H A Duux.c749 fp = fopen(tfile, "a");
751 setbuf(fp, CNULL);
756 ASSERT(fflush(fp) != EOF && ferror(fp) == 0, Ct_WRITE, dfile, errno);
757 (void) fclose(fp);
826 fp = fopen(tfile, "a");
828 setbuf(fp, CNULL);
831 ASSERT(fflush(fp) != EOF && ferror(fp) == 0, Ct_WRITE, dfile, errno);
832 (void) fclose(fp);
841 setbuf(fp, CNULL);
849 ASSERT(fflush(fp) != EOF && ferror(fp) == 0, Ct_WRITE, t2file, errno);
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/mdb/
H A Dmdb_amd64util.c245 while (fp != 0) { in mdb_amd64_kvm_stack_iter()
255 tortoise_fp = fp; in mdb_amd64_kvm_stack_iter()
274 if (fp == tortoise_fp) { in mdb_amd64_kvm_stack_iter()
357 (fp - size)) != size) in mdb_amd64_kvm_stack_iter()
390 lastfp = fp; in mdb_amd64_kvm_stack_iter()
391 fp = fr.fr_savfp; in mdb_amd64_kvm_stack_iter()
400 if ((fp != 0) && (fp < lastfp) && in mdb_amd64_kvm_stack_iter()
402 fp = ~fp; in mdb_amd64_kvm_stack_iter()
404 kregs[KREG_RBP] = fp; in mdb_amd64_kvm_stack_iter()
440 fp = sp - 8; in mdb_amd64_step_out()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_state.c2539 if (fp->rf_vp) { in rfs4_file_destroy()
2583 fp->rf_vp = vp; in rfs4_file_create()
2588 fp->rf_share_deny = fp->rf_share_access = fp->rf_access_read = 0; in rfs4_file_create()
2589 fp->rf_access_write = fp->rf_deny_read = fp->rf_deny_write = 0; in rfs4_file_create()
2622 if (fp) { in rfs4_findfile()
2627 fp = NULL; in rfs4_findfile()
2635 return (fp); in rfs4_findfile()
2657 if (fp) { in rfs4_findfile_withlock()
2663 fp = NULL; in rfs4_findfile_withlock()
2672 fp = NULL; in rfs4_findfile_withlock()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Drewind.c36 sm_io_rewind(fp, timeout)
37 register SM_FILE_T *fp;
40 SM_REQUIRE_ISA(fp, SmFileMagic);
41 (void) sm_io_seek(fp, timeout, 0L, SM_IO_SEEK_SET);
42 (void) sm_io_clearerr(fp);
H A Dfprintf.c38 sm_io_fprintf(SM_FILE_T *fp, int timeout, const char *fmt, ...) in sm_io_fprintf() argument
40 sm_io_fprintf(fp, timeout, fmt, va_alist) in sm_io_fprintf()
41 SM_FILE_T *fp; in sm_io_fprintf()
50 SM_REQUIRE_ISA(fp, SmFileMagic);
52 ret = sm_io_vfprintf(fp, timeout, fmt, ap);
H A Dfscanf.c38 sm_io_fscanf(SM_FILE_T *fp, int timeout, char const *fmt, ...) in sm_io_fscanf() argument
40 sm_io_fscanf(fp, timeout, fmt, va_alist) in sm_io_fscanf()
41 SM_FILE_T *fp; in sm_io_fscanf()
50 SM_REQUIRE_ISA(fp, SmFileMagic);
52 ret = sm_vfscanf(fp, timeout, fmt, ap);
/illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/
H A Dktutil_funcs.c356 static int getstr(fp, s, n) in getstr() argument
357 FILE *fp; in getstr()
386 FILE *fp; local
393 fp = fopen(name, "r");
394 if (!fp)
461 fclose(fp);
477 FILE *fp; local
531 fp = fopen(name, "w");
532 if (!fp) {
547 fwrite((char *)&kvno, 1, 1, fp);
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/backend/
H A Ddegenerate-ptr.c34 int (*fp)(int); in local() local
44 fp = fun; in local()
45 fp = &fun; in local()
52 extern int (*fp)(int);
65 fp = fun; in global()
66 fp = &fun; in global()
/illumos-gate/usr/src/boot/libsa/zfs/
H A Dzfs.c108 if (fp == NULL) in zfs_open()
116 free(fp); in zfs_open()
129 free(fp); in zfs_close()
153 rc = dnode_read(spa, &fp->f_dnode, fp->f_seekp, start, n); in zfs_read()
222 rc = dnode_read(spa, &fp->f_dnode, 0, &fp->f_zap_type, in zfs_readdir()
232 &fp->f_num_leafs, sizeof (fp->f_num_leafs)); in zfs_readdir()
240 rc = dnode_read(spa, &fp->f_dnode, fp->f_seekp, in zfs_readdir()
252 rc = dnode_read(spa, &fp->f_dnode, fp->f_seekp, &mze, in zfs_readdir()
289 fp->f_seekp = (fp->f_seekp & ~(bsize - 1)) + bsize; in zfs_readdir()
295 if (fp->f_seekp >= bsize * fp->f_num_leafs) in zfs_readdir()
[all …]
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kclose.c65 file_t *fp; in t_kclose() local
67 fp = (tiptr->flags & MADE_FP) ? tiptr->fp : NULL; in t_kclose()
71 if (fp != NULL) in t_kclose()
72 (void) closef(fp); in t_kclose()
/illumos-gate/usr/src/test/util-tests/tests/ctf/
H A Dcheck-enum.c122 ctf_file_t *fp; in main() local
125 if ((fp = ctf_open(argv[i], &ret)) == NULL) { in main()
131 if (!ctftest_check_symbols(fp, check_syms)) in main()
134 if (!ctftest_check_descent(descents[d].cdt_sym, fp, in main()
141 if (!ctftest_check_enum(enums[d].cet_type, fp, in main()
149 fp, size_enums[d].cst_size)) { in main()
154 ctf_close(fp); in main()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dfriendly.c41 FILE *fp; in ldap_friendly_name() local
53 if ( (fp = fopen( filename, "rF" )) == NULL ) in ldap_friendly_name()
57 while ( fgets( buf, sizeof(buf), fp ) != NULL ) { in ldap_friendly_name()
61 rewind( fp ); in ldap_friendly_name()
65 fclose( fp ); in ldap_friendly_name()
70 while ( fgets( buf, sizeof(buf), fp ) != NULL && i < entries ) { in ldap_friendly_name()
105 fclose( fp ); in ldap_friendly_name()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetpw.c50 FILE *fp; in getpw() local
54 fp = fopen(PASSWD, "rF"); in getpw()
57 if ((pwf = fp) == NULL) { in getpw()
61 fp = NULL; in getpw()
64 if (fp != NULL) /* someone beat us to it */ in getpw()
65 (void) fclose(fp); in getpw()
/illumos-gate/usr/src/cmd/dtrace/test/tst/i386/ustack/
H A Dtst.helper.c52 uint8_t *fp = malloc(sizeof (instr)); in foo() local
57 *((int *)&instr[4]) = (uintptr_t)baz - (uintptr_t)&fp[8]; in foo()
63 bcopy(instr, fp, sizeof (instr)); in foo()
65 (*(int (*)(void))fp)(); in foo()
67 free(fp); in foo()
/illumos-gate/usr/src/cmd/dtrace/test/tst/sparc/ustack/
H A Dtst.helper.c51 uint32_t *fp = malloc(sizeof (instr)); in foo() local
56 instr[1] |= ((uintptr_t)baz - (uintptr_t)&fp[1]) >> 2; in foo()
62 bcopy(instr, fp, sizeof (instr)); in foo()
64 (*(int (*)(void))fp)(); in foo()
66 free(fp); in foo()
/illumos-gate/usr/src/lib/libmvec/common/vis/
H A D__vlogf.S275 st %i0,[%fp+tmp0]
276 stx %i1,[%fp+tmp5]
299 ldx [%fp+tmp5],x0
300 st %g0,[%fp+tmp0]
883 stx x0,[%fp+tmp5]
897 stx x0,[%fp+tmp5]
910 stx x1,[%fp+tmp5]
923 stx x1,[%fp+tmp5]
937 stx x1,[%fp+tmp5]
952 stx x1,[%fp+tmp5]
[all …]
H A D__vpow.S1057 stx px,[%fp+tmp_px]
1060 stx py,[%fp+tmp_py]
1102 ldx [%fp+tmp_px],px
1103 ldx [%fp+tmp_py],py
2118 st %o5,[%fp+%o7]
2149 stx px,[%fp+tmp_px]
2230 st %o5,[%fp+%o7]
2350 st %o5,[%fp+%o7]
2483 st %o5,[%fp+%o7]
2662 st %o5,[%fp+%o7]
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_vcb.c156 mdb_vcb_insert(mdb_vcb_t *vcb, mdb_frame_t *fp) in mdb_vcb_insert() argument
158 if (fp->f_pcmd != NULL) { in mdb_vcb_insert()
159 mdb_cmd_t *cp = fp->f_pcmd; in mdb_vcb_insert()
171 mdb_vcb_update(struct mdb_frame *fp, uintptr_t value) in mdb_vcb_update() argument
175 for (vcb = fp->f_pcmd->c_vcbs; vcb != NULL; vcb = vcb->vc_link) { in mdb_vcb_update()
187 mdb_vcb_find(mdb_var_t *var, mdb_frame_t *fp) in mdb_vcb_find() argument
191 if (fp->f_pcmd != NULL) { in mdb_vcb_find()
192 vcb = fp->f_pcmd->c_vcbs; in mdb_vcb_find()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_hc.c44 FILE *fp; member
457 FILE *fp = ((hc_export_arg_t *)arg)->fp; in ilbadm_export_hcinfo() local
467 (void) fprintf(fp, "create-healthcheck -n -h "); in ilbadm_export_hcinfo()
469 (void) fprintf(fp, "create-healthcheck -h "); in ilbadm_export_hcinfo()
477 (void) fprintf(fp, ","); in ilbadm_export_hcinfo()
482 (void) fprintf(fp, ","); in ilbadm_export_hcinfo()
487 (void) fprintf(fp, ","); in ilbadm_export_hcinfo()
495 ret = fprintf(fp, " %s\n", hc_info->hci_name); in ilbadm_export_hcinfo()
498 ret = fflush(fp); in ilbadm_export_hcinfo()
507 ilbadm_export_hc(ilb_handle_t h, FILE *fp) in ilbadm_export_hc() argument
[all …]
/illumos-gate/usr/src/cmd/acctadm/
H A Daconf.c252 (void) fprintf(fp, in aconf_print_type()
256 (void) fprintf(fp, in aconf_print_type()
259 (void) fprintf(fp, in aconf_print_type()
262 (void) fprintf(fp, in aconf_print_type()
267 (void) fprintf(fp, in aconf_print_type()
271 (void) fprintf(fp, in aconf_print_type()
274 (void) fprintf(fp, in aconf_print_type()
277 (void) fprintf(fp, in aconf_print_type()
282 (void) fprintf(fp, in aconf_print_type()
286 (void) fprintf(fp, in aconf_print_type()
[all …]
/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dfileutil.c42 static char *retrieve_string(FILE *fp, char *line, int buffersize);
64 fileutil_get_first_column_data(FILE *fp, int *num_elements, int *errp) in fileutil_get_first_column_data() argument
74 retrieve_string(fp, line, BUFSIZE)) != NULL) { in fileutil_get_first_column_data()
112 fileutil_getfs(FILE *fp) in fileutil_getfs() argument
117 while (s = fgets(buff, BUFSIZE, fp)) { in fileutil_getfs()
132 fileutil_getline(FILE *fp, char *line, int linesz) in fileutil_getline() argument
137 while (fgets(line, linesz, fp) != NULL) { in fileutil_getline()
242 retrieve_string(FILE *fp, char *line, int buffersize) in retrieve_string() argument
248 fileutil_getline(fp, line, buffersize)) != NULL) { in retrieve_string()
/illumos-gate/usr/src/lib/libproc/sparcv9/
H A DPisadep.c54 file_info_t *fp; in Ppltdest() local
57 if (mp == NULL || (fp = mp->map_file) == NULL || in Ppltdest()
58 fp->file_plt_base == 0 || pltaddr < fp->file_plt_base || in Ppltdest()
59 pltaddr >= fp->file_plt_base + fp->file_plt_size) { in Ppltdest()
68 pltoff = pltaddr - fp->file_plt_base; in Ppltdest()
70 i = (pltaddr - fp->file_plt_base - in Ppltdest()
88 Elf_Data *data = fp->file_dynsym.sym_data_pri; in Ppltdest()
97 i = (pltaddr - fp->file_plt_base - in Ppltdest()
345 prgreg_t fp; in Pstack_iter() local
357 fp = gregs[R_FP]; in Pstack_iter()
[all …]
/illumos-gate/usr/src/cmd/dumpadm/
H A Ddconf.c543 dconf_print(dumpconf_t *dcp, FILE *fp) in dconf_print() argument
562 (void) fprintf(fp, gettext(" Dump device: none " in dconf_print()
572 (void) fprintf(fp, gettext(" (minfree = %lluMB)"), in dconf_print()
576 (void) fprintf(fp, gettext("\n")); in dconf_print()
675 print_content(const dumpconf_t *dcp, FILE *fp) in print_content() argument
686 return (fprintf(fp, "%s\n", content)); in print_content()
690 print_device(const dumpconf_t *dcp, FILE *fp) in print_device() argument
697 print_enable(const dumpconf_t *dcp, FILE *fp) in print_enable() argument
704 print_csave(const dumpconf_t *dcp, FILE *fp) in print_csave() argument
711 print_savdir(const dumpconf_t *dcp, FILE *fp) in print_savdir() argument
[all …]
/illumos-gate/usr/src/cmd/saf/
H A Dsacadm.c375 if (fp == NULL) { in main()
384 (void) fclose(fp); in main()
459 if (fp == NULL) {
468 (void) fclose(fp);
619 if (fp == NULL) {
627 (void) fclose(fp);
686 if (fp == NULL) {
709 (void) fclose(fp);
980 if (fp == NULL) {
1015 if (!feof(fp)) {
[all …]
/illumos-gate/usr/src/lib/pam_modules/dial_auth/
H A Ddial_auth.c56 FILE *fp; in pam_sm_authenticate() local
99 if ((fp = fopen(DIAL_FILE, "rF")) == NULL) in pam_sm_authenticate()
102 while ((p1 = fgets(line, sizeof (line), fp)) != NULL) { in pam_sm_authenticate()
110 (void) fclose(fp); in pam_sm_authenticate()
112 if ((fp = fopen(DPASS_FILE, "rF")) == NULL) { in pam_sm_authenticate()
121 (void) fclose(fp); in pam_sm_authenticate()
128 while ((p1 = fgets(line, sizeof (line)-1, fp)) != NULL) { in pam_sm_authenticate()
145 (void) fclose(fp); in pam_sm_authenticate()

1...<<11121314151617181920>>...51