Phasor 2.2.0
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 file_set_properties(char* path, char param, int64_t epoch);
28
36 int64_t file_get_properties(char* path, char param);
37
48 nlink_t file_get_links_count(const char* path);
49
62 bool file_get_owner_id(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 file_get_links_count(const char *path)
Retrieves the number of hard links to a file.
int64_t file_get_properties(char *path, char param)
Get file metadata time property.
bool file_get_owner_id(const char *path, uid_t *uid, gid_t *gid)
Retrieves the owner identifier of a file.
bool file_set_properties(char *path, char param, int64_t epoch)
Set file metadata time property.