From: John Hodge Date: Mon, 17 Oct 2011 03:11:07 +0000 (+0800) Subject: Usermode/include - A pile of hack known as the Acess fcntl.h X-Git-Tag: rel0.13~47 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9a70d1ed74070f56c34b856f88931b134d429c3a;p=tpg%2Facess2.git Usermode/include - A pile of hack known as the Acess fcntl.h - Macros a few Acess syscalls into the posix equivalents --- diff --git a/Usermode/include/fcntl.h b/Usermode/include/fcntl.h new file mode 100644 index 00000000..5fee9a11 --- /dev/null +++ b/Usermode/include/fcntl.h @@ -0,0 +1,26 @@ +/* + * Acess2 C Library (UNIX Emulation) + * - By John Hodge (thePowersGang) + * + * fcntl.h + * - ?? + */ + +#ifndef _FCNTL_H_ +#define _FCNTL_H_ + +#include + +// Hacks to handle different behaviors in Acess + +// Open doesn't take a chmod +#define open(_1,_2,...) open(_1, _2) + +// Close returns void +#define close(_1) (close(_1),0) + +// Acess doesn't implement lseek +#define lseek(_1,_2,_3) (seek(_1,_2,_3),tell(_1)) + +#endif +