Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 192414 Details for
Bug 257714
safecopy-1.0.ebuild (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch needed for test suite in ssafecopy-1.3 on amd64
safecopy-1.3-amd64.patch (text/plain), 1.75 KB, created by
Corvus Corax
on 2009-05-25 15:44:10 UTC
(
hide
)
Description:
patch needed for test suite in ssafecopy-1.3 on amd64
Filename:
MIME Type:
Creator:
Corvus Corax
Created:
2009-05-25 15:44:10 UTC
Size:
1.75 KB
patch
obsolete
>diff -rU 5 safecopy-1.3.orig/test/libsafecopydebug/src/safecopydebuglb.c safecopy-1.3/test/libsafecopydebug/src/safecopydebuglb.c >--- safecopy-1.3.orig/test/libsafecopydebug/src/safecopydebuglb.c 2009-05-20 14:51:59.000000000 +0200 >+++ safecopy-1.3/test/libsafecopydebug/src/safecopydebuglb.c 2009-05-25 16:00:35.000000000 +0200 >@@ -1,9 +1,10 @@ > /** > * This file is copyright ©2009 Corvus Corax > * Distributed under the terms of the GPL version 2 or higher > */ >+#define _FILE_OFFSET_BITS 64 > #include <config.h> > > #ifdef USE_GNU_SOURCE > #define _GNU_SOURCE > #endif >@@ -33,14 +34,16 @@ > > static int mydesc=-1; > static off_t current=0; > > void _init(void); >+int open(const char*,int,...); > int open64(const char*,int,...); >+off_t lseek(int,off_t,int); > off64_t lseek64(int,off64_t,int); > ssize_t read(int,void*,size_t); >-int close64(int); >+int close(int); > > ssize_t write(int, const void *, size_t); > > > static int softerror[MAXSOFTERRORS]={0}; >@@ -155,10 +158,21 @@ > realread=dlsym(RTLD_NEXT,"read"); > myprint("debugfile initialising - reading config "CONFIGFILE"\n"); > readoptions(); > } > >+int open(const char *pathname, int flags, ...) { >+ int mode=0; >+ if (flags & O_CREAT) { >+ va_list ap; >+ va_start (ap,flags); >+ mode=va_arg(ap,int); >+ va_end(ap); >+ } >+ return open64(pathname,flags,mode); >+} >+ > int open64(const char *pathname,int flags,...) { > //va_list ap; > int fd; > int mode=0; > if (flags & O_CREAT) { >@@ -192,10 +206,14 @@ > mydesc=-1; > } > return realclose(fd); > } > >+off_t lseek(int filedes, off_t offset, int whence) { >+ return lseek64(filedes,offset,whence); >+} >+ > off64_t lseek64(int filedes, off64_t offset, int whence) { > off64_t newcurrent=0; > if ( filedes==mydesc && mydesc!=-1) { > if (whence==SEEK_SET) { > myprint("seeking in debug: SEEK_SET to ");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257714
:
180995
|
188263
|
192414
|
192416
|
192424
|
192487
|
192488