projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5d6842
)
(_IO_new_file_attach): Use __set_errno.
author
drepper
<drepper>
Sat, 26 Jul 2008 23:44:15 +0000
(23:44 +0000)
committer
drepper
<drepper>
Sat, 26 Jul 2008 23:44:15 +0000
(23:44 +0000)
libio/fileops.c
patch
|
blob
|
history
diff --git
a/libio/fileops.c
b/libio/fileops.c
index
f5b2569
..
cf47c91
100644
(file)
--- a/
libio/fileops.c
+++ b/
libio/fileops.c
@@
-432,7
+432,7
@@
_IO_new_file_attach (fp, fd)
if (_IO_SEEKOFF (fp, (_IO_off64_t)0, _IO_seek_cur, _IOS_INPUT|_IOS_OUTPUT)
== _IO_pos_BAD && errno != ESPIPE)
return NULL;
-
errno = save_errno
;
+
__set_errno (save_errno)
;
return fp;
}
INTDEF2(_IO_new_file_attach, _IO_file_attach)