Changeset 2227
- Timestamp:
 - Jul 7, 2005, 5:27:06 AM (20 years ago)
 - Location:
 - trunk/src/emx
 - Files:
 - 
      
- 3 edited
 
- 
          
  ChangeLog.LIBC (modified) (1 diff, 1 prop)
 - 
          
  include/sys/times.h (modified) (1 diff, 1 prop)
 - 
          
  src/lib/time/times.c (modified) (1 diff, 1 prop)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/emx/ChangeLog.LIBC
- 
Property       cvs2svn:cvs-rev
 changed from       
1.99to1.100 
r2226 r2227 1 1 /* $Id$ */ 2 3 2005-07-06: knut st. osmundsen <bird-gccos2-spam@anduin.net> 4 - libc: 5 o Changed utimes() to allow NULL pointer parameter. 6 Please note that BSD will crash in if you try it there. 2 7 3 8 2005-07-05: knut st. osmundsen <bird-gccos2-spam@anduin.net>  - 
Property       cvs2svn:cvs-rev
 changed from       
 - 
      
trunk/src/emx/include/sys/times.h
- 
Property       cvs2svn:cvs-rev
 changed from       
1.1to1.2 
r2226 r2227 1 1 /* sys/times.h (emx+gcc) */ 2 /** @file 3 * EMX 4 * @changed bird: corrected prototype, added BSD type blocker and use BSD style C++ wrappers. 5 */ 2 6 3 7 #ifndef _SYS_TIMES_H 4 8 #define _SYS_TIMES_H 5 9 6 #if defined (__cplusplus) 7 extern "C" { 8 #endif 10 #include <sys/cdefs.h> 11 #include <sys/_types.h> 9 12 10 #if !defined (_CLOCK_T) 13 __BEGIN_DECLS 14 #if !defined (_CLOCK_T) && !defined(_CLOCK_T_DECLARED) 15 typedef __clock_t clock_t; 16 #define _CLOCK_T_DECLARED 11 17 #define _CLOCK_T 12 typedef long clock_t;13 18 #endif 14 19 15 20 struct tms 16 21 { 17 clock_t tms_utime;18 clock_t tms_stime;19 clock_t tms_cutime;20 clock_t tms_cstime;22 clock_t tms_utime; 23 clock_t tms_stime; 24 clock_t tms_cutime; 25 clock_t tms_cstime; 21 26 }; 22 27 23 long times (struct tms *); 24 25 #if defined (__cplusplus) 26 } 27 #endif 28 clock_t times(struct tms *); 29 __END_DECLS 28 30 29 31 #endif /* not _SYS_TIMES_H */  - 
Property       cvs2svn:cvs-rev
 changed from       
 - 
      
trunk/src/emx/src/lib/time/times.c
- 
Property       cvs2svn:cvs-rev
 changed from       
1.4to1.5 
r2226 r2227 8 8 /* Note: return value overflows */ 9 9 10 long_STD(times) (struct tms *buffer)10 clock_t _STD(times) (struct tms *buffer) 11 11 { 12 12 struct timeval tv; 13 14 buffer->tms_utime = clock (); /* clock () * HZ / CLOCKS_PER_SEC */ 15 buffer->tms_stime = 0; 16 buffer->tms_cutime = 0; 17 buffer->tms_cstime = 0; 13 if (buffer) 14 { 15 buffer->tms_utime = clock (); /* clock () * HZ / CLOCKS_PER_SEC */ 16 buffer->tms_stime = 0; 17 buffer->tms_cutime = 0; 18 buffer->tms_cstime = 0; 19 } 18 20 if (gettimeofday (&tv, NULL) != 0) 19 21 return -1;  - 
Property       cvs2svn:cvs-rev
 changed from       
 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  