a guest Aug 20th, 2016 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cc1: warning: unrecognized gcc debugging option: l
  2. override.c:10:5: error: conflicting types for ‘fopen’
  3.  int fopen(const char *path, const char *mode) {
  4.      ^
  5. In file included from override.c:4:0:
  6. /usr/include/stdio.h:272:14: note: previous declaration of ‘fopen’ was here
  7.  extern FILE *fopen (const char *__restrict __filename,
  8.               ^
  9. override.c: In function ‘open’:
  10. override.c:25:17: error: ‘O_CREAT’ undeclared (first use in this function)
  11.      if (oflag & O_CREAT) {
  12.                  ^
  13. override.c:25:17: note: each undeclared identifier is reported only once for each function it appears in
  14. override.c:26:48: error: macro "va_arg" requires 2 arguments, but only 1 given
  15.          ret = open(path, oflag, (mode_t)va_arg());
  16.                                                 ^
  17. override.c:26:41: error: ‘va_arg’ undeclared (first use in this function)
  18.          ret = open(path, oflag, (mode_t)va_arg());
  19.                                          ^
  20. override.c:18:11: warning: unused variable ‘original_fopen’ [-Wunused-variable]
  21.      int (*original_fopen)(const char *, int, ...) = dlsym(RTLD_NEXT, "open");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand