Searched refs:pfile (Results 1 - 25 of 32) sorted by relevance

12

/illumos-gate/usr/src/test/zfs-tests/tests/functional/ctime/
H A Dctime_001_pos.c52 int (*func)(const char *pfile);
71 get_file_time(const char *pfile, int what, time_t *ptr) argument
75 if (pfile == NULL || ptr == NULL) {
79 if (stat(pfile, &stat_buf) == -1) {
99 do_read(const char *pfile) argument
104 if (pfile == NULL) {
108 if ((fd = open(pfile, O_RDONLY, ALL_MODE)) == -1) {
122 do_write(const char *pfile) argument
127 if (pfile == NULL) {
131 if ((fd = open(pfile, O_WRONL
145 do_link(const char *pfile) argument
175 do_creat(const char *pfile) argument
194 do_utime(const char *pfile) argument
215 do_chmod(const char *pfile) argument
233 do_chown(const char *pfile) argument
[all...]
/illumos-gate/usr/src/cmd/awk/
H A Dmain.c51 static uchar **pfile = NULL; /* program filenames from -f's */ variable
94 pfile = realloc(pfile, sizeof (uchar *) * (npfile + 1));
95 if (pfile == NULL)
97 pfile[npfile++] = (uchar *)argv[1];
184 yyin = (strcmp((char *)pfile[curpfile], "-") == 0) ?
185 stdin : fopen((char *)pfile[curpfile], "r");
188 pfile[curpfile] FATAL;
/illumos-gate/usr/src/cmd/acct/
H A Dacctdusg.c58 static char *pfile = NULL; variable
92 pfile = optarg;
99 if (pfile) {
100 if ((pwf = fopen(pfile, "r")) == NULL) {
101 openerr(pfile);
249 if (pfile == NULL) {
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Duninstall.c50 FILE *pfile = NULL; local
115 if ((pfile = fopen(_PATH_KMF_CONF, "r+")) == NULL) {
124 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) {
160 while (fgets(buffer, MAXPATHLEN, pfile) != NULL) {
219 if (pfile != NULL)
220 (void) fclose(pfile);
H A Dinstall.c54 FILE *pfile = NULL; local
173 if ((pfile = fopen(_PATH_KMF_CONF, "r+")) == NULL) {
182 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) {
218 while (fgets(buffer, BUFSIZ, pfile) != NULL) {
282 if (pfile != NULL)
283 (void) fclose(pfile);
H A Dmodify.c956 FILE *pfile = NULL; local
1050 if ((pfile = fopen(_PATH_KMF_CONF, "r+")) == NULL) {
1059 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) {
1093 while (fgets(buffer, MAXPATHLEN, pfile) != NULL) {
1173 if (pfile != NULL)
1174 (void) fclose(pfile);
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_util.c114 FILE *pfile; local
125 if ((pfile = fopen(conf_file, "r+")) == NULL) {
134 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) {
139 (void) fclose(pfile);
152 (void) fclose(pfile);
160 (void) fclose(pfile);
173 while (fgets(buffer, BUFSIZ, pfile) != NULL) {
256 (void) fclose(pfile);
H A Dadm_uef.c784 FILE *pfile; local
811 if ((pfile = fopen(_PATH_PKCS11_CONF, "r+")) == NULL) {
820 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) {
825 (void) fclose(pfile);
839 (void) fclose(pfile);
853 (void) fclose(pfile);
863 while (fgets(buffer, BUFSIZ, pfile) != NULL) {
912 (void) fclose(pfile);
923 (void) fclose(pfile);
1124 FILE *pfile; local
[all...]
H A Dadm_kef_util.c702 FILE *pfile = NULL; local
708 if ((pfile = fopen(_PATH_KCF_CONF, "r")) == NULL) {
715 while (fgets(buffer, BUFSIZ, pfile) != NULL) {
746 (void) fclose(pfile);
953 FILE *pfile = NULL; local
991 if ((pfile = fopen(_PATH_KCF_CONF, "r+")) == NULL) {
1001 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) {
1006 (void) fclose(pfile);
1020 (void) fclose(pfile);
1028 (void) fclose(pfile);
[all...]
H A Dadm_kef.c702 FILE *pfile = NULL; local
741 if ((pfile = fopen(_PATH_KCF_CONF, "r+")) == NULL) {
751 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) {
757 (void) fclose(pfile);
771 (void) fclose(pfile);
780 (void) fclose(pfile);
792 while (fgets(buffer, BUFSIZ, pfile) != NULL) {
833 (void) fclose(pfile);
/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/streams/log/
H A Dstrerr.c112 FILE *pfile; local
162 if ((pfile = popen(mailcmd, "w")) != NULL) {
163 fprintf(pfile, "Streams Error Logger message "
165 prlog(pfile, lp, dbuf, 0);
166 (void) pclose(pfile);
/illumos-gate/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_services.c1078 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
1933 FILE *pfile = NULL; local
[all...]
/illumos-gate/usr/src/cmd/hal/addons/cpufreq/
H A Daddon-cpufreq.c140 FILE *pfile; local
167 pfile = fopen (tmp_file, "r+");
168 if (pfile == NULL) {
208 while (fgets (tstr, FILE_ARR_SIZE, pfile) != NULL) {
228 if (fseek (pfile, fset, SEEK_SET) != 0) {
246 if (fseek (pfile, next_fset, SEEK_SET) != 0) {
252 if (fgets (tstr, FILE_ARR_SIZE, pfile) != NULL) {
256 fseek (pfile, fset, SEEK_SET);
257 fputs (temp_str, pfile);
260 fseek (pfile, next_fse
330 FILE *pfile; local
[all...]
/illumos-gate/usr/src/lib/librdc/common/
H A Dlibrdc.h50 char pfile[NSC_MAXPATH]; member in struct:rdcconfig_s
77 extern rdcconfig_t *rdc_alloc_config(const char *phost, const char *pfile,
H A Drdcrules.c293 fromfile = rdc->pfile;
462 if ((strcmp(rdc->pfile, rdc->pbmp) == 0) ||
474 if (stat(rdc->pfile, &stb) != 0) {
481 rdc->pfile);
525 if (mounted(rdc->pfile)) {
530 strncpy(rc->set.pfile, rdc->pfile, NSC_MAXPATH);
539 " is currently mounted", rdc->pfile);
H A Drdcpersist.c62 rdc->phost, rdc->pfile, rdc->pbmp, rdc->shost, rdc->sfile,
190 strncpy(vol, rdc->pfile, NSC_MAXPATH);
275 strncpy(vol, rdc->pfile, NSC_MAXPATH);
319 strncpy(vol, rdc->pfile, NSC_MAXPATH);
694 if ((cfg_put_cstring(cfg, key, rdcp->pfile, CFG_MAX_BUF)) < 0) {
H A Drdcconfig.c135 strncpy(urdc.primary.file, rdc->pfile, NSC_MAXPATH);
179 strncpy(rc.set.pfile, set->primary.file, NSC_MAXPATH);
215 strncpy(rc[0]->set.pfile, set->primary.file, NSC_MAXPATH);
329 rdc_alloc_config(const char *phost, const char *pfile, argument
343 if (pfile)
344 strncpy(rc->pfile, pfile, NSC_MAXPATH);
376 strncpy(rcp->set.pfile, rdcp->pfile, NSC_MAXPATH);
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dgprof.c1335 readarcs(FILE *pfile) argument
1355 sizeof (L_cgarc64), 1, pfile) != 1)
1374 sizeof (L_cgarc), 1, pfile) != 1)
1389 pfile) != 1) {
1400 1, pfile) != 1)
1425 readsamples(FILE *pfile) argument
1442 (void) fread(&sample, sizeof (unsigned_UNIT), 1, pfile);
1443 if (feof(pfile))
1456 handle_versioned(FILE *pfile, char *filename, size_t *fsz) argument
1469 if (fread(&prof_hdr, sizeof (ProfHeader), 1, pfile)
1533 FILE *pfile; local
[all...]
/illumos-gate/usr/src/cmd/sgs/unifdef/common/
H A Dunifdef.c74 static void pfile(void);
155 pfile();
164 pfile();
205 pfile(void) function
/illumos-gate/usr/src/uts/common/avs/ns/rdc/
H A Drdc_prot.x88 opaque pfile[RDC_MAXNAMLEN];
100 string pfile<RDC_XDR_MAXNAMLEN>;
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c934 FILE *pfile; local
956 pfile = popen(command, "r");
957 if (pfile != NULL) {
958 ret = pclose(pfile);
1045 FILE *pfile; local
1073 pfile = popen(command, "r");
1074 if (pfile != NULL) {
1075 ret = pclose(pfile);
1104 FILE *pfile; local
1171 pfile
[all...]
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dconfig_parsing.c47 FILE *pfile; local
56 if ((pfile = fopen(_PATH_PKCS11_CONF, "rF")) == NULL) {
61 while (fgets(buffer, BUFSIZ, pfile) != NULL) {
97 (void) fclose(pfile);
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpolicy.c1038 FILE *pfile, *tmpfile; local
1048 if ((pfile = fopen(filename, "r+")) == NULL && errno == ENOENT)
1049 pfile = fopen(filename, "w+");
1051 if (pfile == NULL)
1054 if (lockf(fileno(pfile), F_TLOCK, 0) == -1) {
1055 (void) fclose(pfile);
1094 (void) fclose(pfile);
1102 (void) fclose(pfile);
1108 (void) fclose(pfile);
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dsd_trace.c543 char *pfile; local
634 pfile = rdc_info[rdcindex].primary.file;
644 if ((len = strlen(pfile)) > DISPLEN) {
646 pfile + len - DISPLEN + 3);
648 (void) mvprintw(4 + k, 9, "%-16s", pfile);

Completed in 127 milliseconds

12