Home
last modified time | relevance | path

Searched refs:pfile (Results 1 – 22 of 22) sorted by relevance

/illumos-gate/usr/src/test/zfs-tests/tests/functional/ctime/
H A Dctime_001_pos.c102 do_read(const char *pfile) in do_read() argument
107 if (pfile == NULL) { in do_read()
125 do_write(const char *pfile) in do_write() argument
130 if (pfile == NULL) { in do_write()
148 do_link(const char *pfile) in do_link() argument
154 if (pfile == NULL) { in do_link()
178 do_creat(const char *pfile) in do_creat() argument
182 if (pfile == NULL) { in do_creat()
201 if (pfile == NULL) { in do_utime()
222 if (pfile == NULL) { in do_chmod()
[all …]
/illumos-gate/usr/src/cmd/awk/
H A Dmain.c75 static char **pfile = NULL; /* program filenames from -f's */ variable
130 pfile = realloc(pfile, in main()
132 if (pfile == NULL) in main()
134 pfile[npfile++] = &argv[1][2]; in main()
139 pfile = realloc(pfile, in main()
141 if (pfile == NULL) in main()
143 pfile[npfile++] = argv[1]; in main()
244 yyin = (strcmp(pfile[curpfile], "-") == 0) ? in pgetc()
245 stdin : fopen(pfile[curpfile], "rF"); in pgetc()
247 FATAL("can't open file %s", pfile[curpfile]); in pgetc()
[all …]
/illumos-gate/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_services.c1107 fclose(pfile);
1117 fclose(pfile);
1132 fclose(pfile);
1812 fclose(pfile);
1813 pfile = NULL;
1865 fclose(pfile);
1866 pfile = NULL;
1900 if (pfile)
1901 fclose(pfile);
2118 fclose(pfile);
[all …]
/illumos-gate/usr/src/cmd/hal/addons/cpufreq/
H A Daddon-cpufreq.c140 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()
257 fputs (temp_str, pfile); in edit_power_conf_file()
265 fseek (pfile, fset, SEEK_SET); in edit_power_conf_file()
275 if (fflush (pfile) == EOF) { in edit_power_conf_file()
308 if (fflush (pfile) == EOF) { in edit_power_conf_file()
314 fclose (pfile); in edit_power_conf_file()
330 FILE *pfile; in read_power_conf_file() local
338 if (pfile == NULL) { in read_power_conf_file()
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_util.c114 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 Dadm_uef.c785 FILE *pfile; in uninstall_uef_lib() local
826 (void) fclose(pfile); in uninstall_uef_lib()
840 (void) fclose(pfile); in uninstall_uef_lib()
854 (void) fclose(pfile); in uninstall_uef_lib()
913 (void) fclose(pfile); in uninstall_uef_lib()
924 (void) fclose(pfile); in uninstall_uef_lib()
1125 FILE *pfile; in update_pkcs11conf() local
1157 (void) fclose(pfile); in update_pkcs11conf()
1171 (void) fclose(pfile); in update_pkcs11conf()
1185 (void) fclose(pfile); in update_pkcs11conf()
[all …]
H A Dadm_kef_util.c702 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
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()
1036 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in update_kcfconf()
[all …]
H A Dadm_kef.c702 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()
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Duninstall.c50 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 Dinstall.c54 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 Dmodify.c956 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()
/illumos-gate/usr/src/cmd/acct/
H A Dacctdusg.c58 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()
/illumos-gate/usr/src/cmd/streams/log/
H A Dstrerr.c112 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()
/illumos-gate/usr/src/cmd/genmsg/
H A Dgenmsg.l529 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)) {
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dgprof.c1371 readarcs(FILE *pfile) in readarcs() argument
1391 sizeof (L_cgarc64), 1, pfile) != 1) in readarcs()
1410 sizeof (L_cgarc), 1, pfile) != 1) in readarcs()
1425 pfile) != 1) { in readarcs()
1436 1, pfile) != 1) in readarcs()
1461 readsamples(FILE *pfile) in readsamples() argument
1479 if (feof(pfile)) in readsamples()
1527 (void) fclose(pfile); in handle_versioned()
1569 FILE *pfile; in openpfile() local
1590 rewind(pfile); in openpfile()
[all …]
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c1110 FILE *pfile; in sa_zfs_set_sharenfs() local
1132 pfile = popen(command, "r"); in sa_zfs_set_sharenfs()
1133 if (pfile != NULL) { in sa_zfs_set_sharenfs()
1134 ret = pclose(pfile); in sa_zfs_set_sharenfs()
1221 FILE *pfile; in sa_zfs_set_sharesmb() local
1249 pfile = popen(command, "r"); in sa_zfs_set_sharesmb()
1250 if (pfile != NULL) { in sa_zfs_set_sharesmb()
1251 ret = pclose(pfile); in sa_zfs_set_sharesmb()
1280 FILE *pfile; in sa_zfs_update() local
1348 if (pfile != NULL) in sa_zfs_update()
[all …]
/illumos-gate/usr/src/cmd/sgs/unifdef/common/
H A Dunifdef.c72 static void pfile(void);
153 pfile(); in main()
162 pfile(); in main()
203 pfile(void) in pfile() function
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dconfig_parsing.c47 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()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpolicy.c1038 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()
H A Dgeneralop.c2714 FILE *pfile; in get_entrylist() local
2722 if ((pfile = fopen(_PATH_KMF_CONF, "rF")) == NULL) { in get_entrylist()
2727 while (fgets(buffer, MAXPATHLEN, pfile) != NULL) { in get_entrylist()
2760 (void) fclose(pfile); in get_entrylist()
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_engine.c910 manifest_info_t *pfile; in engine_apply() local
968 pfile = *entry; in engine_apply()
970 if (apply_profile(pfile, apply_changes) == 0) { in engine_apply()
973 pfile->mi_path); in engine_apply()
977 pfile->mi_path); in engine_apply()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/
H A Dwificonfig.c181 static config_file_t *parse_file(const char *pfile);
774 parse_file(const char *pfile) in parse_file() argument
786 assert(pfile != NULL); in parse_file()
792 file = fopen(pfile, "r"); in parse_file()
795 fd = open(pfile, O_CREAT|O_EXCL|O_RDWR, 0600); in parse_file()
798 "\n"), gExecName, pfile); in parse_file()
802 (void) chmod(pfile, S_IRUSR); in parse_file()
821 gExecName, pfile, WIFI_PREFER); in parse_file()
833 gExecName, pfile, WIFI_HISTORY); in parse_file()
845 gExecName, pfile, WIFI_ACTIVEP); in parse_file()
[all …]