Changeset 2912


Ignore:
Timestamp:
Dec 27, 2006, 1:48:28 AM (19 years ago)
Author:
bird
Message:

Renovated the header too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/include/sys/timeb.h

    r1339 r2912  
    1 /* sys/timeb.h (emx+gcc) */
     1/* $Id: $ */
     2/** @file
     3 *
     4 * kLIBC - sys/timeb.h.
     5 *
     6 * Copyright (c) 2006 knut st. osmundsen <bird-srcspam@anduin.net>
     7 *
     8 *
     9 * This file is part of kLIBC.
     10 *
     11 * kLIBC is free software; you can redistribute it and/or modify
     12 * it under the terms of the GNU Lesser General Public License as published
     13 * by the Free Software Foundation; either version 2 of the License, or
     14 * (at your option) any later version.
     15 *
     16 * kLIBC is distributed in the hope that it will be useful,
     17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19 * GNU Lesser General Public License for more details.
     20 *
     21 * You should have received a copy of the GNU Lesser General Public License
     22 * along with kLIBC; if not, write to the Free Software
     23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     24 *
     25 */
    226
    327#ifndef _SYS_TIMEB_H
    428#define _SYS_TIMEB_H
    529
    6 #if defined (__cplusplus)
    7 extern "C" {
    8 #endif
     30#include <sys/cdefs.h>
     31#include <sys/_types.h>
    932
    10 /** @todo fixme, I'm signed now! */
    11 #if !defined (_TIME_T)
    12 #define _TIME_T
    13 typedef unsigned long time_t;
     33__BEGIN_DECLS
     34
     35#if !defined(_TIME_T_DECLARED) && !defined(_TIME_T) /* bird: EMX */
     36typedef __time_t        time_t;
     37#define _TIME_T_DECLARED
     38#define _TIME_T                         /* bird: EMX */
    1439#endif
    1540
    1641struct timeb
    1742{
    18   time_t   time;
    19   unsigned millitm;
    20   int      timezone;
    21   int      dstflag;
     43    time_t      time;
     44    unsigned    millitm;
     45    int         timezone;
     46    int         dstflag;
    2247};
    2348
    24 void ftime (struct timeb *);
     49void ftime(struct timeb *);
     50void _ftime(struct timeb *);
    2551
    26 void _ftime (struct timeb *);
     52__END_DECLS
    2753
    28 #if defined (__cplusplus)
    29 }
    3054#endif
    3155
    32 #endif /* not _SYS_TIMEB_H */
Note: See TracChangeset for help on using the changeset viewer.