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:
@@ -22,9 +22,6 @@
|
|||||||
# ifndef _HAIKU_BUILD_NO_FUTIMENS
|
# ifndef _HAIKU_BUILD_NO_FUTIMENS
|
||||||
# define _HAIKU_BUILD_NO_FUTIMENS 1
|
# define _HAIKU_BUILD_NO_FUTIMENS 1
|
||||||
# endif
|
# endif
|
||||||
# ifndef _HAIKU_BUILD_NO_FUTIMESAT
|
|
||||||
# define _HAIKU_BUILD_NO_FUTIMESAT 1
|
|
||||||
# endif
|
|
||||||
# ifndef _HAIKU_BUILD_NO_UTIMENSAT
|
# ifndef _HAIKU_BUILD_NO_UTIMENSAT
|
||||||
# define _HAIKU_BUILD_NO_UTIMENSAT 1
|
# define _HAIKU_BUILD_NO_UTIMENSAT 1
|
||||||
# endif
|
# endif
|
||||||
|
|||||||
@@ -158,16 +158,6 @@ futimens(int fd, const struct timespec times[2])
|
|||||||
|
|
||||||
#endif // _HAIKU_BUILD_NO_FUTIMENS
|
#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
|
#ifdef _HAIKU_BUILD_NO_UTIMENSAT
|
||||||
|
|
||||||
struct FDPathFile {
|
struct FDPathFile {
|
||||||
|
|||||||
@@ -97,3 +97,10 @@ linkat(int toFD, const char *toPath, int linkFD, const char *linkPath, int flag)
|
|||||||
{
|
{
|
||||||
return 0;
|
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);
|
ssize_t readlinkat(int fd, const char *path, char *buffer, size_t bufferSize);
|
||||||
int symlinkat(const char *toPath, int fd, const char *symlinkPath);
|
int symlinkat(const char *toPath, int fd, const char *symlinkPath);
|
||||||
int unlinkat(int fd, const char *path, int flag);
|
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
|
#endif // FS_DARWIN_H
|
||||||
|
|||||||
Reference in New Issue
Block a user