Searched defs:sb (Results 1 - 13 of 13) sorted by relevance

/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
H A Dremove.c59 struct stat sb; local
63 if (lstat(file, &sb) < 0)
70 if (S_ISDIR(sb.st_mode))
/device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/
H A Dopendir.c79 struct stat sb; local
87 if (fstat(fd, &sb) || !S_ISDIR(sb.st_mode)) {
/device/google/cuttlefish_common/common/libs/fs/
H A Dgce_fs.cpp42 struct stat sb; local
43 if (GCE_TEMP_FAILURE_RETRY(lstat(path, &sb)) == -1) {
53 if (!S_ISDIR(sb.st_mode)) {
57 if (((sb.st_mode & ALL_PERMS) == mode) && (sb.st_uid == uid) && (sb.st_gid == gid)) {
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
H A Dminigzip.c140 struct stat sb; local
143 if (fstat(ifd, &sb) < 0) return Z_ERRNO;
144 buf_len = sb.st_size;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
H A Dmain.c598 struct stat sb; local
599 if (fstat(fileno(fp), &sb) == 0 &&
600 S_ISDIR(sb.st_mode)) {
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
H A Dminigzip.c404 struct stat sb; local
407 if (fstat(ifd, &sb) < 0) return Z_ERRNO;
408 buf_len = sb.st_size;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
H A Dmain.c621 struct stat sb; local
622 if (fstat(fileno(fp), &sb) == 0 &&
623 S_ISDIR(sb.st_mode)) {
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
H A Dmain.c583 struct stat sb; local
584 if (fstat(fileno(fp), &sb) == 0 &&
585 S_ISDIR(sb.st_mode)) {
/device/google/contexthub/contexthubhal/
H A DNanohubHidlAdapter.cpp530 struct stat sb; local
531 if (fstat(fd, &sb) == 0) {
532 void *buf = malloc(sb.st_size);
533 if (buf != nullptr && read(fd, buf, sb.st_size) == sb.st_size) {
541 appBinary->customBinary = std::vector<uint8_t>(static_cast<const uint8_t *>(buf) + sizeof(struct nano_app_binary_t), static_cast<const uint8_t *>(buf) + sb.st_size);
H A Dsystem_comms.cpp1136 struct stat sb; local
1137 if (fstat(fd, &sb) == 0) {
1138 *data = malloc(sb.st_size);
1139 if (*data != nullptr && read(fd, *data, sb.st_size) == sb.st_size)
1140 ret = sb.st_size;
1168 struct stat sb; local
1169 if (fstat(fd, &sb) == 0 && sb.st_size == len) {
1171 if (buf != nullptr && read(fd, buf, sb
[all...]
/device/linaro/bootloader/edk2/StdLib/PosixLib/Glob/
H A Dglob.c584 __gl_stat_t sb; local
602 if (g_lstat(pathbuf, &sb, pglob))
613 pathend[-1] != SEP) && (S_ISDIR(sb.st_mode) ||
614 // (S_ISLNK(sb.st_mode) &&
616 (g_stat(pathbuf, &sb, pglob) == 0) &&
617 S_ISDIR(sb.st_mode)))) {
962 g_lstat(Char *fn, __gl_stat_t *sb, glob_t *pglob) argument
967 _DIAGASSERT(sb != NULL);
973 return (*pglob->gl_lstat)(buf, sb);
974 return lstat(buf, sb);
978 g_stat(Char *fn, __gl_stat_t *sb, glob_t *pglob) argument
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
H A Dsysmodule.c1380 struct stat sb; local
1381 if (fstat(fileno(stdin), &sb) == 0 &&
1382 S_ISDIR(sb.st_mode)) {
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
H A Dsysmodule.c1359 struct stat sb; local
1360 if (fstat(fileno(stdin), &sb) == 0 &&
1361 S_ISDIR(sb.st_mode)) {

Completed in 82 milliseconds