summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/time.h
Commit message (Collapse)AuthorAgeFilesLines
* * libc/include/locale.h (NULL): Fetch definition via stddef.h.Corinna Vinschen2012-11-011-5/+3
| | | | | | | | | * libc/include/stdio.h (NULL): Ditto. * libc/include/stdlib.h (NULL): Ditto. * libc/include/string.h (NULL): Ditto. * libc/include/wchar.h (NULL): Ditto. * libc/include/rpc/types.h (NULL): Ditto. * libc/include/time.h (NULL): Ditto. Include stddef.h earlier.
* * libc/include/time.h [_POSIX_CLOCK_SELECTION] (clock_nanosleep):Yaakov Selkowitz2011-07-201-0/+16
| | | | | | Declare. * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CLOCK_SELECTION): Define.
* * libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename fromYaakov Selkowitz2011-05-161-2/+2
| | | | | | | CLOCK_PROCESS_CPUTIME. (CLOCK_THREAD_CPUTIME_ID): Rename from CLOCK_THREAD_CPUTIME. * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CPUTIME): Define. (_POSIX_THREAD_CPUTIME): Define.
* 2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>Jeff Johnston2008-10-161-0/+10
| | | | | | * libc/include/time.h: Add CLOCK_MONOTONIC. * libc/include/sys/features.h: Define _POSIX_MONOTONIC_CLOCK for RTEMS.
* * include/time.h: Remove more cygwin-specific stuff.Christopher Faylor2005-11-181-18/+0
|
* * include/time.h: Move cygwin declarations to cygwin-specific header.Christopher Faylor2005-11-181-10/+4
| | | | * include/sys/time.h: Rename cygwin include to "sys_time.h".
* 2005-02-25 Eric Blake <ebb9@byu.net>Jeff Johnston2005-02-251-1/+1
| | | | | | | | | | | * libc/include/time.h (__tzrule_struct): Make offset long, since a 16-bit int overflows on a 12-hour offset. * libc/sys/linux/include/time.h: Ditto. * libc/time/mktime.c (mktime): Use new type of __tzrule.offset. * libc/time/mktm_r.c: Ditto. * libc/time/gettzinfo.c: Ditto. * libc/time/strftime.c (strftime): Fix '%x' to deal with negative years. Fix '%z' to use long, not int.
* * libc/include/time.h (_timezone): Change to long also for Cygwin.Corinna Vinschen2005-02-231-5/+1
| | | | (timezone): Drop cast from definition.
* 2005-02-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-02-231-0/+24
| | | | | | | | | | | | | | | | | | * libc/include/time.h [!CYGWIN](_timezone): Change to long. (__tzrule_type, __tzinfo_type): New types. (__gettzinfo): New function. * libc/sys/linux/include/time.h: Ditto. * libc/time/Makefile.am: Add gettzinfo.c. * libc/time/Makefile.in: Regenerated. * libc/time/local.h: Moved __tzrule_type to time.h. * libc/time/mktime.c: Call __gettzinfo to reference __tznorth, __tzyear, and __tzrule array. * libc/time/mktm_r.c: Ditto. * libc/time/strftime.c: Ditto. * libc/time/tzset_r.c: Ditto. Also remove definition of __tzrule which is now in gettzinfo.c. Change _timezone references to not cast to time_t. * libc/time/gettzinfo.c: New file.
* * libc/include/time.h (TIMER_RELTIME): New define.Christopher Faylor2004-02-091-1/+5
|
* 2003-01-29 Jason Tishler <jason@tishler.net>Jeff Johnston2003-01-291-0/+10
| | | | * libc/include/time.h: Declare nanosleep() under Cygwin.
* 2002-08-26 Wu Yongwei <adah@netstd.com>Jeff Johnston2002-08-261-1/+1
| | | | * time.h (timezonevar): Change "#if" to "#ifdef".
* 2002-06-27 Benjamin Kosnik <bkoz@redhat.com>Jeff Johnston2002-06-271-4/+24
| | | | | | | | | | | | | | | * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C. * libc/include/time.h: Same. * libc/include/string.h: Same. * libc/include/stdlib.h: Same. * libc/include/signal.h: Same. * libc/include/setjmp.h: Same. * libc/include/math.h: Same. * libc/include/locale.h: Same. * libc/include/ctype.h: Same. * libc/include/machine/setjmp.h: Same. * libc/include/_ansi.h (_BEGIN_STD_C): Add. (_END_STD_C): Add.
* 2002-06-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-06-211-0/+23
| | | | | | | | | | | | | | | | | | * libc/include/stdio.h (__getline, __getdelim): New prototypes. * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto. [HAVE_GETDATE](getdate_err): New error code. * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/getdelim.c: New file. * libc/stdio/getline.c: Ditto. * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c and ntp_gettime.c. Also add AM_CFLAGS to point to libc/stdio. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/getdate.c: New file. * libc/sys/linux/getdate_err.c: Ditto. * libc/sys/linux/ntp_gettime.c: Ditto. * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions. * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
* 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-171-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/time.h (tzset, _tzset_r): Added prototypes. (strptime): Moved prototype to be within !__STRICT_ANSI__. (_tzname, _daylight, _timezone): No long __CYGWIN__ only. (tzname): Defined for all platforms. (daylight, timezone): Defined only for CYGWIN. * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after environment set up. * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ environment variable is set. * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and tzset_r.c. * libc/time/Makefile.in: Regenerated. * libc/time/gmtime.c (gmtime): Changed to call gmtime_r. * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r. * libc/time/lcltime_r.c (lcltime_r): Ditto. * libc/time/local.h: New local header file. * libc/time/mktime.c (mktime): Add timezone support. * libc/time/mktm_r.c: New file which is the common engine for gmtime_r and lcltime_r. This code has timezone support. * libc/time/strftime.c (strftime): Add %Z timezone support. * libc/time/tzlock.c: New file containing timezone lock stubs. * libc/time/tzset.c: New file containing tzset() routine. * libc/time/tzset_r.c: New file containing _tzset_r and internal routine for calculating timezone changes for specified year.
* 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>Jeff Johnston2002-04-091-1/+1
| | | | | | | * libc/include/time.h: Fix strptime declaration. * libc/time/Makefile.am: Add strptime.c. * libc/time/Makefile.in: Regenerated. * libc/time/strptime.c: New file.
* * libc/include/time.h: Add prototype for strptime for Cygwin.Christopher Faylor2002-01-181-0/+1
|
* 2001-04-19 Robert Collins <rbtcollins@hotmail.com>Jeff Johnston2001-04-191-1/+13
| | | | | | | * include/time.h[__CYGWIN__]: Define tzname to _tzname if not defined. Define daylight to _daylight if it is not defined Prepare a variable export of timezone based on timezonevariable. (Cannot be used with the timezone() function.)
* 2000-12-11 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2000-12-121-12/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Merge RTEMS specific .h files into main libc/include. * libc/sys/rtems/include/signal.h: Removed. * libc/sys/rtems/include/time.h: Removed. * libc/sys/rtems/sys/features.h: Removed. * libc/sys/rtems/sys/sched.h: Removed. * libc/sys/rtems/sys/siginfo.h: Removed. * libc/sys/rtems/sys/signal.h: Removed. * libc/sys/rtems/sys/time.h: Removed. * libc/sys/rtems/sys/times.h: Removed. definitions for time_t and clock_t since these are no longer in time.h. * libc/include/pthread.h: New file. * libc/include/sys/sched.h: New file. * libc/include/sys/features.h: New file. * libc/include/time.h: Removed duplicate definition of clock_t and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality. * libc/sys/linux/sys/types.h: Changed to include * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_. * libc/include/sys/signal.h: Add more complete set of POSIX signal functionality including real-time and threaded signals. * libc/include/sys/types.h: Add clock_t, time_t, struct timespec, and struct itimerspec. Centralizing these makes things cleaner. RTEMS uses 64-bit dev_t. Added numerous primitive definitions for pthreads including macros, pthread_attr_t, pthread_mutexattr_t, pthread_condattr_t, pthread_key_t, pthread_once_t, and pthread_t. * libc/include/sys/unistd.h: Added getlogin_r() prototype. If RTEMS follow POSIX on read(), write() and sbrk() prototype. Feature flags removed and moved to new file <sys/features.h>. Full set of POSIX sysconf() constants
* * libc/include/sys/config.h: define __IMPORT appropriatelyDJ Delorie2000-08-011-3/+3
| | | | | | | | | | * libc/include/ctype.h (_ctype_): use __IMPORT * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto * libc/include/math.h (__mb_cur_max): ditto * libc/include/time.h (_timezone, _daylight, _tzname): ditto * libc/include/unctrl.h (__unctrl, __unctrllen): ditto * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto * libc/include/unistd.h (environ): ditto
* * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__Christopher Faylor2000-05-301-2/+2
| | | | | | | | | | | | | | | * libc/include/malloc.h: Ditto. * libc/include/process.h: Ditto. * libc/include/stdio.h: Ditto. * libc/include/stdlib.h: Ditto. * libc/include/time.h: Ditto. * libc/include/machine/setjmp.h: Ditto. * libc/include/sys/errno.h: Ditto. * libc/include/sys/signal.h: Ditto. * libc/include/sys/stat.h: Ditto. * libc/include/sys/time.h: Ditto. * libc/include/sys/unistd.h: Ditto. * libc/include/string.h: Ditto. strsignal should return a const char *.
* import newlib-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+90