X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=pkgsrc-ghc.git;a=blobdiff_plain;f=files%2Fcapi-wrappers-darwin-powerpc.c;fp=files%2Fcapi-wrappers-darwin-powerpc.c;h=0000000000000000000000000000000000000000;hp=4905983322799773c015034fa9890b379c840625;hb=4fe2e34ec7254f1e4eb85b085ea22fd09866b245;hpb=96e61103d139f67648ba7729b614e2cedcbb1ad4 diff --git a/files/capi-wrappers-darwin-powerpc.c b/files/capi-wrappers-darwin-powerpc.c deleted file mode 100644 index 4905983..0000000 --- a/files/capi-wrappers-darwin-powerpc.c +++ /dev/null @@ -1,49 +0,0 @@ -#include -#include -#include -#include - -/* A quick and dirty hack to resurrect -fvia-C from bitrot. - * - * The newest CapiFFI extension doesn't play nice with -fvia-C, - * generating function wrappers without saving them into the .hc - * files. - */ - -int ghc_wrapper_d2lP_fcntl(int filedes, int cmd); -int ghc_wrapper_d2lD_fcntl(int filedes, int cmd, long arg); -int ghc_wrapper_d2lo_fcntl(int filedes, int cmd, struct flock* arg); -int ghc_wrapper_d1mz_gettimeofday(struct timeval* tp, void* tzp); -int ghc_wrapper_d2jE_utime(const char *path, const struct utimbuf *times); -void SystemziConsoleziTerminfoziBase_d2eD(void *cif, void* resp, void** args, void* the_stableptr); - -/* c_fcntl_read */ -int ghc_wrapper_d2lP_fcntl(int filedes, int cmd) { - return fcntl(filedes, cmd); -} - -/* c_fcntl_write */ -int ghc_wrapper_d2lD_fcntl(int filedes, int cmd, long arg) { - return fcntl(filedes, cmd, arg); -} - -/* c_fcntl_lock */ -int ghc_wrapper_d2lo_fcntl(int filedes, int cmd, struct flock* arg) { - return fcntl(filedes, cmd, arg); -} - -int ghc_wrapper_d1mz_gettimeofday(struct timeval* tp, void* tzp) { - return gettimeofday(tp, tzp); -} - -int ghc_wrapper_d2jE_utime(const char *path, const struct utimbuf *times) { - return utime(path, times); -} - -void SystemziConsoleziTerminfoziBase_d2eD(void *cif, void* resp, void** args, void* the_stableptr) { - /* The recipe to create this function is somewhere in - * compiler/deSugar/DsForeign.lhs, but... I don't want to bother - * replicating that here. - */ - assert("DO NOT CALL THIS FUNCTION" == NULL); -}