Ignore:
Timestamp:
Jul 7, 2005, 5:27:06 AM (20 years ago)
Author:
bird
Message:

Changed utimes() to allow NULL pointer parameter. Please note that BSD will crash in if you try it there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/emx/include/sys/times.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2226 r2227  
    11/* 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 */
    26
    37#ifndef _SYS_TIMES_H
    48#define _SYS_TIMES_H
    59
    6 #if defined (__cplusplus)
    7 extern "C" {
    8 #endif
     10#include <sys/cdefs.h>
     11#include <sys/_types.h>
    912
    10 #if !defined (_CLOCK_T)
     13__BEGIN_DECLS
     14#if !defined (_CLOCK_T) && !defined(_CLOCK_T_DECLARED)
     15typedef __clock_t clock_t;
     16#define _CLOCK_T_DECLARED
    1117#define _CLOCK_T
    12 typedef long clock_t;
    1318#endif
    1419
    1520struct tms
    1621{
    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;
    2126};
    2227
    23 long times (struct tms *);
    24 
    25 #if defined (__cplusplus)
    26 }
    27 #endif
     28clock_t times(struct tms *);
     29__END_DECLS
    2830
    2931#endif /* not _SYS_TIMES_H */
Note: See TracChangeset for help on using the changeset viewer.