Home
last modified time | relevance | path

Searched refs:procfile (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/rcap/common/
H A Drcapd_stat.c42 char procfile[20]; in stat_get_rcapd_pid() local
54 (void) snprintf(procfile, 20, "/proc/%d/psinfo", (int)hdr.rs_pid); in stat_get_rcapd_pid()
55 if (stat(procfile, &st) == 0) in stat_get_rcapd_pid()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsyslog.c187 char procfile[32]; in vsyslog() local
219 (void) sprintf(procfile, "/proc/%d/psinfo", (int)getpid()); in vsyslog()
220 if ((procfd = open(procfile, O_RDONLY)) >= 0) { in vsyslog()
/illumos-gate/usr/src/cmd/rcap/rcapstat/
H A Drcapstat.c148 char procfile[20]; in read_stats() local
174 (void) snprintf(procfile, 20, "/proc/%lld/psinfo", pid); in read_stats()
175 if ((proc_fd = open(procfile, O_RDONLY)) < 0) { in read_stats()
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipf.c49 static void procfile __P((char *, char *)), flushfilter __P((char *));
122 procfile(argv[0], optarg);
251 static void procfile(name, file) in procfile() function
/illumos-gate/usr/src/cmd/pbind/
H A Dpbind.c239 char procfile[MAX_PROCFS_PATH]; in do_lwps() local
251 (void) snprintf(procfile, MAX_PROCFS_PATH, in do_lwps()
253 if ((fd = open(procfile, O_RDONLY)) < 0) { in do_lwps()
/illumos-gate/usr/src/cmd/psrset/
H A Dpsrset.c569 char procfile[MAX_PROCFS_PATH]; in do_lwps() local
581 (void) snprintf(procfile, MAX_PROCFS_PATH, in do_lwps()
583 if ((fd = open(procfile, O_RDONLY)) < 0) { in do_lwps()
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_lock.c1396 char procfile[MAXPATHLEN]; in add_to_polling_list() local
1432 (void) sprintf(procfile, "/proc/%ld/as", pid); in add_to_polling_list()
1433 if ((fd = open(procfile, O_RDONLY)) == -1) { in add_to_polling_list()
1435 procfile, strerror(errno)); in add_to_polling_list()
H A Drcm_script.c740 char procfile[80]; in script_ps_state_file_kill_pids() local
751 (void) snprintf(procfile, 80, "/proc/%ld/psinfo", in script_ps_state_file_kill_pids()
753 if ((fd = open(procfile, O_RDONLY)) != -1 && in script_ps_state_file_kill_pids()
/illumos-gate/usr/src/cmd/prstat/
H A Dprstat.c852 char procfile[MAX_PROCFS_PATH]; in read_procfile() local
854 (void) snprintf(procfile, MAX_PROCFS_PATH, in read_procfile()
856 if ((*fd = fd_open(procfile, O_RDONLY, *fd)) == NULL) in read_procfile()