32 return mkdir(
path, 0777);
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;
181 PSID pSidOwner =
NULL;
182 BOOL bRtnBool =
TRUE;
183 LPTSTR AcctName =
NULL;
184 LPTSTR DomainName =
NULL;
185 DWORD dwAcctName = 1, dwDomainName = 1;
186 SID_NAME_USE eUse = SidTypeUnknown;
188 PSECURITY_DESCRIPTOR pSD =
NULL;
191 hFile = CreateFile(TEXT(
path),
196 FILE_ATTRIBUTE_NORMAL,
200 if (hFile == INVALID_HANDLE_VALUE) {
205 dwRtnCode = GetSecurityInfo(hFile,
207 OWNER_SECURITY_INFORMATION,
215 if (dwRtnCode != ERROR_SUCCESS) {
220 return (
int)pSidOwner;
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
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_mkdir(const char *path)
Creates a new directory.
int G_is_absolute_path(const char *path)
Checks if a specified path looks like an absolute path 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...
int G_is_dirsep(char c)
Checks if a specified character is a valid directory separator character on the host system.
int G_owner(const char *path)
Get owner id of path.
int G_stat(const char *file_name, struct stat *buf)
Get file status.
int G_lstat(const char *file_name, struct stat *buf)
Get file status.