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
Shane Snyder
darshan
Commits
5c5e4452
Commit
5c5e4452
authored
Jul 06, 2016
by
Shane Snyder
Browse files
fix prototypes for a few stdio funcs
parent
5c5f5334
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-stdio.c
View file @
5c5e4452
...
...
@@ -121,7 +121,7 @@ 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
(
fsetpos
,
int
,
(
FILE
*
stream
,
const
fpos_t
*
pos
));
DARSHAN_FORWARD_DECL
(
fsetpos64
,
int
,
(
FILE
*
stream
,
const
fpos_t
*
pos
));
DARSHAN_FORWARD_DECL
(
fsetpos64
,
int
,
(
FILE
*
stream
,
const
fpos
64
_t
*
pos
));
DARSHAN_FORWARD_DECL
(
rewind
,
void
,
(
FILE
*
stream
));
/* structure to track stdio stats at runtime */
...
...
@@ -538,7 +538,7 @@ size_t DARSHAN_DECL(fread)(void *ptr, size_t size, size_t nmemb, FILE *stream)
return
(
ret
);
}
size_
t
DARSHAN_DECL
(
fgetc
)(
FILE
*
stream
)
in
t
DARSHAN_DECL
(
fgetc
)(
FILE
*
stream
)
{
int
ret
;
double
tm1
,
tm2
;
...
...
@@ -558,7 +558,7 @@ size_t DARSHAN_DECL(fgetc)(FILE *stream)
}
/* NOTE: stdio.h typically implements getc() as a macro pointing to _IO_getc */
size_
t
DARSHAN_DECL
(
_IO_getc
)(
FILE
*
stream
)
in
t
DARSHAN_DECL
(
_IO_getc
)(
FILE
*
stream
)
{
int
ret
;
double
tm1
,
tm2
;
...
...
@@ -578,7 +578,7 @@ size_t DARSHAN_DECL(_IO_getc)(FILE *stream)
}
/* NOTE: stdio.h typically implements putc() as a macro pointing to _IO_putc */
size_
t
DARSHAN_DECL
(
_IO_putc
)(
int
c
,
FILE
*
stream
)
in
t
DARSHAN_DECL
(
_IO_putc
)(
int
c
,
FILE
*
stream
)
{
int
ret
;
double
tm1
,
tm2
;
...
...
@@ -596,7 +596,8 @@ size_t DARSHAN_DECL(_IO_putc)(int c, FILE *stream)
return
(
ret
);
}
size_t
DARSHAN_DECL
(
getw
)(
FILE
*
stream
)
int
DARSHAN_DECL
(
getw
)(
FILE
*
stream
)
{
int
ret
;
double
tm1
,
tm2
;
...
...
@@ -874,7 +875,7 @@ int DARSHAN_DECL(fsetpos)(FILE *stream, const fpos_t *pos)
return
(
ret
);
}
int
DARSHAN_DECL
(
fsetpos64
)(
FILE
*
stream
,
const
fpos_t
*
pos
)
int
DARSHAN_DECL
(
fsetpos64
)(
FILE
*
stream
,
const
fpos
64
_t
*
pos
)
{
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