tools: Fixes following build syscall change.

This commit is contained in:
Augustin Cavalier
2017-12-14 08:32:19 -05:00
parent 1465ec71a0
commit 637d99977c
4 changed files with 13 additions and 6 deletions
+1
View File
@@ -18,6 +18,7 @@ using namespace FSShell;
#if (!defined(__BEOS__) && !defined(__HAIKU__))
// The _kern_open() defined in libroot_build.so.
# define _kern_open _kernbuild_open
extern "C" int _kern_open(int fd, const char *path, int openMode,
int perms);
#endif
+6 -5
View File
@@ -23,6 +23,7 @@ using FSShell::to_platform_mode;
#if (!defined(__BEOS__) && !defined(__HAIKU__))
// The _kern_read_stat() defined in libroot_build.so.
# define _kern_read_stat _kernbuild_read_stat
extern "C" status_t _kern_read_stat(int fd, const char *path,
bool traverseLink, struct stat *st, size_t statSize);
#endif
@@ -47,7 +48,7 @@ FSShell::unrestricted_stat(const char *path, struct fssh_stat *fsshStat)
#endif
from_platform_stat(&st, fsshStat);
return 0;
}
@@ -71,7 +72,7 @@ FSShell::unrestricted_fstat(int fd, struct fssh_stat *fsshStat)
#endif
from_platform_stat(&st, fsshStat);
return 0;
}
@@ -95,7 +96,7 @@ FSShell::unrestricted_lstat(const char *path, struct fssh_stat *fsshStat)
#endif
from_platform_stat(&st, fsshStat);
return 0;
}
@@ -125,7 +126,7 @@ fssh_fstat(int fd, struct fssh_stat *fsshStat)
{
if (FSShell::unrestricted_fstat(fd, fsshStat) < 0)
return -1;
FSShell::restricted_file_restrict_stat(fsshStat);
return 0;
@@ -137,7 +138,7 @@ fssh_lstat(const char *path, struct fssh_stat *fsshStat)
{
if (FSShell::unrestricted_lstat(path, fsshStat) < 0)
return -1;
FSShell::restricted_file_restrict_stat(fsshStat);
return 0;
+5 -1
View File
@@ -43,7 +43,11 @@
#if (!defined(__BEOS__) && !defined(__HAIKU__))
# include "syscalls.h"
// Defined in libroot_build.so.
# define _kern_dup _kernbuild_dup
# define _kern_close _kernbuild_close
extern "C" int _kern_dup(int fd);
extern "C" status_t _kern_close(int fd);
#endif
+1
View File
@@ -30,6 +30,7 @@
# endif
# define HAIKU_USE_KERN_OPEN 1
# define _kern_open _kernbuild_open
extern int _kern_open(int fd, const char *path, int openMode, int perms);
#endif // !__BEOS__