projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
9faf8d7
)
Make PerlIO_getpos() to behave like fgetpos() on return.
Jarkko Hietaniemi [Mon, 13 Nov 2000 13:57:53 +0000 (13:57 +0000)]
p4raw-id: //depot/perl@7672
perlio.c
patch
|
blob
|
blame
|
history
diff --git
a/perlio.c
b/perlio.c
index
b828bb2
..
8d54f77
100644
(file)
--- a/
perlio.c
+++ b/
perlio.c
@@
-2314,7
+2314,7
@@
int
PerlIO_getpos(PerlIO *f, Fpos_t *pos)
{
*pos = PerlIO_tell(f);
- return *pos != -1;
+ return *pos == -1 ? -1 : 0;
}
#else
#ifndef PERLIO_IS_STDIO