diff options
author | Brian Harring <ferringb@gentoo.org> | 2005-10-06 18:24:42 +0000 |
---|---|---|
committer | Brian Harring <ferringb@gentoo.org> | 2005-10-06 18:24:42 +0000 |
commit | bc50b6c32147c44ef8dff437e3f4b453ce3db43f (patch) | |
tree | 33bd69b789cca402c9436e5e1541e0a2253b6991 /src/sandbox/problems/libsandbox_emacsbug.c | |
parent | 7fe92cf8e1497051fbcc05ed2b7893b523beb02f (diff) | |
download | portage-bc50b6c32147c44ef8dff437e3f4b453ce3db43f.tar.gz portage-bc50b6c32147c44ef8dff437e3f4b453ce3db43f.tar.bz2 portage-bc50b6c32147c44ef8dff437e3f4b453ce3db43f.zip |
removing unused sandbox dirs.
svn path=/main/branches/2.0/; revision=2116
Diffstat (limited to 'src/sandbox/problems/libsandbox_emacsbug.c')
-rw-r--r-- | src/sandbox/problems/libsandbox_emacsbug.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/sandbox/problems/libsandbox_emacsbug.c b/src/sandbox/problems/libsandbox_emacsbug.c deleted file mode 100644 index 0742bcdc1..000000000 --- a/src/sandbox/problems/libsandbox_emacsbug.c +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id: /var/cvsroot/gentoo-src/portage/src/sandbox/problems/Attic/libsandbox_emacsbug.c,v 1.2 2003/03/22 14:24:38 carpaski Exp $ */ - -#define _GNU_SOURCE -#define _REENTRANT - -#define open xxx_open -# include <dlfcn.h> -# include <errno.h> -# include <fcntl.h> -# include <stdlib.h> -# include <sys/stat.h> -# include <sys/types.h> -#undef open - -extern int open(const char*, int, mode_t); -int (*orig_open)(const char*, int, mode_t) = NULL; -int open(const char* pathname, int flags, mode_t mode) -{ - int old_errno = errno; - - /* code that makes xemacs' compilation produce a segfaulting executable */ -/* char** test = NULL; - test = (char**)malloc(sizeof(char*)); - free(test);*/ - /* end of that code */ - - if (!orig_open) - { - orig_open = dlsym(RTLD_NEXT, "open"); - } - errno = old_errno; - return orig_open(pathname, flags, mode); -} - |