OBJ = main.o unistd.o dirent.o stat.o utmpx.o termios.o\r
OBJ += pwd.o syslog.o sys_time.o sys_ioctl.o sys_resource.o\r
OBJ += fcntl.o clocks.o sys_wait.o unistd_crypt.o\r
-OBJ += grp.o pty.o mktemp.o\r
+OBJ += grp.o pty.o mktemp.o utime.o\r
DEPFILES := $(OBJ:%.o=%.d)\r
BIN = libposix.so\r
\r
#include <stddef.h>
+#define __USE_BSD 1
+
//typedef signed int ssize_t;
-//#ifdef __USE_BSD
+
+#ifdef __USE_BSD
+typedef unsigned long u_long;
typedef unsigned int u_int;
-//#endif
+#endif
typedef struct stat t_fstat;
return ret;
}
+int access(const char *path, int openmode)
+{
+ errno = EINVAL;
+ return -1;
+}
+
int creat(const char *path, mode_t mode)
{
// TODO: Make native call to do this cheaper
--- /dev/null
+/*
+ * Acess2 POSIX Emulation Layer
+ * - By John Hodge
+ *
+ * utime.h
+ * -
+ */
+#include <utime.h>
+#include <acess/sys.h>
+
+// === CODE ===
+int utime(const char *filename, const struct utimbuf *times)
+{
+ _SysDebug("TODO: libposix utime('%s', {%lli,%lli})",
+ filename, times->actime, times->modtime
+ );
+ return 0;
+}
+