/titanic_44/usr/src/test/zfs-tests/tests/functional/ctime/ |
H A D | ctime_001_pos.c | 52 int (*func)(const char *pfile); 71 get_file_time(const char *pfile, int what, time_t *ptr) in get_file_time() argument 75 if (pfile == NULL || ptr == NULL) { in get_file_time() 79 if (stat(pfile, &stat_buf) == -1) { in get_file_time() 99 do_read(const char *pfile) in do_read() argument 104 if (pfile == NULL) { in do_read() 108 if ((fd = open(pfile, O_RDONLY, ALL_MODE)) == -1) { in do_read() 122 do_write(const char *pfile) in do_write() argument 127 if (pfile == NULL) { in do_write() 131 if ((fd = open(pfile, O_WRONLY, ALL_MODE)) == -1) { in do_write() [all …]
|
/titanic_44/usr/src/cmd/awk/ |
H A D | main.c | 51 static uchar **pfile = NULL; /* program filenames from -f's */ variable 94 pfile = realloc(pfile, sizeof (uchar *) * (npfile + 1)); in main() 95 if (pfile == NULL) in main() 97 pfile[npfile++] = (uchar *)argv[1]; in main() 184 yyin = (strcmp((char *)pfile[curpfile], "-") == 0) ? in pgetc() 185 stdin : fopen((char *)pfile[curpfile], "r"); in pgetc() 188 pfile[curpfile] FATAL; in pgetc()
|
/titanic_44/usr/src/cmd/krb5/ldap_util/ |
H A D | kdb5_ldap_services.c | 1078 FILE *pfile = NULL; local 1097 pfile = fopen(file_name, "r+F"); 1098 if (pfile == NULL) { 1107 fclose(pfile); 1117 fclose(pfile); 1122 while (fgets(line, MAX_LEN, pfile) != NULL) { 1132 fclose(pfile); 1138 fclose(pfile); 1556 FILE *pfile = NULL; local 1787 pfile = fopen(file_name, "r+F"); [all …]
|
/titanic_44/usr/src/cmd/hal/addons/cpufreq/ |
H A D | addon-cpufreq.c | 140 FILE *pfile; in edit_power_conf_file() local 167 pfile = fopen (tmp_file, "r+"); in edit_power_conf_file() 168 if (pfile == NULL) { in edit_power_conf_file() 208 while (fgets (tstr, FILE_ARR_SIZE, pfile) != NULL) { in edit_power_conf_file() 228 if (fseek (pfile, fset, SEEK_SET) != 0) { in edit_power_conf_file() 246 if (fseek (pfile, next_fset, SEEK_SET) != 0) { in edit_power_conf_file() 252 if (fgets (tstr, FILE_ARR_SIZE, pfile) != NULL) { in edit_power_conf_file() 256 fseek (pfile, fset, SEEK_SET); in edit_power_conf_file() 257 fputs (temp_str, pfile); in edit_power_conf_file() 260 fseek (pfile, next_fset, SEEK_SET); in edit_power_conf_file() [all …]
|
/titanic_44/usr/src/cmd/cmd-crypto/cryptoadm/ |
H A D | adm_util.c | 114 FILE *pfile; in update_conf() local 125 if ((pfile = fopen(conf_file, "r+")) == NULL) { in update_conf() 134 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) { in update_conf() 139 (void) fclose(pfile); in update_conf() 152 (void) fclose(pfile); in update_conf() 160 (void) fclose(pfile); in update_conf() 173 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in update_conf() 256 (void) fclose(pfile); in update_conf()
|
H A D | adm_uef.c | 784 FILE *pfile; in uninstall_uef_lib() local 811 if ((pfile = fopen(_PATH_PKCS11_CONF, "r+")) == NULL) { in uninstall_uef_lib() 820 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) { in uninstall_uef_lib() 825 (void) fclose(pfile); in uninstall_uef_lib() 839 (void) fclose(pfile); in uninstall_uef_lib() 853 (void) fclose(pfile); in uninstall_uef_lib() 863 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in uninstall_uef_lib() 912 (void) fclose(pfile); in uninstall_uef_lib() 923 (void) fclose(pfile); in uninstall_uef_lib() 1124 FILE *pfile; in update_pkcs11conf() local [all …]
|
H A D | adm_kef_util.c | 702 FILE *pfile = NULL; in get_kcfconf_info() local 708 if ((pfile = fopen(_PATH_KCF_CONF, "r")) == NULL) { in get_kcfconf_info() 715 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in get_kcfconf_info() 746 (void) fclose(pfile); in get_kcfconf_info() 953 FILE *pfile = NULL; in update_kcfconf() local 991 if ((pfile = fopen(_PATH_KCF_CONF, "r+")) == NULL) { in update_kcfconf() 1001 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) { in update_kcfconf() 1006 (void) fclose(pfile); in update_kcfconf() 1020 (void) fclose(pfile); in update_kcfconf() 1028 (void) fclose(pfile); in update_kcfconf() [all …]
|
H A D | adm_kef.c | 702 FILE *pfile = NULL; in install_kef() local 741 if ((pfile = fopen(_PATH_KCF_CONF, "r+")) == NULL) { in install_kef() 751 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) { in install_kef() 757 (void) fclose(pfile); in install_kef() 771 (void) fclose(pfile); in install_kef() 780 (void) fclose(pfile); in install_kef() 792 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in install_kef() 833 (void) fclose(pfile); in install_kef()
|
/titanic_44/usr/src/cmd/cmd-crypto/kmfcfg/ |
H A D | uninstall.c | 50 FILE *pfile = NULL; in kc_uninstall() local 115 if ((pfile = fopen(_PATH_KMF_CONF, "r+")) == NULL) { in kc_uninstall() 124 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) { in kc_uninstall() 160 while (fgets(buffer, MAXPATHLEN, pfile) != NULL) { in kc_uninstall() 219 if (pfile != NULL) in kc_uninstall() 220 (void) fclose(pfile); in kc_uninstall()
|
H A D | install.c | 54 FILE *pfile = NULL; in kc_install() local 173 if ((pfile = fopen(_PATH_KMF_CONF, "r+")) == NULL) { in kc_install() 182 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) { in kc_install() 218 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in kc_install() 282 if (pfile != NULL) in kc_install() 283 (void) fclose(pfile); in kc_install()
|
H A D | modify.c | 956 FILE *pfile = NULL; in kc_modify_plugin() local 1050 if ((pfile = fopen(_PATH_KMF_CONF, "r+")) == NULL) { in kc_modify_plugin() 1059 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) { in kc_modify_plugin() 1093 while (fgets(buffer, MAXPATHLEN, pfile) != NULL) { in kc_modify_plugin() 1173 if (pfile != NULL) in kc_modify_plugin() 1174 (void) fclose(pfile); in kc_modify_plugin()
|
/titanic_44/usr/src/cmd/acct/ |
H A D | acctdusg.c | 58 static char *pfile = NULL; variable 92 pfile = optarg; in main() 99 if (pfile) { in main() 100 if ((pwf = fopen(pfile, "r")) == NULL) { in main() 101 openerr(pfile); in main() 249 if (pfile == NULL) { in charge()
|
/titanic_44/usr/src/cmd/streams/log/ |
H A D | strerr.c | 112 FILE *pfile; in main() local 162 if ((pfile = popen(mailcmd, "w")) != NULL) { in main() 163 fprintf(pfile, "Streams Error Logger message " in main() 165 prlog(pfile, lp, dbuf, 0); in main() 166 (void) pclose(pfile); in main()
|
/titanic_44/usr/src/lib/librdc/common/ |
H A D | rdcrules.c | 293 fromfile = rdc->pfile; in ctag_check() 462 if ((strcmp(rdc->pfile, rdc->pbmp) == 0) || in can_enable() 474 if (stat(rdc->pfile, &stb) != 0) { in can_enable() 481 rdc->pfile); in can_enable() 525 if (mounted(rdc->pfile)) { in cant_rsync() 530 strncpy(rc->set.pfile, rdc->pfile, NSC_MAXPATH); in cant_rsync() 539 " is currently mounted", rdc->pfile); in cant_rsync()
|
H A D | librdc.h | 50 char pfile[NSC_MAXPATH]; member 77 extern rdcconfig_t *rdc_alloc_config(const char *phost, const char *pfile,
|
H A D | rdcpersist.c | 62 rdc->phost, rdc->pfile, rdc->pbmp, rdc->shost, rdc->sfile, in config2buf() 190 strncpy(vol, rdc->pfile, NSC_MAXPATH); in sv_enable_nocfg() 275 strncpy(vol, rdc->pfile, NSC_MAXPATH); in do_autosv_enable() 319 strncpy(vol, rdc->pfile, NSC_MAXPATH); in do_autosv_disable() 694 if ((cfg_put_cstring(cfg, key, rdcp->pfile, CFG_MAX_BUF)) < 0) { in reverse_in_cfg()
|
H A D | rdcconfig.c | 135 strncpy(urdc.primary.file, rdc->pfile, NSC_MAXPATH); in config2set() 179 strncpy(rc.set.pfile, set->primary.file, NSC_MAXPATH); in rdc_config() 215 strncpy(rc[0]->set.pfile, set->primary.file, NSC_MAXPATH); in rdc_mtconfig() 329 rdc_alloc_config(const char *phost, const char *pfile, in rdc_alloc_config() argument 343 if (pfile) in rdc_alloc_config() 344 strncpy(rc->pfile, pfile, NSC_MAXPATH); in rdc_alloc_config() 376 strncpy(rcp->set.pfile, rdcp->pfile, NSC_MAXPATH); in populate_rc()
|
/titanic_44/usr/src/cmd/genmsg/ |
H A D | genmsg.l | 529 char *pfile; 537 pfile = altfile; 539 pfile = file; 542 n = sscanf(str, "%c%d%s", &ch, &line, pfile); 545 len = strlen(pfile) - 2; 547 pfile++; 548 if (n == 3 && (strncmp(pfile, srcfile, len) == 0)) {
|
/titanic_44/usr/src/cmd/sgs/gprof/common/ |
H A D | gprof.c | 1335 readarcs(FILE *pfile) in readarcs() argument 1355 sizeof (L_cgarc64), 1, pfile) != 1) in readarcs() 1374 sizeof (L_cgarc), 1, pfile) != 1) in readarcs() 1389 pfile) != 1) { in readarcs() 1400 1, pfile) != 1) in readarcs() 1425 readsamples(FILE *pfile) in readsamples() argument 1442 (void) fread(&sample, sizeof (unsigned_UNIT), 1, pfile); in readsamples() 1443 if (feof(pfile)) in readsamples() 1456 handle_versioned(FILE *pfile, char *filename, size_t *fsz) in handle_versioned() argument 1469 if (fread(&prof_hdr, sizeof (ProfHeader), 1, pfile) == 0) { in handle_versioned() [all …]
|
/titanic_44/usr/src/lib/libshare/common/ |
H A D | libshare_zfs.c | 934 FILE *pfile; in sa_zfs_set_sharenfs() local 956 pfile = popen(command, "r"); in sa_zfs_set_sharenfs() 957 if (pfile != NULL) { in sa_zfs_set_sharenfs() 958 ret = pclose(pfile); in sa_zfs_set_sharenfs() 1045 FILE *pfile; in sa_zfs_set_sharesmb() local 1073 pfile = popen(command, "r"); in sa_zfs_set_sharesmb() 1074 if (pfile != NULL) { in sa_zfs_set_sharesmb() 1075 ret = pclose(pfile); in sa_zfs_set_sharesmb() 1104 FILE *pfile; in sa_zfs_update() local 1171 pfile = popen(command, "r"); in sa_zfs_update() [all …]
|
/titanic_44/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_prot.x | 87 opaque pfile[RDC_MAXNAMLEN]; member 99 string pfile<RDC_XDR_MAXNAMLEN>;
|
/titanic_44/usr/src/cmd/sgs/unifdef/common/ |
H A D | unifdef.c | 74 static void pfile(void); 155 pfile(); in main() 164 pfile(); in main() 205 pfile(void) in pfile() function
|
/titanic_44/usr/src/lib/libcryptoutil/common/ |
H A D | config_parsing.c | 47 FILE *pfile; in get_pkcs11conf_info() local 56 if ((pfile = fopen(_PATH_PKCS11_CONF, "rF")) == NULL) { in get_pkcs11conf_info() 61 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in get_pkcs11conf_info() 97 (void) fclose(pfile); in get_pkcs11conf_info()
|
/titanic_44/usr/src/lib/libkmf/libkmf/common/ |
H A D | policy.c | 1038 FILE *pfile, *tmpfile; in update_policyfile() local 1048 if ((pfile = fopen(filename, "r+")) == NULL && errno == ENOENT) in update_policyfile() 1049 pfile = fopen(filename, "w+"); in update_policyfile() 1051 if (pfile == NULL) in update_policyfile() 1054 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) { in update_policyfile() 1055 (void) fclose(pfile); in update_policyfile() 1094 (void) fclose(pfile); in update_policyfile() 1102 (void) fclose(pfile); in update_policyfile() 1108 (void) fclose(pfile); in update_policyfile()
|
/titanic_44/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_engine.c | 903 manifest_info_t *pfile; in engine_apply() local 961 pfile = *entry; in engine_apply() 963 if (apply_profile(pfile, apply_changes) == 0) { in engine_apply() 966 pfile->mi_path); in engine_apply() 970 pfile->mi_path); in engine_apply()
|