RFA: gloss component extensions
matthew green
mrg@cygnus.com
Sun Jan 7 20:30:00 GMT 2001
In the case of missing gettimeofday() and times() functions, the newlib stub
functions should set ENOSYS. Do they use the -1 to detect this?
ah, i should probably also add a call:
set_error_result(newlib::eNoSys);
then?
Yes.
OK, i have commited the following. thanks.
2001-01-08 matthew green <mrg@redhat.com>
* gloss.cxx (do_sys_times): Set error value as well as return value
if times() does not exist on the host.
(do_sys_gettimeofday): Set error value as well as return value
if gettimeofday() does not exist on the host.
Index: gloss.cxx
===================================================================
RCS file: /cvs/src/src/sid/component/gloss/gloss.cxx,v
retrieving revision 1.2
diff -p -r1.2 gloss.cxx
*** gloss.cxx 2001/01/07 04:51:31 1.2
--- gloss.cxx 2001/01/08 04:28:21
*************** gloss32::do_sys_gettimeofday()
*** 632,637 ****
--- 632,638 ----
set_int_result(rv);
#else
set_int_result(-1);
+ set_error_result(newlib::eNoSys);
#endif
}
*************** gloss32::do_sys_times()
*** 663,668 ****
--- 664,670 ----
set_int_result(rv);
#else
set_int_result(-1);
+ set_error_result(newlib::eNoSys);
#endif
}
More information about the Sid
mailing list