Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
file_properties.h
Go to the documentation of this file.
1#ifndef FILE_PROPERTIES_H
2#define FILE_PROPERTIES_H
3
4#include <stdint.h>
5#include <stdbool.h>
6
7#ifdef _WIN32
8typedef unsigned long nlink_t;
9typedef unsigned long uid_t;
10typedef unsigned long gid_t;
11#else
12#include <sys/types.h>
13#endif
14
15#ifdef __cplusplus
16extern "C"
17{
18#endif
27 bool PHASORstd_file_setProperties(char *path, char param, int64_t epoch);
28
36 int64_t PHASORstd_file_getProperties(char *path, char param);
37
48 nlink_t PHASORstd_file_getLinksCount(const char *path);
49
62 bool PHASORstd_file_getOwnerId(const char *path, uid_t *uid, gid_t *gid);
63#ifdef __cplusplus
64} // extern "C"
65#endif
66
67#endif // FILE_PROPERTIES_H
nlink_t PHASORstd_file_getLinksCount(const char *path)
Retrieves the number of hard links to a file.
int64_t PHASORstd_file_getProperties(char *path, char param)
Get file metadata time property.
bool PHASORstd_file_getOwnerId(const char *path, uid_t *uid, gid_t *gid)
Retrieves the owner identifier of a file.
bool PHASORstd_file_setProperties(char *path, char param, int64_t epoch)
Set file metadata time property.