This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFA: gloss component extensions


mrg wrote:

   time() syscall (it did not fill in it's argument, just returned the
   time), and fix the open() flags to match what newlib uses.

Before you commit, I have some questions:

   2000-12-30  matthew green  <mrg@redhat.com>

   	* gloss.cxx (do_sys_time): New function.
   	(do_sys_times): Likewise.
   	(do_sys_gettimeofday): Likewise.
   	(syscall_trap): Call do_sys_time().  Call new do_sys_times() and
   	do_sys_gettimeofday() for times() and .

`And ..' .. what?

   + #else
   +   set_int_result(-1);
   + #endif

In the case of missing gettimeofday() and times() functions, the newlib stub
functions should set ENOSYS.  Do they use the -1 to detect this?

Other than that, the only thing missing is your test cases to prove that
these work.

Ben


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]