Lines Matching refs:stat

90 # include <sys/stat.h>
100 # include <sys/stat.h>
1391 // Bsd kernel saves start_stack information in /proc/<pid>/stat. Similar
1394 // program, so reading /proc/<pid>/stat could fail. Also the contents of
1395 // /proc/<pid>/stat could change in the future (though unlikely).
1398 // /proc/<pid>/stat. If neither of them works, we use current stack pointer
1408 // see if we can get the start_stack field from /proc/self/stat
1439 // by email from Hans Boehm. /proc/self/stat begins with current pid,
1441 char stat[2048];
1444 fp = fopen("/proc/self/stat", "r");
1446 statlen = fread(stat, 1, 2047, fp);
1447 stat[statlen] = '\0';
1452 // to "java 1.4.2 :)", then the stat file would look like
1456 char * s = strrchr(stat, ')');
1501 assert(false, "Bad conversion from /proc/self/stat");
1508 // For some reason we can't open /proc/self/stat (for example, running on
1511 warning("Can't detect initial thread stack location - no /proc/self/stat");
1891 struct stat statbuf;
1895 return os::stat(filename, &statbuf) == 0;
5058 int os::stat(const char *path, struct stat *sbuf) {
5065 return ::stat(pathbuf, sbuf);
5122 struct stat buf;
5200 struct stat buf;
5383 static const char *proc_stat_path = "/proc/%d/stat";
5387 char stat[2048];
5400 // then we open /proc/<pid>/stat.
5418 // The /proc/<tid>/stat aggregates per-process usage on
5420 // The /proc/self/task/<tid>/stat still has the per-thread usage.
5429 proc_stat_path = "/proc/self/task/%d/stat";
5437 statlen = fread(stat, 1, 2047, fp);
5438 stat[statlen] = '\0';
5443 // to "java 1.4.2 :)", then the stat file would look like
5447 s = strrchr(stat, ')');
5508 struct stat buf;
5510 while (::stat(filename, &buf) == 0) {
6035 struct stat statbuf;
6058 if (::stat(libmawtpath, &statbuf) == 0) return false;
6063 if (::stat(libmawtpath, &statbuf) == 0) return false;