Changeset 88d594a in rtems for c/src/lib/libc
- Timestamp:
- 05/24/95 21:39:42 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 5b9d6ddf
- Parents:
- bf61e45c
- Location:
- c/src/lib/libc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libc/__brk.c
rbf61e45c r88d594a 1 #if !defined(RTEMS_UNIX) 2 1 3 /* 2 4 * RTEMS "Broken" __brk/__sbrk Implementation … … 13 15 * notice must appear in all copies of this file and its derivatives. 14 16 * 15 * $Id$17 * __brk.c,v 1.2 1995/05/09 20:24:28 joel Exp 16 18 */ 17 19 … … 39 41 return -1; 40 42 } 43 44 #endif -
c/src/lib/libc/__gettod.c
rbf61e45c r88d594a 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * __gettod.c,v 1.2 1995/05/09 20:24:31 joel Exp 15 15 */ 16 16 … … 20 20 #include <sys/reent.h> 21 21 #endif 22 22 23 #include <time.h> 23 24 #include <sys/time.h> 25 24 26 #include <errno.h> 25 27 #include <assert.h> … … 30 32 31 33 int gettimeofday( 32 33 34 struct timeval *tp, 35 struct timezone *tzp 34 36 ) 35 37 { … … 37 39 rtems_clock_time_value time; 38 40 39 if ( !tp || !tzp) {41 if ( !tp ) { 40 42 errno = EFAULT; 41 43 return -1; … … 52 54 tp->tv_usec = time.microseconds; 53 55 54 #if 055 tzp->minuteswest = timezone / 60; /* from seconds to minutes */56 tzp->dsttime = daylight;57 #endif58 59 56 /* 60 57 * newlib does not have timezone and daylight savings time … … 62 59 */ 63 60 64 tzp->tz_minuteswest = 0; /* at UTC */ 65 tzp->tz_dsttime = 0; /* no daylight savings */ 61 if ( tzp ) { 62 tzp->tz_minuteswest = 0; /* at UTC */ 63 tzp->tz_dsttime = 0; /* no daylight savings */ 64 #if 0 65 tzp->minuteswest = timezone / 60; /* from seconds to minutes */ 66 tzp->dsttime = daylight; 67 #endif 68 } 66 69 return 0; 67 70 } 68 71 72 #if defined(RTEMS_NEWLIB) 73 74 #if 0 69 75 /* 70 * "Reentrant" version s of the above routines implemented above.76 * "Reentrant" version 71 77 */ 72 78 73 #if 074 79 int _gettimeofday_r( 75 76 77 80 struct _reent *ignored_reentrancy_stuff, 81 struct timeval *tp, 82 struct timezone *tzp 78 83 ) 79 84 { … … 82 87 #endif 83 88 89 /* 90 * "System call" version 91 */ 92 93 int _gettimeofday( 94 struct timeval *tp, 95 struct timezone *tzp 96 ) 97 { 98 return gettimeofday( tp, tzp ); 99 } 100 101 #endif /* defined(RTEMS_NEWLIB) */ 102 84 103 #endif -
c/src/lib/libc/newlibc.c
rbf61e45c r88d594a 1 1 /* 2 * @(#)newlibc.c 1. 8 - 95/04/252 * @(#)newlibc.c 1.9 - 95/05/16 3 3 * 4 4 */ … … 7 7 8 8 /* 9 * File: $RCSfile$9 * File: newlibc.c,v 10 10 * Project: PixelFlow 11 11 * Created: 94/12/7 12 * Revision: $Revision$13 * Last Mod: $Date$12 * Revision: 1.2 13 * Last Mod: 1995/05/09 20:24:37 14 14 * 15 15 * COPYRIGHT (c) 1994 by Division Incorporated … … 36 36 * NOTE: 37 37 * 38 * $Id$38 * newlibc.c,v 1.2 1995/05/09 20:24:37 joel Exp 39 39 * 40 40 */
Note: See TracChangeset
for help on using the changeset viewer.