diff options
Diffstat (limited to 'guts/fopen64.c')
-rw-r--r-- | guts/fopen64.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/guts/fopen64.c b/guts/fopen64.c deleted file mode 100644 index b2724de..0000000 --- a/guts/fopen64.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2008-2010 Wind River Systems; see - * guts/COPYRIGHT for information. - * - * static FILE * - * wrap_fopen64(const char *path, const char *mode) { - * FILE * rc = 0; - */ - struct stat64 buf; - int save_errno; - - int existed = (real___xstat64(_STAT_VER, path, &buf) != -1); - - rc = real_fopen64(path, mode); - save_errno = errno; - - if (rc) { - int fd = fileno(rc); - - pseudo_debug(2, "fopen64 '%s': fd %d <FILE %p>\n", path, fd, (void *) rc); - if (real___fxstat64(_STAT_VER, fd, &buf) != -1) { - if (!existed) { - pseudo_client_op(OP_CREAT, 0, -1, -1, path, &buf); - } - pseudo_client_op(OP_OPEN, pseudo_access_fopen(mode), fd, -1, path, &buf); - } else { - pseudo_debug(1, "fopen64 (fd %d) succeeded, but fstat failed (%s).\n", - fd, strerror(errno)); - pseudo_client_op(OP_OPEN, pseudo_access_fopen(mode), fd, -1, path, 0); - } - errno = save_errno; - } - -/* return rc; - * } - */ |