From: John Hodge (sonata) Date: Wed, 28 Nov 2012 11:08:18 +0000 (+0800) Subject: Usermode/ld-acess - Cleaning out unused/unneeded headers X-Git-Tag: rel0.15~638 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9e863698bbc96747979807687412a16dcf67ec06;p=tpg%2Facess2.git Usermode/ld-acess - Cleaning out unused/unneeded headers --- diff --git a/Usermode/Libraries/Makefile.tpl b/Usermode/Libraries/Makefile.tpl index bf2e9320..71600752 100644 --- a/Usermode/Libraries/Makefile.tpl +++ b/Usermode/Libraries/Makefile.tpl @@ -44,7 +44,7 @@ $(_OBJPREFIX)%.o: %.c @echo [CC] -o $@ @mkdir -p $(dir $@) @$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< - @$(CC) -M -MT $@ $(CPPFLAGS) $< -o $@.dep + @$(CC) -M -MP -MT $@ $(CPPFLAGS) $< -o $@.dep $(_OBJPREFIX)%.ao: %.$(ASSUFFIX) @echo [AS] -o $@ diff --git a/Usermode/Libraries/ld-acess.so_src/include_exp/stddef_.h b/Usermode/Libraries/ld-acess.so_src/include_exp/stddef_.h deleted file mode 100644 index 1995839c..00000000 --- a/Usermode/Libraries/ld-acess.so_src/include_exp/stddef_.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef _STDDEF_H_ -#define _STDDEF_H_ - -#include "acess/intdefs.h" - -#ifndef NULL -# define NULL ((void*)0) -#endif - -typedef __intptr_t size_t; - -#endif diff --git a/Usermode/Libraries/ld-acess.so_src/include_exp/sys/sys.h b/Usermode/Libraries/ld-acess.so_src/include_exp/sys/sys.h deleted file mode 100644 index 7666d9a7..00000000 --- a/Usermode/Libraries/ld-acess.so_src/include_exp/sys/sys.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - Syscall Definitions -*/ -#ifndef _SYS_SYS_H_ -#define _SYS_SYS_H_ - -#include - -#include - -//#define O_RDONLY OPENFLAG_READ -//#define O_WRONLY OPENFLAG_WRITE -//#define O_CREAT (OPENFLAG_CREATE|OPENFLAG_WRITE) -//#define O_TRUNC OPENFLAG_WRITE -//#define O_APPEND OPENFLAG_WRITE - - -#if 0 -#define OPEN_FLAG_READ 1 -#define OPEN_FLAG_WRITE 2 -#define OPEN_FLAG_EXEC 4 - -enum { - K_WAITPID_DIE = 0 -}; - -// === System Calls === -extern void _exit(int ret); -extern int brk(int bssend); -extern int execve(char *file, char *args[], char *envp[]); -extern int fork(); -extern int yield(); -extern int sleep(); - -extern int open(char *file, int flags); -extern int close(int fp); -extern int read(int fp, int len, void *buf); -extern int write(int fp, int len, void *buf); -extern int tell(int fp); -extern void seek(int fp, int64_t dist, int flag); -extern int fstat(int fp, t_fstat *st); -extern int ioctl(int fp, int call, void *arg); -extern int readdir(int fp, char *file); - -extern int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errfds, time_t *timeout); - -extern int kdebug(char *fmt, ...); -extern int waitpid(int pid, int action); -extern int gettid(); // Get Thread ID -extern int getpid(); // Get Process ID -extern int sendmsg(int dest, unsigned int *Data); -extern int pollmsg(int *src, unsigned int *Data); -extern int getmsg(int *src, unsigned int *Data); -#endif - -#endif