/external/e2fsprogs/tests/progs/ |
H A D | hold_inode.c | 23 struct stat statbuf; local 31 if (stat(filename, &statbuf) < 0) { 35 if (S_ISDIR(statbuf.st_mode)) {
|
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/re2c/examples/ |
H A D | basemmap.c | 14 struct stat statbuf; local 16 fstat(0, &statbuf); 17 buf = mmap(NULL, statbuf.st_size, PROT_READ, MAP_SHARED|MAP_NORESERVE, 20 uchar *cur, *lim = &buf[statbuf.st_size]; 24 munmap(buf, statbuf.st_size);
|
/external/bison/lib/ |
H A D | fopen.c | 77 struct stat statbuf; local 90 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
|
H A D | open.c | 131 struct stat statbuf; local 132 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) 163 struct stat statbuf; local 165 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
|
/external/eigen/bench/spbench/ |
H A D | spbenchsolver.cpp | 44 std::ofstream statbuf; local 51 statbuf.open(statFile.c_str(), std::ios::out); 52 if(statbuf.good()){ 54 printStatheader(statbuf); 55 statbuf.close(); 81 statbuf.open(statFile.c_str(), std::ios::app); 82 statbuf << "</TABLE> \n"; 84 statbuf.close();
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io_test/ |
H A D | kernel_wrap_test.cc | 26 if (arg->f != statbuf->f) { \ 28 "expected: " << statbuf->f << \ 33 MATCHER_P(IsEqualToStatbuf, statbuf, "") { 50 ACTION_P(SetStat, statbuf) { 52 arg1->st_dev = statbuf->st_dev; 53 arg1->st_ino = statbuf->st_ino; 54 arg1->st_mode = statbuf->st_mode; 55 arg1->st_nlink = statbuf->st_nlink; 56 arg1->st_uid = statbuf->st_uid; 57 arg1->st_gid = statbuf 66 MakeDummyStatbuf(struct stat* statbuf) argument [all...] |
H A D | mount_html5fs_test.cc | 485 struct stat statbuf; local 486 int result = node_->GetStat(&statbuf); 489 EXPECT_EQ(S_IFREG | S_IWRITE | S_IREAD, statbuf.st_mode); 490 EXPECT_EQ(size, statbuf.st_size); 491 EXPECT_EQ(access_time, statbuf.st_atime); 492 EXPECT_EQ(modified_time, statbuf.st_mtime); 493 EXPECT_EQ(creation_time, statbuf.st_ctime); 558 struct stat statbuf; local 559 int result = node_->GetStat(&statbuf); 562 EXPECT_EQ(S_IFDIR | S_IWRITE | S_IREAD, statbuf [all...] |
/external/chromium_org/sandbox/linux/suid/ |
H A D | process_util_linux.c | 45 struct stat statbuf; local 46 if (fstat(dirfd, &statbuf) < 0) { 50 if (getuid() != statbuf.st_uid) {
|
H A D | linux_util.c | 89 struct stat statbuf; local 94 if (fstat(proc_pid_fd, &statbuf) < 0 || uid != statbuf.st_uid) {
|
/external/antlr/antlr-3.4/runtime/C/src/ |
H A D | antlr3filestream.c | 420 struct _stat statbuf; local 422 _stat((const char *)fileName, &statbuf); 424 return (ANTLR3_UINT32)statbuf.st_size;
|
/external/chromium/chrome/browser/ |
H A D | process_singleton_linux_uitest.cc | 43 struct stat statbuf; local 44 bool lock_exists = lstat(lock_path_.value().c_str(), &statbuf) == 0; 107 struct stat statbuf; local 108 ASSERT_EQ(0, lstat(lock_path_.value().c_str(), &statbuf)); 109 ASSERT_TRUE(S_ISLNK(statbuf.st_mode)); 114 ASSERT_EQ(0, lstat(socket_path_.value().c_str(), &statbuf)); 115 ASSERT_TRUE(S_ISLNK(statbuf.st_mode)); 121 ASSERT_EQ(0, lstat(socket_target_path.value().c_str(), &statbuf)); 122 ASSERT_TRUE(S_ISSOCK(statbuf.st_mode));
|
/external/chromium_org/chrome/browser/ |
H A D | process_singleton_linux_unittest.cc | 232 struct stat statbuf; local 233 ASSERT_EQ(0, lstat(lock_path_.value().c_str(), &statbuf)); 234 ASSERT_TRUE(S_ISLNK(statbuf.st_mode)); 239 ASSERT_EQ(0, lstat(socket_path_.value().c_str(), &statbuf)); 240 ASSERT_TRUE(S_ISLNK(statbuf.st_mode)); 246 ASSERT_EQ(0, lstat(socket_target_path.value().c_str(), &statbuf)); 247 ASSERT_TRUE(S_ISSOCK(statbuf.st_mode));
|
/external/srec/srec/clib/ |
H A D | voc_read.c | 273 struct stat statbuf; local 285 if (fstat(fd, &statbuf) < 0) goto FAILED; 288 *size = statbuf.st_size; 289 *buf = mmap(0, inflateSize(statbuf.st_size), PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
H A D | cpumonitor.cc | 264 std::string statbuf; local 266 if (!sfile_->ReadLine(&statbuf)) { 275 if (sscanf(statbuf.c_str(), "cpu %Lu %Lu %Lu %Lu",
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
H A D | profiledata_unittest.cc | 192 struct stat statbuf; local 193 if (fstat(fd.get(), &statbuf) != 0) 195 if (statbuf.st_size != static_cast<ssize_t>(statbuf.st_size)) 197 ssize_t filesize = statbuf.st_size; 585 struct stat statbuf; local 586 EXPECT_EQ(0, stat(checker_.filename().c_str(), &statbuf)); 587 EXPECT_EQ(0, statbuf.st_size);
|
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
H A D | profiledata_unittest.cc | 192 struct stat statbuf; local 193 if (fstat(fd.get(), &statbuf) != 0) 195 if (statbuf.st_size != static_cast<ssize_t>(statbuf.st_size)) 197 ssize_t filesize = statbuf.st_size; 585 struct stat statbuf; local 586 EXPECT_EQ(0, stat(checker_.filename().c_str(), &statbuf)); 587 EXPECT_EQ(0, statbuf.st_size);
|
/external/dnsmasq/src/ |
H A D | tftp.c | 242 struct stat statbuf; local 248 if (stat(daemon->namebuff, &statbuf) == -1 || !S_ISDIR(statbuf.st_mode)) 294 struct stat statbuf; local 315 if (fstat(fd, &statbuf) == -1) 321 if (!(statbuf.st_mode & S_IROTH)) 325 else if ((daemon->options & OPT_TFTP_SECURE) && uid != statbuf.st_uid) 334 if (t->file->dev == statbuf.st_dev && 335 t->file->inode == statbuf.st_ino && 350 file->size = statbuf [all...] |
H A D | dnsmasq.c | 915 struct stat statbuf; local 921 if (stat(res->name, &statbuf) == -1) 930 if (statbuf.st_mtime != res->mtime) 932 res->mtime = statbuf.st_mtime; 933 if (difftime(statbuf.st_mtime, last_change) > 0.0) 935 last_change = statbuf.st_mtime;
|
H A D | option.c | 2542 struct stat statbuf; local 2545 if (hard_opt == 0 && stat(file, &statbuf) == 0) 2550 if (r->dev == statbuf.st_dev && r->ino == statbuf.st_ino) 2556 r->dev = statbuf.st_dev; 2557 r->ino = statbuf.st_ino;
|
/external/openssh/openbsd-compat/ |
H A D | bsd-cray.c | 723 struct stat statbuf; local 728 if (stat(jtmp, &statbuf) == 0 && statbuf.st_uid == uid)
|
/external/llvm/lib/Support/ |
H A D | raw_ostream.cpp | 581 struct stat statbuf; local 582 if (fstat(FD, &statbuf) != 0) 588 if (S_ISCHR(statbuf.st_mode) && isatty(FD)) 591 return statbuf.st_blksize;
|
/external/ppp/pppd/ |
H A D | tty.c | 294 struct stat statbuf; local 309 if (stat(cp, &statbuf) < 0) { 315 if (!S_ISCHR(statbuf.st_mode)) { 323 devstat = statbuf; 445 struct stat statbuf; local 488 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode) 489 && statbuf.st_rdev == devstat.st_rdev) { 503 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0 504 && S_ISCHR(statbuf 518 struct stat statbuf; local [all...] |
/external/libpcap/ |
H A D | pcap-dlpi.c | 1620 struct stat statbuf; local 1750 if (stat(dname, &statbuf) < 0) { 1755 majdev = major(statbuf.st_rdev);
|
/external/chromium_org/third_party/libusb/src/libusb/os/ |
H A D | linux_usbfs.c | 353 struct stat statbuf; local 408 r = stat(SYSFS_DEVICE_PATH, &statbuf); 409 if (r != 0 || !S_ISDIR(statbuf.st_mode)) {
|
/external/e2fsprogs/debugfs/ |
H A D | debugfs.c | 1551 struct stat statbuf; local 1565 if (fstat(fd, &statbuf) < 0) { 1606 inode.i_mode = (statbuf.st_mode & ~LINUX_S_IFMT) | LINUX_S_IFREG; 1610 inode.i_size = statbuf.st_size;
|