Lines Matching defs:st
537 struct stat st;
538 if (fstat(fd, &st) != 0)
542 char* buffer = packageInfoString.LockBuffer(st.st_size);
546 ssize_t result = read_pos(fd, 0, buffer, st.st_size);
552 buffer[st.st_size] = '\0';
553 packageInfoString.UnlockBuffer(st.st_size);
930 struct stat st;
932 if (fstatat(entry->FD(), *fileName != '\0' ? fileName : NULL, &st,
937 if (lstat(originalFileName, &st) == 0)
1079 struct stat st;
1080 if (fstat(fd, &st) < 0) {
1087 if (isImplicitEntry && !S_ISDIR(st.st_mode)) {
1102 if (!S_ISDIR(st.st_mode)) {
1428 struct stat st;
1429 if (fstat(fd, &st) < 0) {
1436 if (isImplicitEntry && !S_ISDIR(st.st_mode)) {
1445 if (S_ISDIR(st.st_mode) && (Flags() & B_HPKG_WRITER_UPDATE_PACKAGE) != 0) {
1458 if (S_ISREG(st.st_mode)) {
1461 } else if (S_ISLNK(st.st_mode)) {
1464 } else if (S_ISDIR(st.st_mode)) {
1487 if (defaultPermissions != uint32(st.st_mode & ALLPERMS)) {
1489 uint32(st.st_mode & ALLPERMS));
1491 _AddAttribute(B_HPKG_ATTRIBUTE_ID_FILE_ATIME, uint32(st.st_atime));
1492 _AddAttribute(B_HPKG_ATTRIBUTE_ID_FILE_MTIME, uint32(st.st_mtime));
1494 _AddAttribute(B_HPKG_ATTRIBUTE_ID_FILE_CRTIME, uint32(st.st_crtime));
1496 _AddAttribute(B_HPKG_ATTRIBUTE_ID_FILE_CRTIME, uint32(st.st_mtime));
1501 if (S_ISREG(st.st_mode)) {
1503 if (st.st_size > 0) {
1505 status_t error = _AddData(dataReader, st.st_size);
1509 } else if (S_ISLNK(st.st_mode)) {
1555 if (S_ISDIR(st.st_mode))