FreeBSD Bugzilla – Attachment 188474 Details for
Bug 224026
[patch] devel/binutils fix gold on ZFS after r325320
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-gold__output.cc
devel.binutils.patch (text/plain), 1.53 KB, created by
Vladimir Kondratyev
on 2017-12-02 20:08:46 UTC
(
hide
)
Description:
patch-gold__output.cc
Filename:
MIME Type:
Creator:
Vladimir Kondratyev
Created:
2017-12-02 20:08:46 UTC
Size:
1.53 KB
patch
obsolete
>Index: devel/binutils/files/patch-gold__output.cc >=================================================================== >--- devel/binutils/files/patch-gold__output.cc (nonexistent) >+++ devel/binutils/files/patch-gold__output.cc (working copy) >@@ -0,0 +1,32 @@ >+--- gold/output.cc.orig 2017-03-02 08:23:53 UTC >++++ gold/output.cc >+@@ -127,14 +127,26 @@ namespace gold >+ static int >+ gold_fallocate(int o, off_t offset, off_t len) >+ { >++ if (len <= 0) >++ return 0; >++ >+ #ifdef HAVE_POSIX_FALLOCATE >+ if (parameters->options().posix_fallocate()) >+- return ::posix_fallocate(o, offset, len); >++ { >++ int err = ::posix_fallocate(o, offset, len); >++ if (err != EINVAL && err != ENOSYS && err != EOPNOTSUPP) >++ return err; >++ } >+ #endif // defined(HAVE_POSIX_FALLOCATE) >++ >+ #ifdef HAVE_FALLOCATE >+- if (::fallocate(o, 0, offset, len) == 0) >+- return 0; >++ { >++ int err = ::fallocate(o, 0, offset, len); >++ if (err != EINVAL && err != ENOSYS && err != EOPNOTSUPP) >++ return err; >++ } >+ #endif // defined(HAVE_FALLOCATE) >++ >+ if (::ftruncate(o, offset + len) < 0) >+ return errno; >+ return 0; > >Property changes on: devel/binutils/files/patch-gold__output.cc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 224026
:
188456
| 188474