projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9faf8d7
)
Make PerlIO_getpos() to behave like fgetpos() on return.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 13 Nov 2000 13:57:53 +0000
(13:57 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 13 Nov 2000 13:57:53 +0000
(13:57 +0000)
p4raw-id: //depot/perl@7672
perlio.c
patch
|
blob
|
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