Lines Matching refs:st
746 struct stat st;
749 if(stat("/bin/ls", &st) == 0 &&
750 S_ISREG(st.st_mode))
954 struct stat st;
962 st.st_size = 0;
1010 st.st_size = -1;
1020 st.st_size = -1;
1033 if(fstat(fileno(fin), &st) < 0 || !S_ISREG(st.st_mode)) {
1058 dout = dataconn(name, st.st_size, "w");
1104 struct stat st;
1111 if (stat(name, &st) == 0) {
1376 struct stat st;
1379 if(fstat(in, &st) == 0 && S_ISREG(st.st_mode)
1380 && st.st_size > 0) {
1384 chunk = mmap(0, st.st_size, PROT_READ,
1387 cnt = st.st_size - restart_point;
1389 if (munmap(chunk, st.st_size) < 0)
1401 struct stat st;
1406 fstat(filefd, &st) >= 0 ? &st : NULL);
1461 struct stat st;
1466 fstat(fileno(outstr), &st) >= 0 ? &st : NULL);
1733 struct stat st;
1736 if (stat(name, &st) < 0) {
1740 if (S_ISDIR(st.st_mode)) {
1811 struct stat st;
1813 if (stat(name, &st) < 0) {
2146 struct stat st;
2153 if (stat(cp ? local : ".", &st) < 0) {
2161 if (stat(new, &st) < 0)
2211 struct stat st;
2252 if (stat(dirname, &st) < 0) {
2266 if (S_ISREG(st.st_mode)) {
2278 } else if (!S_ISDIR(st.st_mode))
2301 if (simple || (stat(nbuf, &st) == 0 &&
2302 S_ISREG(st.st_mode))) {