Implemented POSIX.1-2008 functions unlinkat(), symlinkat(), mkdirat(),

utimensat(), and futimens().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34010 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-11-12 19:14:42 +00:00
parent 3f98707eb3
commit 6c00aabc9e
7 changed files with 114 additions and 29 deletions
+13
View File
@@ -101,6 +101,10 @@ struct stat {
#define DEFFILEMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
/* default file mode, everyone can read/write */
/* special values for timespec::tv_nsec passed to utimensat(), futimens() */
#define UTIME_NOW 1000000000
#define UTIME_OMIT 1000000001
#ifdef __cplusplus
extern "C" {
#endif
@@ -114,9 +118,18 @@ extern int lstat(const char *path, struct stat *st);
extern int fstatat(int fd, const char *path, struct stat *st, int flag);
#endif
extern int mkdir(const char *path, mode_t mode);
#ifdef B_ENABLE_INCOMPLETE_POSIX_AT_SUPPORT
extern int mkdirat(int fd, const char *path, mode_t mode);
#endif
extern int mkfifo(const char *path, mode_t mode);
extern mode_t umask(mode_t cmask);
#ifdef B_ENABLE_INCOMPLETE_POSIX_AT_SUPPORT
extern int utimensat(int fd, const char *path,
const struct timespec times[2], int flag);
#endif
extern int futimens(int fd, const struct timespec times[2]);
#ifdef __cplusplus
}
#endif