Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 796705 Details for
Bug 862795
app-emulation/open-vm-tools-12.0.5_p19716617 fails to compile (MUSL): asyncsocket.c:2846:13: error: invalid use of undefined type struct pollfd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use off64_t instead of loff_t
07_11.2.5-off64_t.patch (text/plain), 3.91 KB, created by
CFuga
on 2022-08-01 20:33:51 UTC
(
hide
)
Description:
use off64_t instead of loff_t
Filename:
MIME Type:
Creator:
CFuga
Created:
2022-08-01 20:33:51 UTC
Size:
3.91 KB
patch
obsolete
>From f3b2411990290c55a48a81c7deaf3733404f6cce Mon Sep 17 00:00:00 2001 >From: Natanael Copa <ncopa@alpinelinux.org> >Date: Mon, 2 Jan 2017 15:25:32 +0000 >Subject: [PATCH] use off64_t instead of loff_t > >--- > open-vm-tools/vmhgfs-fuse/file.c | 12 ++++++------ > open-vm-tools/vmhgfs-fuse/fsutil.c | 2 +- > open-vm-tools/vmhgfs-fuse/fsutil.h | 8 ++------ > 3 files changed, 9 insertions(+), 13 deletions(-) > >diff --git a/open-vm-tools/vmhgfs-fuse/file.c b/open-vm-tools/vmhgfs-fuse/file.c >index e56d621db..43259cf6f 100644 >--- a/open-vm-tools/vmhgfs-fuse/file.c >+++ b/open-vm-tools/vmhgfs-fuse/file.c >@@ -547,7 +547,7 @@ static int > HgfsDoRead(HgfsHandle handle, // IN: Handle for this file > char *buf, // OUT: Buffer to copy data into > size_t count, // IN: Number of bytes to read >- loff_t offset) // IN: Offset at which to read >+ off64_t offset) // IN: Offset at which to read > { > HgfsReq *req; > HgfsOp opUsed; >@@ -708,11 +708,11 @@ ssize_t > HgfsRead(struct fuse_file_info *fi, // IN: File info struct > char *buf, // OUT: User buffer to copy data into > size_t count, // IN: Number of bytes to read >- loff_t offset) // IN: Offset at which to read >+ off64_t offset) // IN: Offset at which to read > { > int result = 0; > char *buffer = buf; >- loff_t curOffset = offset; >+ off64_t curOffset = offset; > size_t nextCount, remainingCount = count; > uint32 maxIOSize = HgfsMaxIOSize(); > >@@ -769,7 +769,7 @@ static int > HgfsDoWrite(HgfsHandle handle, // IN: Handle for the file > const char *buf, // IN: Buffer containing data > size_t count, // IN: Number of bytes to write >- loff_t offset) // IN: Offset to begin writing at >+ off64_t offset) // IN: Offset to begin writing at > { > HgfsReq *req; > int result = 0; >@@ -893,11 +893,11 @@ ssize_t > HgfsWrite(struct fuse_file_info *fi, // IN: File info structure > const char *buf, // OUT: User buffer to copy data into > size_t count, // IN: Number of bytes to read >- loff_t offset) // IN: Offset at which to read >+ off64_t offset) // IN: Offset at which to read > { > int result; > const char *buffer = buf; >- loff_t curOffset = offset; >+ off64_t curOffset = offset; > size_t nextCount, remainingCount = count; > ssize_t bytesWritten = 0; > uint32 maxIOSize = HgfsMaxIOSize(); >diff --git a/open-vm-tools/vmhgfs-fuse/fsutil.c b/open-vm-tools/vmhgfs-fuse/fsutil.c >index fe4e4e83a..ccc755d75 100644 >--- a/open-vm-tools/vmhgfs-fuse/fsutil.c >+++ b/open-vm-tools/vmhgfs-fuse/fsutil.c >@@ -694,7 +694,7 @@ HgfsStatusConvertToLinux(HgfsStatus hgfsStatus) // IN: Status code to convert > unsigned long > HgfsCalcBlockSize(uint64 tsize) > { >- loff_t used = (tsize + 511) >> 9; >+ off64_t used = (tsize + 511) >> 9; > return (used > ULONG_MAX) ? ULONG_MAX : used; > } > >diff --git a/open-vm-tools/vmhgfs-fuse/fsutil.h b/open-vm-tools/vmhgfs-fuse/fsutil.h >index 34b6d489a..a75cff82f 100644 >--- a/open-vm-tools/vmhgfs-fuse/fsutil.h >+++ b/open-vm-tools/vmhgfs-fuse/fsutil.h >@@ -32,10 +32,6 @@ > #include "hgfsProto.h" > #include <fuse.h> > >-#if defined(__FreeBSD__) || defined(__SOLARIS__) || defined(__APPLE__) >-typedef long long loff_t; >-#endif >- > /* > * Struct used to pass around attributes. > * These aren't just the attributes seen in HgfsAttr[V2]; we add a filename >@@ -73,7 +69,7 @@ ssize_t > HgfsWrite(struct fuse_file_info *fi, > const char *buf, > size_t count, >- loff_t offset); >+ off64_t offset); > > int > HgfsRename(const char* from, const char* to); >@@ -93,7 +89,7 @@ ssize_t > HgfsRead(struct fuse_file_info *fi, > char *buf, > size_t count, >- loff_t offset); >+ off64_t offset); > > int > HgfsSetattr(const char* path,
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 862795
:
796549
|
796687
|
796690
|
796693
|
796696
|
796699
|
796702
| 796705 |
796708
|
796711
|
796714
|
796720