Searched refs:st_mode (Results 1 - 25 of 157) sorted by relevance

1234567

/haiku/src/system/libroot/posix/sys/
H A Dchmod.c23 stat.st_mode = mode;
37 stat.st_mode = mode;
51 stat.st_mode = mode;
H A Dstat.c76 beosStat->st_mode = stat->st_mode;
98 stat->st_mode = beosStat->st_mode;
/haiku/src/system/libroot/posix/glibc/include/bits/
H A Dstat.h34 __mode_t st_mode; /* File mode. */
89 __mode_t st_mode; /* File mode. */
/haiku/src/build/libroot/
H A Dfs_darwin.cpp33 if (!S_ISDIR(dirst.st_mode)) {
72 if ((st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) != 0)
76 if ((st.st_mode & S_IRUSR) != 0)
78 if ((st.st_mode & S_IWUSR) != 0)
80 if ((st.st_mode & S_IXUSR) != 0)
84 if ((st.st_mode & S_IRGRP) != 0)
86 if ((st.st_mode & S_IWGRP) != 0)
88 if ((st.st_mode & S_IXGRP) != 0)
92 if ((st.st_mode & S_IROTH) != 0)
94 if ((st.st_mode
[all...]
H A DLocalFD.h53 return (result == 0 && S_ISLNK(st.st_mode));
/haiku/headers/posix/compat/sys/
H A Dstat.h21 mode_t st_mode; /* file mode (rwx for user, group, etc) */ member in struct:stat_beos
/haiku/src/tools/
H A Dcreate_image.cpp115 if (!S_ISREG(st.st_mode) && !S_ISBLK(st.st_mode) && !S_ISCHR(st.st_mode)) {
120 if (S_ISREG(st.st_mode)) {
/haiku/src/build/libbe/storage/
H A DStatable.cpp41 return S_ISREG(statData.st_mode);
55 return S_ISDIR(statData.st_mode);
69 return S_ISLNK(statData.st_mode);
160 *perms = (statData.st_mode & S_IUMSK);
174 statData.st_mode = perms;
/haiku/src/bin/
H A Dcopyattr.cpp322 if (S_ISDIR(destStat.st_mode)) {
323 if (S_ISDIR(sourceStat.st_mode)) {
353 if (S_ISDIR(sourceStat.st_mode)) {
356 } else if (S_ISREG(sourceStat.st_mode)) {
378 if (S_ISDIR(sourceStat.st_mode)) {
389 } else if (S_ISREG(sourceStat.st_mode)) {
404 } else if (S_ISLNK(sourceStat.st_mode)) {
441 destNode->SetPermissions(sourceStat.st_mode);
467 if (parameters.recursive && S_ISDIR(sourceStat.st_mode)) {
503 if (S_ISDIR(sourceStat.st_mode)) {
[all...]
H A Dfstrim.cpp72 return S_ISDIR(fdStat.st_mode);
85 return S_ISBLK(fdStat.st_mode);
98 return S_ISCHR(fdStat.st_mode);
H A Dmount.c88 if (!S_ISDIR(mountStat.st_mode)) {
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DNodeInfo.cpp12 visitor->Visit(this, *(int32*)&st.st_mode);
/haiku/src/system/libroot/posix/glibc/libio/
H A Dfiledoalloc.c105 if (S_ISCHR (st.st_mode))
H A Dwfiledoalloc.c107 couldbetty = S_ISCHR (st.st_mode);
/haiku/src/system/libroot/posix/unistd/
H A Dttyname.c37 if (!S_ISCHR(fdStat.st_mode) || !isatty(fd))
/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/
H A Dnvme_common.c176 if (S_ISLNK(st.st_mode))
179 if (S_ISBLK(st.st_mode) || S_ISCHR(st.st_mode)) {
189 if (S_ISREG(st.st_mode))
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DMetadataCache.cpp44 st->st_mode = fStatCache.st_mode;
161 if (oldStat->st_mode != newStat->st_mode)
/haiku/src/kits/storage/
H A DCopyEngine.cpp152 if (S_ISDIR(destStat.st_mode)) {
153 if (!S_ISDIR(sourceStat.st_mode)
160 if (S_ISDIR(sourceStat.st_mode)) {
187 if (S_ISDIR(sourceStat.st_mode)) {
190 } else if (S_ISREG(sourceStat.st_mode)) {
211 if (S_ISDIR(sourceStat.st_mode)) {
221 } else if (S_ISREG(sourceStat.st_mode)) {
241 } else if (S_ISLNK(sourceStat.st_mode)) {
282 destNode->SetPermissions(sourceStat.st_mode);
293 if ((fFlags & COPY_RECURSIVELY) != 0 && S_ISDIR(sourceStat.st_mode)) {
[all...]
H A DStatable.cpp53 return S_ISREG(stat.st_mode);
65 return S_ISDIR(stat.st_mode);
77 return S_ISLNK(stat.st_mode);
169 *permissions = (stat.st_mode & S_IUMSK);
182 stat.st_mode = permissions;
/haiku/src/system/kernel/disk_device_manager/
H A DKFileDiskDevice.cpp59 if (!S_ISREG(st.st_mode))
141 if (stat(fFilePath, &st) == 0 && S_ISREG(st.st_mode))
154 if (stat(fFilePath, &st) != 0 || !S_ISREG(st.st_mode))
/haiku/src/apps/expander/
H A DDirectoryFilePanel.cpp32 if (S_ISDIR(stat->st_mode))
35 if (S_ISLNK(stat->st_mode)) {
/haiku/src/tests/kits/storage/
H A DBasicTest.h59 && st1.st_mode == st2.st_mode
H A DStatableTest.cpp75 CPPUNIT_ASSERT( statable->IsDirectory() == S_ISDIR(st.st_mode) );
76 CPPUNIT_ASSERT( statable->IsFile() == S_ISREG(st.st_mode) );
77 CPPUNIT_ASSERT( statable->IsSymLink() == S_ISLNK(st.st_mode) );
131 // CPPUNIT_ASSERT( perms == (st.st_mode & S_IUMSK) );
132 CPPUNIT_ASSERT( (perms & S_IUMSK) == (st.st_mode & S_IUMSK) );
218 CPPUNIT_ASSERT( perms == (st.st_mode & S_IUMSK) );
/haiku/src/apps/diskprobe/
H A DFileWindow.cpp36 if (entry.GetStat(&stat) == B_OK && (S_ISBLK(stat.st_mode)
37 || S_ISCHR(stat.st_mode))) {
/haiku/src/add-ons/media/plugins/ape_reader/MAClib/
H A DGlobalFunctions.cpp103 if (!S_ISREG(b.st_mode))

Completed in 242 milliseconds

1234567