Searched refs:stat (Results 1 - 25 of 509) sorted by relevance

1234567891011>>

/haiku/src/system/libroot/posix/sys/
H A Dstat.c9 #include <sys/stat.h>
11 #include <compat/sys/stat.h>
20 int _stat_current(const char* path, struct stat* stat);
21 int _fstat_current(int fd, struct stat* stat);
22 int _lstat_current(const char* path, struct stat* stat);
29 _stat_current(const char* path, struct stat* stat) argument
38 _fstat_current(int fd, struct stat* stat) argument
47 _lstat_current(const char* path, struct stat* stat) argument
69 convert_to_stat_beos(const struct stat* stat, struct stat_beos* beosStat) argument
91 convert_from_stat_beos(const struct stat_beos* beosStat, struct stat* stat) argument
121 struct stat stat; local
134 struct stat stat; local
147 struct stat stat; local
[all...]
H A Dchmod.c8 #include <sys/stat.h>
20 struct stat stat; local
23 stat.st_mode = mode;
24 status = _kern_write_stat(-1, path, true, &stat, sizeof(struct stat),
34 struct stat stat; local
37 stat.st_mode = mode;
38 status = _kern_write_stat(fd, NULL, false, &stat, sizeo
48 struct stat stat; local
[all...]
H A Dutimes.c26 struct stat stat; local
30 stat.st_atim.tv_sec = times[0].tv_sec;
31 stat.st_atim.tv_nsec = times[0].tv_usec * 1000;
33 stat.st_mtim.tv_sec = times[1].tv_sec;
34 stat.st_mtim.tv_nsec = times[1].tv_usec * 1000;
37 stat.st_atim.tv_sec = stat.st_mtim.tv_sec = now / 1000000;
38 stat.st_atim.tv_nsec = stat
59 struct stat stat; local
[all...]
H A Dftok.c10 #include <sys/stat.h>
16 struct stat st;
18 if (stat(path, &st) < 0)
H A Dstatvfs.c8 #include <sys/stat.h>
50 struct stat stat; local
51 if (fstat(fd, &stat) < 0)
54 return fill_statvfs(stat.st_dev, statvfs);
/haiku/src/system/libroot/posix/glibc/include/
H A Ddevice-nrs.h4 // ToDo: do something nice here, perhaps reusing the new stat->st_type field
5 #define DEV_TTY_P(stat) (0)
/haiku/src/system/libroot/posix/unistd/
H A Dtruncate.c21 struct stat stat; local
24 stat.st_size = newSize;
25 status = _kern_write_stat(-1, path, true, &stat, sizeof(struct stat),
35 struct stat stat; local
38 stat.st_size = newSize;
39 status = _kern_write_stat(fd, NULL, false, &stat, sizeof(struct stat),
[all...]
H A Dchown.c21 struct stat stat; local
26 stat.st_uid = owner;
30 stat.st_gid = group;
34 status = _kern_write_stat(fd, path, followLinks, &stat,
35 sizeof(struct stat), mask);
/haiku/src/kits/storage/
H A DStatable.cpp13 #include <sys/stat.h>
15 #include <compat/sys/stat.h>
30 status_t GetStatBeOS(struct stat_beos* stat) argument
32 return fObject->_GetStat(stat);
51 struct stat stat; local
52 if (GetStat(&stat) == B_OK)
53 return S_ISREG(stat.st_mode);
63 struct stat stat; local
75 struct stat stat; local
88 struct stat stat; local
107 struct stat stat; local
123 struct stat stat; local
135 struct stat stat; local
151 struct stat stat; local
163 struct stat stat; local
179 struct stat stat; local
193 struct stat stat; local
210 struct stat stat; local
226 struct stat stat; local
238 struct stat stat; local
254 struct stat stat; local
266 struct stat stat; local
282 struct stat stat; local
294 struct stat stat; local
308 _OhSoStatable1__9BStatable(const BStatable* self, struct stat* stat) argument
[all...]
/haiku/src/system/libroot/posix/
H A Dutime.c22 struct stat stat; local
26 stat.st_atim.tv_sec = times->actime;
27 stat.st_mtim.tv_sec = times->modtime;
28 stat.st_atim.tv_nsec = stat.st_mtim.tv_nsec = 0;
31 stat.st_atim.tv_sec = stat.st_mtim.tv_sec = now / 1000000;
32 stat.st_atim.tv_nsec = stat
[all...]
/haiku/src/tools/fs_shell/
H A Dstat_util.h8 #include <sys/stat.h>
18 void from_platform_stat(const struct stat *st, struct fssh_stat *fsshStat);
19 void to_platform_stat(const struct fssh_stat *fsshStat, struct stat *st);
/haiku/headers/posix/compat/sys/
H A Dstat.h9 #include <sys/stat.h>
39 extern void convert_to_stat_beos(const struct stat* stat,
42 struct stat* stat);
/haiku/src/system/libroot/os/
H A Dfs_info.c21 struct stat stat; local
22 int status = _kern_read_stat(-1, path, true, &stat, sizeof(struct stat));
24 return stat.st_dev;
H A Dfs_index.c41 struct stat stat; local
43 status_t status = _kern_read_index_stat(device, name, &stat);
45 indexInfo->type = stat.st_type;
46 indexInfo->size = stat.st_size;
47 indexInfo->modification_time = stat.st_mtime;
48 indexInfo->creation_time = stat.st_crtime;
49 indexInfo->uid = stat.st_uid;
50 indexInfo->gid = stat.st_gid;
/haiku/headers/posix/
H A Dftw.h30 #include <sys/stat.h>
40 #define FTW_NS 4 /* Unknown type; stat() failed. */
58 int ftw(const char *, int (*)(const char *, const struct stat *, int), int);
59 int nftw(const char *, int (*)(const char *, const struct stat *, int,
/haiku/src/system/libroot/posix/stdlib/
H A Drealpath.cpp11 #include <sys/stat.h>
39 struct stat stat; local
40 if (lstat(resolvedPath, &stat) != 0) {
/haiku/src/add-ons/kernel/file_systems/netfs/headers/shared/
H A DNodeInfo.h6 #include <sys/stat.h>
16 struct stat st;
/haiku/src/add-ons/kernel/file_systems/packagefs/nodes/
H A DAttributeCookie.h9 #include <sys/stat.h>
21 virtual status_t ReadAttributeStat(struct stat* st) = 0;
/haiku/src/build/libbe/storage/
H A DStatable.cpp15 #include <sys/stat.h>
17 /*! \fn status_t GetStat(struct stat *st) const
18 \brief Returns the stat stucture for the node.
19 \param st the stat structure to be filled in.
39 struct stat statData;
53 struct stat statData;
67 struct stat statData;
82 struct stat statData;
100 struct stat statData;
115 struct stat statDat
[all...]
/haiku/src/bin/
H A Dfortune.c13 #include <sys/stat.h>
86 struct stat stat; local
104 if (fstat(fd, &stat) < 0) {
105 fprintf(stderr, "stat() failed: %s\n", strerror(errno));
109 if (S_ISDIR(stat.st_mode)) {
118 if (fstat(fd, &stat) < 0) {
119 fprintf(stderr, "stat() failed: %s\n", strerror(errno));
124 buffer = malloc(stat.st_size + 1);
130 if (read(fd, buffer, stat
[all...]
/haiku/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/
H A Dh2transactions.cpp37 bdev->stat.bytesRX += count;
68 bdev->stat.successfulTX++;
70 bdev->stat.errorRX++;
81 bdev->stat.rejectedRX++;
85 bdev->stat.acceptedRX++;
107 bdev->stat.successfulRX++;
109 bdev->stat.errorRX++;
120 bdev->stat.rejectedRX++;
123 bdev->stat.acceptedRX++;
147 bdev->stat
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/usb/
H A Drtwn_usb_rx.c71 struct rtwn_rx_stat_common *stat)
85 rxdw0 = le32toh(stat->rxdw0);
111 rtwn_rx_copy_to_mbuf(struct rtwn_softc *sc, struct rtwn_rx_stat_common *stat, argument
122 __func__, le32toh(stat->rxdw0), le32toh(stat->rxdw1),
123 le32toh(stat->rxdw2), le32toh(stat->rxdw3), le32toh(stat->rxdw4),
124 le32toh(stat->tsf_low));
126 if (rtwn_rx_check_pre_alloc(sc, stat) !
70 rtwn_rx_check_pre_alloc(struct rtwn_softc *sc, struct rtwn_rx_stat_common *stat) argument
157 struct rtwn_rx_stat_common *stat = &uc->uc_rx_stat; local
243 struct rtwn_rx_stat_common *stat; local
354 struct rtwn_rx_stat_common stat; local
[all...]
/haiku/src/system/libroot/posix/glibc/include/sys/
H A Dstat.h2 #include_next <sys/stat.h>
5 #include <bits/stat.h>
8 extern int __stat (__const char *__file, struct stat *__buf);
9 extern int __fstat (int __fd, struct stat *__buf);
10 extern int __lstat (__const char *__file, struct stat *__buf);
26 extern __inline__ int __stat (__const char *__path, struct stat *__statbuf)
38 /* The `stat', `fstat', `lstat' functions have to be handled special since
43 #define stat(fname, buf) __xstat (_STAT_VER, fname, buf)
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DMetadataCache.h33 status_t GetStat(struct stat* st);
34 void SetStat(const struct stat& st);
51 void NotifyChanges(const struct stat* oldStat,
52 const struct stat* newStat);
55 struct stat fStatCache;
/haiku/headers/os/storage/
H A DStatable.h12 #include <sys/stat.h>
27 virtual status_t _GetStat(struct stat_beos* stat) const = 0;
31 virtual status_t GetStat(struct stat* stat) const = 0;
72 virtual status_t set_stat(struct stat &st, uint32 what) = 0;

Completed in 258 milliseconds

1234567891011>>