Lines Matching refs:stat

92 # include <sys/stat.h>
102 # include <sys/stat.h>
1199 // Linux kernel saves start_stack information in /proc/<pid>/stat. Similar
1202 // program, so reading /proc/<pid>/stat could fail. Also the contents of
1203 // /proc/<pid>/stat could change in the future (though unlikely).
1206 // /proc/<pid>/stat. If neither of them works, we use current stack pointer
1216 // see if we can get the start_stack field from /proc/self/stat
1247 // by email from Hans Boehm. /proc/self/stat begins with current pid,
1249 char stat[2048];
1252 fp = fopen("/proc/self/stat", "r");
1254 statlen = fread(stat, 1, 2047, fp);
1255 stat[statlen] = '\0';
1260 // to "java 1.4.2 :)", then the stat file would look like
1264 char * s = strrchr(stat, ')');
1309 assert(false, "Bad conversion from /proc/self/stat");
1316 // For some reason we can't open /proc/self/stat (for example, running on
1319 warning("Can't detect initial thread stack location - no /proc/self/stat");
1653 struct stat statbuf;
1657 return os::stat(filename, &statbuf) == 0;
4845 int os::stat(const char *path, struct stat *sbuf) {
4852 return ::stat(pathbuf, sbuf);
5129 static const char *proc_stat_path = "/proc/%d/stat";
5133 char stat[2048];
5146 // then we open /proc/<pid>/stat.
5164 // The /proc/<tid>/stat aggregates per-process usage on
5166 // The /proc/self/task/<tid>/stat still has the per-thread usage.
5175 proc_stat_path = "/proc/self/task/%d/stat";
5183 statlen = fread(stat, 1, 2047, fp);
5184 stat[statlen] = '\0';
5189 // to "java 1.4.2 :)", then the stat file would look like
5193 s = strrchr(stat, ')');
5247 struct stat buf;
5249 while (::stat(filename, &buf) == 0) {
5778 struct stat statbuf;
5801 if (::stat(libmawtpath, &statbuf) == 0) return false;
5806 if (::stat(libmawtpath, &statbuf) == 0) return false;