Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
darshan
darshan
Commits
ddc4cbb4
Commit
ddc4cbb4
authored
Nov 24, 2018
by
Glenn K. Lockwood
Browse files
bugfix to enable compilation on 32-bit platforms (resolves
#252
)
parent
4c900db7
Changes
2
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-posix.c
View file @
ddc4cbb4
...
...
@@ -752,7 +752,7 @@ off_t DARSHAN_DECL(lseek)(int fd, off_t offset, int whence)
return
(
ret
);
}
off_t
DARSHAN_DECL
(
lseek64
)(
int
fd
,
off_t
offset
,
int
whence
)
off
64
_t
DARSHAN_DECL
(
lseek64
)(
int
fd
,
off
64
_t
offset
,
int
whence
)
{
off_t
ret
;
struct
posix_file_record_ref
*
rec_ref
;
...
...
darshan-runtime/lib/darshan-stdio.c
View file @
ddc4cbb4
...
...
@@ -84,6 +84,10 @@
#include
"darshan.h"
#include
"darshan-dynamic.h"
#ifndef HAVE_OFF64_T
typedef
int64_t
off64_t
;
#endif
DARSHAN_FORWARD_DECL
(
fopen
,
FILE
*
,
(
const
char
*
path
,
const
char
*
mode
));
DARSHAN_FORWARD_DECL
(
fopen64
,
FILE
*
,
(
const
char
*
path
,
const
char
*
mode
));
DARSHAN_FORWARD_DECL
(
fdopen
,
FILE
*
,
(
int
fd
,
const
char
*
mode
));
...
...
@@ -110,7 +114,7 @@ DARSHAN_FORWARD_DECL(vfscanf, int, (FILE *stream, const char *format, va_list ap
DARSHAN_FORWARD_DECL
(
fgets
,
char
*
,
(
char
*
s
,
int
size
,
FILE
*
stream
));
DARSHAN_FORWARD_DECL
(
fseek
,
int
,
(
FILE
*
stream
,
long
offset
,
int
whence
));
DARSHAN_FORWARD_DECL
(
fseeko
,
int
,
(
FILE
*
stream
,
off_t
offset
,
int
whence
));
DARSHAN_FORWARD_DECL
(
fseeko64
,
int
,
(
FILE
*
stream
,
off_t
offset
,
int
whence
));
DARSHAN_FORWARD_DECL
(
fseeko64
,
int
,
(
FILE
*
stream
,
off
64
_t
offset
,
int
whence
));
DARSHAN_FORWARD_DECL
(
fsetpos
,
int
,
(
FILE
*
stream
,
const
fpos_t
*
pos
));
DARSHAN_FORWARD_DECL
(
fsetpos64
,
int
,
(
FILE
*
stream
,
const
fpos64_t
*
pos
));
DARSHAN_FORWARD_DECL
(
rewind
,
void
,
(
FILE
*
stream
));
...
...
@@ -856,7 +860,7 @@ int DARSHAN_DECL(fseeko)(FILE *stream, off_t offset, int whence)
return
(
ret
);
}
int
DARSHAN_DECL
(
fseeko64
)(
FILE
*
stream
,
off_t
offset
,
int
whence
)
int
DARSHAN_DECL
(
fseeko64
)(
FILE
*
stream
,
off
64
_t
offset
,
int
whence
)
{
int
ret
;
struct
stdio_file_record_ref
*
rec_ref
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment