Verified Commit 3fefaec3 authored by Marc Vef's avatar Marc Vef
Browse files

Add headers and new user function headers

parent 965614f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ endmacro()

include(SelectLibraryConfigurations)

set(_mercury_components na mercury_util mercury_hl)
set(_mercury_components na mercury_util)

# prevent repeating work if the main CMakeLists.txt already called
# find_package(PkgConfig)
+11 −3
Original line number Diff line number Diff line
@@ -40,20 +40,28 @@ int
gkfs_open(const std::string& path, mode_t mode, int flags);

int
gkfs_remove(const std::string& path);
gkfs_create(const std::string& path, mode_t mode);

int
gkfs_remove(const std::string& path);

ssize_t
gkfs_write(int fd, const void* buf, size_t count);


ssize_t
gkfs_read(int fd, void* buf, size_t count);


int
gkfs_close(unsigned int fd);

off64_t
gkfs_lseek(unsigned int fd, off64_t offset, unsigned int whence);

ssize_t
gkfs_pwrite_ws(int fd, const void* buf, size_t count, off64_t offset);

ssize_t
gkfs_pread_ws(int fd, void* buf, size_t count, off64_t offset);

} // namespace gkfs::syscall

+1 −0
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@ install(
set_target_properties(gkfs_user_lib 
	PROPERTIES
	PUBLIC_HEADER "../../include/client/void_syscall_intercept.hpp"
	PUBLIC_HEADER "../../include/client/user_functions.hpp"
)