Move futimesat() from fs.cpp to fs_darwin.cpp since it is implimented on FreeBSD. It is stubbed out for now.
This commit is contained in:
parent
9d6e5fdb65
commit
00f72094a1
|
@ -22,9 +22,6 @@
|
|||
# ifndef _HAIKU_BUILD_NO_FUTIMENS
|
||||
# define _HAIKU_BUILD_NO_FUTIMENS 1
|
||||
# endif
|
||||
# ifndef _HAIKU_BUILD_NO_FUTIMESAT
|
||||
# define _HAIKU_BUILD_NO_FUTIMESAT 1
|
||||
# endif
|
||||
# ifndef _HAIKU_BUILD_NO_UTIMENSAT
|
||||
# define _HAIKU_BUILD_NO_UTIMENSAT 1
|
||||
# endif
|
||||
|
|
|
@ -158,16 +158,6 @@ futimens(int fd, const struct timespec times[2])
|
|||
|
||||
#endif // _HAIKU_BUILD_NO_FUTIMENS
|
||||
|
||||
#ifdef _HAIKU_BUILD_NO_FUTIMESAT
|
||||
|
||||
int
|
||||
futimesat(int fd, const char *path, const struct timeval times[2]) {
|
||||
FDFile file(fd);
|
||||
return futimes(fd, times);
|
||||
}
|
||||
|
||||
#endif // _HAIKU_BUILD_NO_FUTIMESAT
|
||||
|
||||
#ifdef _HAIKU_BUILD_NO_UTIMENSAT
|
||||
|
||||
struct FDPathFile {
|
||||
|
|
|
@ -97,3 +97,10 @@ linkat(int toFD, const char *toPath, int linkFD, const char *linkPath, int flag)
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
futimesat(int fd, const char *path, const struct timeval times[2])
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -26,6 +26,9 @@ int renameat(int fromFD, const char* from, int toFD, const char* to);
|
|||
ssize_t readlinkat(int fd, const char *path, char *buffer, size_t bufferSize);
|
||||
int symlinkat(const char *toPath, int fd, const char *symlinkPath);
|
||||
int unlinkat(int fd, const char *path, int flag);
|
||||
int linkat(int toFD, const char *toPath, int linkFD, const char *linkPath, int flag);
|
||||
int linkat(int toFD, const char *toPath, int linkFD, const char *linkPath,
|
||||
int flag);
|
||||
|
||||
int futimesat(int fd, const char *path, const struct timeval times[2]);
|
||||
|
||||
#endif // FS_DARWIN_H
|
||||
|
|
Loading…
Reference in New Issue