xref: /haiku/src/build/libroot/remapped_functions.h (revision 6c4a44e36ba846c54467103f884d65dfa13e7fcb)
1 /*
2  * Copyright 2005-2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef REMAPPED_FUNCTIONS_H
6 #define REMAPPED_FUNCTIONS_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 int		_haiku_build_fchmod(int fd, mode_t mode);
13 int		_haiku_build_fchmodat(int fd, const char* path, mode_t mode, int flag);
14 int		_haiku_build_fstat(int fd, struct stat* st);
15 int		_haiku_build_fstatat(int fd, const char* path, struct stat* st,
16 			int flag);
17 int		_haiku_build_mkdirat(int fd, const char* path, mode_t mode);
18 int		_haiku_build_mkfifoat(int fd, const char* path, mode_t mode);
19 int		_haiku_build_utimensat(int fd, const char* path,
20 			const struct timespec times[2], int flag);
21 int		_haiku_build_futimens(int fd, const struct timespec times[2]);
22 int		_haiku_build_faccessat(int fd, const char* path, int accessMode,
23 			int flag);
24 int		_haiku_build_fchdir(int fd);
25 int		_haiku_build_close(int fd);
26 int		_haiku_build_dup(int fd);
27 int		_haiku_build_dup2(int fd1, int fd2);
28 int		_haiku_build_linkat(int toFD, const char* toPath, int pathFD,
29 			const char* path, int flag);
30 int		_haiku_build_unlinkat(int fd, const char* path, int flag);
31 ssize_t	_haiku_build_readlinkat(int fd, const char* path, char* buffer,
32 			size_t bufferSize);
33 int		_haiku_build_symlinkat(const char* toPath, int fd,
34 			const char* symlinkPath);
35 int		_haiku_build_ftruncate(int fd, off_t newSize);
36 int		_haiku_build_fchown(int fd, uid_t owner, gid_t group);
37 int		_haiku_build_fchownat(int fd, const char* path, uid_t owner,
38 			gid_t group, int flag);
39 int		_haiku_build_mknodat(int fd, const char* name, mode_t mode, dev_t dev);
40 int		_haiku_build_creat(const char* path, mode_t mode);
41 int		_haiku_build_open(const char* path, int openMode, mode_t permissions);
42 int		_haiku_build_openat(int fd, const char* path, int openMode,
43 			mode_t permissions);
44 int		_haiku_build_fcntl(int fd, int op, int argument);
45 int		_haiku_build_renameat(int fromFD, const char* from, int toFD,
46 			const char* to);
47 
48 #ifdef __cplusplus
49 } // extern "C"
50 #endif
51 
52 
53 #endif	// REMAPPED_FUNCTIONS_H
54