OSDN Git Service

2001-01-08 matthew green <mrg@redhat.com>
authormrg <mrg>
Mon, 8 Jan 2001 04:30:42 +0000 (04:30 +0000)
committermrg <mrg>
Mon, 8 Jan 2001 04:30:42 +0000 (04:30 +0000)
* 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.

sid/component/gloss/ChangeLog
sid/component/gloss/gloss.cxx

index 5c0c77f..d88e998 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2001-01-06  matthew green  <mrg@redhat.com>
 
        * gloss.cxx (gloss32::target_to_host_open_flags): Properly check for
index f06390e..c437c25 100644 (file)
@@ -632,6 +632,7 @@ gloss32::do_sys_gettimeofday()
   set_int_result(rv);
 #else
   set_int_result(-1);
+  set_error_result(newlib::eNoSys);
 #endif
 }
 
@@ -663,6 +664,7 @@ gloss32::do_sys_times()
   set_int_result(rv);
 #else
   set_int_result(-1);
+  set_error_result(newlib::eNoSys);
 #endif
 }