OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04b4bca
)
2001-09-24 Ben Elliston <bje@redhat.com>
author
bje
<bje>
Mon, 24 Sep 2001 06:54:48 +0000
(06:54 +0000)
committer
bje
<bje>
Mon, 24 Sep 2001 06:54:48 +0000
(06:54 +0000)
* gloss.cxx (do_sys_fstat): Clear error result on success.
sid/component/gloss/ChangeLog
patch
|
blob
|
history
sid/component/gloss/gloss.cxx
patch
|
blob
|
history
diff --git
a/sid/component/gloss/ChangeLog
b/sid/component/gloss/ChangeLog
index
cfd038f
..
2cbca12
100644
(file)
--- a/
sid/component/gloss/ChangeLog
+++ b/
sid/component/gloss/ChangeLog
@@
-1,3
+1,7
@@
+2001-09-24 Ben Elliston <bje@redhat.com>
+
+ * gloss.cxx (do_sys_fstat): Clear error result on success.
+
2001-09-04 Ben Elliston <bje@redhat.com>
* gloss.h (do_sys_fstat): Declare.
diff --git
a/sid/component/gloss/gloss.cxx
b/sid/component/gloss/gloss.cxx
index
a975ecc
..
7a7852b
100644
(file)
--- a/
sid/component/gloss/gloss.cxx
+++ b/
sid/component/gloss/gloss.cxx
@@
-836,8
+836,11
@@
gloss32::do_sys_fstat()
set_host_error_result (errno);
set_int_result (-1);
}
-
- set_int_result (::fstat (handle, &st));
+ else
+ {
+ set_error_result (0);
+ set_int_result (rc);
+ }
// Populate struct stat in target memory.
set_halfword (ptr, st.st_dev);