Lines Matching refs:fname

43 convert_path(const char *path, char *fname, size_t size,  in convert_path()  argument
53 fname[size - 1] = '\0'; in convert_path()
58 bcopy(path, fname, len); in convert_path()
60 fname += len; in convert_path()
67 len = snprintf(fname, size, "%d", (int)pip->pr_pid); in convert_path()
70 len = snprintf(fname, size, "%d", (int)pip->pr_uid); in convert_path()
73 len = snprintf(fname, size, "%d", (int)pip->pr_gid); in convert_path()
76 len = snprintf(fname, size, "%s", pip->pr_fname); in convert_path()
85 len = snprintf(fname, size, "%s", &exec[1]); in convert_path()
90 len = snprintf(fname, size, "%s", uts.nodename); in convert_path()
95 len = snprintf(fname, size, "%s", uts.machine); in convert_path()
98 len = snprintf(fname, size, "%ld", (long)time(NULL)); in convert_path()
105 if ((len = getzonenamebyid(pip->pr_zoneid, fname, in convert_path()
107 len = snprintf(fname, size, "%d", in convert_path()
113 *fname = '%'; in convert_path()
117 len = snprintf(fname, size, "%%%c", *p); in convert_path()
123 fname += len; in convert_path()
129 (void) strncpy(fname, path, size); in convert_path()
133 gcore(struct ps_prochandle *P, const char *fname, core_content_t content, in gcore() argument
136 if (Pgcore(P, fname, content) == 0) { in gcore()
137 (void) printf("%s: %s dumped\n", pname, fname); in gcore()
140 fname, errno == EBADE ? "unexpected short write" : in gcore()
156 char fname[MAXPATHLEN]; in main() local
248 convert_path(path, fname, sizeof (fname), P); in main()
250 gcore(P, fname, content, &err); in main()
256 convert_path(path, fname, sizeof (fname), P); in main()
260 gcore(P, fname, content, &err); in main()
272 convert_path(path, fname, sizeof (fname), P); in main()
276 gcore(P, fname, content, &err); in main()