32 return mkdir(path, 0777);
66 || (isalpha(path[0]) && (path[1] ==
':') &&
G_is_dirsep(path[2]))
87 for (i = path; *i; i++) {
109 for (i = path; *i; i++) {
128 int G_stat(
const char *file_name,
struct stat *buf)
130 return stat(file_name, buf);
145 int G_lstat(
const char *file_name,
struct stat *buf)
148 return stat(file_name, buf);
150 return lstat(file_name, buf);
172 return (
int)info.st_uid;
180 PSID pSidOwner =
NULL;
181 BOOL bRtnBool =
TRUE;
182 LPTSTR AcctName =
NULL;
183 LPTSTR DomainName =
NULL;
184 DWORD dwAcctName = 1, dwDomainName = 1;
185 SID_NAME_USE eUse = SidTypeUnknown;
187 PSECURITY_DESCRIPTOR pSD =
NULL;
196 FILE_ATTRIBUTE_NORMAL,
200 if (hFile == INVALID_HANDLE_VALUE) {
205 dwRtnCode = GetSecurityInfo(
208 OWNER_SECURITY_INFORMATION,
216 if (dwRtnCode != ERROR_SUCCESS) {
221 return (
int)pSidOwner;
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
int G_stat(const char *file_name, struct stat *buf)
Get file status.
int G_owner(const char *path)
Get owner id of path.
int G_mkdir(const char *path)
Creates a new directory.
char * G_convert_dirseps_to_host(char *path)
Converts directory separator characters in a string to the native host separator character (/ on Unix...
int G_lstat(const char *file_name, struct stat *buf)
Get file status.
int G_is_absolute_path(const char *path)
Checks if a specified path looks like an absolute path on the host system.
int G_is_dirsep(char c)
Checks if a specified character is a valid directory separator character on the host system...
char * G_convert_dirseps_from_host(char *path)
Converts directory separator characters in a string from the native host character to the GRASS separ...