Changeset 2912
- Timestamp:
- Dec 27, 2006, 1:48:28 AM (19 years ago)
- 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 */ 2 26 3 27 #ifndef _SYS_TIMEB_H 4 28 #define _SYS_TIMEB_H 5 29 6 #if defined (__cplusplus) 7 extern "C" { 8 #endif 30 #include <sys/cdefs.h> 31 #include <sys/_types.h> 9 32 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 */ 36 typedef __time_t time_t; 37 #define _TIME_T_DECLARED 38 #define _TIME_T /* bird: EMX */ 14 39 #endif 15 40 16 41 struct timeb 17 42 { 18 time_ttime;19 unsignedmillitm;20 inttimezone;21 intdstflag;43 time_t time; 44 unsigned millitm; 45 int timezone; 46 int dstflag; 22 47 }; 23 48 24 void ftime (struct timeb *); 49 void ftime(struct timeb *); 50 void _ftime(struct timeb *); 25 51 26 void _ftime (struct timeb *); 52 __END_DECLS 27 53 28 #if defined (__cplusplus)29 }30 54 #endif 31 55 32 #endif /* not _SYS_TIMEB_H */
Note:
See TracChangeset
for help on using the changeset viewer.