source:
rtems/contrib/crossrpms/patches/newlib-1.15.0-rtems4.8-20071221.diff
@
63d7971
Last change on this file since 63d7971 was 2bf27202, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/22/07 at 00:29:06 | |
---|---|
|
|
File size: 54.7 KB |
-
newlib/libc/include/inttypes.h
diff -uNr newlib-1.15.0.orig/newlib/libc/include/inttypes.h newlib-1.15.0/newlib/libc/include/inttypes.h
old new 242 242 #define SCNxMAX __SCNMAX(x) 243 243 244 244 /* ptr types */ 245 #if __have_longlong64 246 #define __PRIPTR(x) __STRINGIFY(ll##x) 247 #define __SCNPTR(x) __STRINGIFY(ll##x) 245 #if __ptrint_t_long_defined 246 #define __PRIPTR(x) __STRINGIFY(l##x) 247 #define __SCNPTR(x) __STRINGIFY(l##x) 248 #elif __ptrint_t_int_defined 249 #define __PRIPTR(x) __STRINGIFY(x) 250 #define __SCNPTR(x) __STRINGIFY(x) 248 251 #elif __have_long64 249 252 #define __PRIPTR(x) __STRINGIFY(l##x) 250 253 #define __SCNPTR(x) __STRINGIFY(l##x) -
newlib/libc/include/machine/setjmp.h
diff -uNr newlib-1.15.0.orig/newlib/libc/include/machine/setjmp.h newlib-1.15.0/newlib/libc/include/machine/setjmp.h
old new 27 27 28 28 /* necv70 was 9 as well. */ 29 29 30 #if def __mc68000__30 #if defined(__m68k__) || defined(__mc68000__) 31 31 /* 32 32 * onsstack,sigmask,sp,pc,psl,d2-d7,a2-a6, 33 33 * fp2-fp7 for 68881. -
newlib/libc/include/stdint.h
diff -uNr newlib-1.15.0.orig/newlib/libc/include/stdint.h newlib-1.15.0/newlib/libc/include/stdint.h
old new 393 393 #define UINTMAX_C(x) x##UL 394 394 #endif 395 395 396 #ifdef __rtems__ 397 #include <machine/stdint.h> 398 #endif 396 399 397 400 #ifdef __cplusplus 398 401 } -
newlib/libc/include/sys/errno.h
diff -uNr newlib-1.15.0.orig/newlib/libc/include/sys/errno.h newlib-1.15.0/newlib/libc/include/sys/errno.h
old new 148 148 #define ECASECLASH 137 /* Filename exists with different case */ 149 149 #define EILSEQ 138 150 150 #define EOVERFLOW 139 /* Value too large for defined data type */ 151 #define ECANCELED 140 /* Operation canceled. */ 151 152 152 153 /* From cygwin32. */ 153 154 #define EWOULDBLOCK EAGAIN /* Operation would block */ -
newlib/libc/include/sys/features.h
diff -uNr newlib-1.15.0.orig/newlib/libc/include/sys/features.h newlib-1.15.0/newlib/libc/include/sys/features.h
old new 38 38 #define _POSIX_MEMLOCK_RANGE 1 39 39 #define _POSIX_MEMORY_PROTECTION 1 40 40 #define _POSIX_MESSAGE_PASSING 1 41 #define _POSIX_MONOTONIC_CLOCK 200112L 41 42 #define _POSIX_PRIORITIZED_IO 1 42 43 #define _POSIX_PRIORITY_SCHEDULING 1 43 44 #define _POSIX_REALTIME_SIGNALS 1 … … 81 82 #endif 82 83 83 84 #ifdef __CYGWIN__ 84 # define _POSIX_JOB_CONTROL 1 85 # define _POSIX_SAVED_IDS 0 86 # define _POSIX_VERSION 199009L 87 # define _POSIX_THREADS 1 88 # define _POSIX_THREAD_PROCESS_SHARED 1 89 # define _POSIX_THREAD_SAFE_FUNCTIONS 1 90 # define _POSIX_THREAD_PRIORITY_SCHEDULING 1 91 # define _POSIX_THREAD_ATTR_STACKSIZE 1 92 # define _POSIX_SEMAPHORES 1 93 # define _POSIX_TIMERS 1 94 # define _POSIX_MEMLOCK_RANGE 1 85 86 #if !defined(__STRICT_ANSI__) || defined(__cplusplus) || __STDC_VERSION__ >= 199901L 87 #define _POSIX_VERSION 200112L 88 #define _POSIX2_VERSION 200112L 89 #define _XOPEN_VERSION 600 90 91 #define _POSIX_ADVISORY_INFO 200112L 92 /* #define _POSIX_ASYNCHRONOUS_IO -1 */ 93 /* #define _POSIX_BARRIERS -1 */ 94 #define _POSIX_CHOWN_RESTRICTED 1 95 /* #define _POSIX_CLOCK_SELECTION -1 */ 96 /* #define _POSIX_CPUTIME -1 */ 97 #define _POSIX_FSYNC 200112L 98 #define _POSIX_IPV6 200112L 99 #define _POSIX_JOB_CONTROL 1 100 #define _POSIX_MAPPED_FILES 200112L 101 /* #define _POSIX_MEMLOCK -1 */ 102 #define _POSIX_MEMLOCK_RANGE 200112L 103 #define _POSIX_MEMORY_PROTECTION 200112L 104 #define _POSIX_MESSAGE_PASSING 200112L 105 /* #define _POSIX_MONOTONIC_CLOCK -1 */ 106 #define _POSIX_NO_TRUNC 1 107 /* #define _POSIX_PRIORITIZED_IO -1 */ 108 #define _POSIX_PRIORITY_SCHEDULING 200112L 109 #define _POSIX_RAW_SOCKETS 200112L 110 #define _POSIX_READER_WRITER_LOCKS 200112L 111 #define _POSIX_REALTIME_SIGNALS 200112L 112 #define _POSIX_REGEXP 1 113 #define _POSIX_SAVED_IDS 1 114 #define _POSIX_SEMAPHORES 200112L 115 #define _POSIX_SHARED_MEMORY_OBJECTS 200112L 116 #define _POSIX_SHELL 1 117 /* #define _POSIX_SPAWN -1 */ 118 /* #define _POSIX_SPIN_LOCKS -1 */ 119 /* #define _POSIX_SPORADIC_SERVER -1 */ 120 #define _POSIX_SYNCHRONIZED_IO 200112L 121 /* #define _POSIX_THREAD_ATTR_STACKADDR -1 */ 122 #define _POSIX_THREAD_ATTR_STACKSIZE 200112L 123 /* #define _POSIX_THREAD_CPUTIME -1 */ 124 /* #define _POSIX_THREAD_PRIO_INHERIT -1 */ 125 /* #define _POSIX_THREAD_PRIO_PROTECT -1 */ 126 #define _POSIX_THREAD_PRIORITY_SCHEDULING 200112L 127 #define _POSIX_THREAD_PROCESS_SHARED 200112L 128 #define _POSIX_THREAD_SAFE_FUNCTIONS 200112L 129 /* #define _POSIX_THREAD_SPORADIC_SERVER -1 */ 130 #define _POSIX_THREADS 200112L 131 /* #define _POSIX_TIMEOUTS -1 */ 132 #define _POSIX_TIMERS 1 133 /* #define _POSIX_TRACE -1 */ 134 /* #define _POSIX_TRACE_EVENT_FILTER -1 */ 135 /* #define _POSIX_TRACE_INHERIT -1 */ 136 /* #define _POSIX_TRACE_LOG -1 */ 137 /* #define _POSIX_TYPED_MEMORY_OBJECTS -1 */ 138 #define _POSIX_VDISABLE '\0' 139 #define _POSIX2_C_BIND 200112L 140 #define _POSIX2_C_DEV 200112L 141 #define _POSIX2_CHAR_TERM 200112L 142 /* #define _POSIX2_FORT_DEV -1 */ 143 /* #define _POSIX2_FORT_RUN -1 */ 144 /* #define _POSIX2_LOCALEDEF -1 */ 145 /* #define _POSIX2_PBS -1 */ 146 /* #define _POSIX2_PBS_ACCOUNTING -1 */ 147 /* #define _POSIX2_PBS_CHECKPOINT -1 */ 148 /* #define _POSIX2_PBS_LOCATE -1 */ 149 /* #define _POSIX2_PBS_MESSAGE -1 */ 150 /* #define _POSIX2_PBS_TRACK -1 */ 151 #define _POSIX2_SW_DEV 200112L 152 #define _POSIX2_UPE 200112L 153 /* #define _POSIX_V6_ILP32_OFF32 -1 */ 154 #define _XBS5_ILP32_OFF32 _POSIX_V6_ILP32_OFF32 155 #define _POSIX_V6_ILP32_OFFBIG 1 156 #define _XBS5_ILP32_OFFBIG _POSIX_V6_ILP32_OFFBIG 157 /* #define _POSIX_V6_LP64_OFF64 -1 */ 158 #define _XBS5_LP64_OFF64 _POSIX_V6_LP64_OFF64 159 /* #define _POSIX_V6_LPBIG_OFFBIG -1 */ 160 #define _XBS5_LPBIG_OFFBIG _POSIX_V6_LPBIG_OFFBIG 161 #define _XOPEN_CRYPT 1 162 #define _XOPEN_ENH_I18N 1 163 /* #define _XOPEN_LEGACY -1 */ 164 /* #define _XOPEN_REALTIME -1 */ 165 /* #define _XOPEN_REALTIME_THREADS -1 */ 166 #define _XOPEN_SHM 1 167 /* #define _XOPEN_STREAMS -1 */ 168 /* #define _XOPEN_UNIX -1 */ 169 170 #endif /* !__STRICT_ANSI__ || __cplusplus || __STDC_VERSION__ >= 199901L */ 171 #endif /* __CYGWIN__ */ 172 173 #ifdef __SPU__ 174 /* Not much for now! */ 175 #define _POSIX_TIMERS 1 95 176 #endif 96 177 97 178 #ifdef __cplusplus -
newlib/libc/include/sys/time.h
diff -uNr newlib-1.15.0.orig/newlib/libc/include/sys/time.h newlib-1.15.0/newlib/libc/include/sys/time.h
old new 70 70 } while (0) 71 71 #endif /* defined (__rtems__) || defined (__CYGWIN__) */ 72 72 73 int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z));73 int _EXFUN(gettimeofday, (struct timeval *__p, void *__tz)); 74 74 int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *)); 75 75 int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp)); 76 76 int _EXFUN(getitimer, (int __which, struct itimerval *__value)); -
newlib/libc/include/sys/_types.h
diff -uNr newlib-1.15.0.orig/newlib/libc/include/sys/_types.h newlib-1.15.0/newlib/libc/include/sys/_types.h
old new 39 39 /* Iconv descriptor type */ 40 40 typedef void *_iconv_t; 41 41 42 typedef long * __intptr_t; 43 typedef unsigned long* __uintptr_t; 44 42 45 #endif /* _SYS__TYPES_H */ -
newlib/libc/include/sys/unistd.h
diff -uNr newlib-1.15.0.orig/newlib/libc/include/sys/unistd.h newlib-1.15.0/newlib/libc/include/sys/unistd.h
old new 27 27 int _EXFUN(chroot, (const char *__path )); 28 28 #endif 29 29 int _EXFUN(close, (int __fildes )); 30 #if defined(__CYGWIN__) 31 size_t _EXFUN(confstr, (int __name, char *__buf, size_t __len)); 32 #endif 30 33 char _EXFUN(*ctermid, (char *__s )); 31 34 char _EXFUN(*cuserid, (char *__s )); 32 35 #if defined(__CYGWIN__) … … 151 154 int _EXFUN(ttyname_r, (int, char *, size_t)); 152 155 #endif 153 156 int _EXFUN(unlink, (const char *__path )); 157 int _EXFUN(usleep, (useconds_t __useconds)); 154 158 int _EXFUN(vhangup, (void )); 155 159 _READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte )); 156 160 … … 196 200 int _EXFUN(truncate, (const char *, off_t __length)); 197 201 #endif 198 202 #endif 203 199 204 #if defined(__CYGWIN__) || defined(__rtems__) 200 205 int _EXFUN(getdtablesize, (void)); 201 206 int _EXFUN(setdtablesize, (int)); 202 207 useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval)); 203 unsigned _EXFUN(usleep, (unsigned int __useconds));204 208 #if !(defined (_WINSOCK_H) || defined (__USE_W32_SOCKETS)) 205 209 /* winsock[2].h defines as __stdcall, and with int as 2nd arg */ 206 210 int _EXFUN(gethostname, (char *__name, size_t __len)); 207 211 #endif 208 212 char * _EXFUN(mktemp, (char *)); 209 #if defined(__CYGWIN__) 213 #if defined(__CYGWIN__) || defined(__rtems__) 210 214 void _EXFUN(sync, (void)); 211 #else /* defined(__rtems__) */212 int _EXFUN(sync, (void));213 215 #endif 214 216 #endif 215 int _EXFUN(readlink, (const char *__path, char *__buf, int __buflen));217 ssize_t _EXFUN(readlink, (const char *__path, char *__buf, size_t __buflen)); 216 218 int _EXFUN(symlink, (const char *__name1, const char *__name2)); 217 219 218 220 #define F_OK 0 … … 231 233 #define STDERR_FILENO 2 /* standard error file descriptor */ 232 234 233 235 /* 234 * 4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 96 235 * 236 * NOTE: Table 4-2, Configurable System Variables, p. 96 237 */ 238 239 #define _SC_ARG_MAX 0 240 #define _SC_CHILD_MAX 1 241 #define _SC_CLK_TCK 2 242 #define _SC_NGROUPS_MAX 3 243 #define _SC_OPEN_MAX 4 244 /* no _SC_STREAM_MAX */ 245 #define _SC_JOB_CONTROL 5 246 #define _SC_SAVED_IDS 6 247 #define _SC_VERSION 7 248 #define _SC_PAGESIZE 8 249 /* CYGWIN-specific values .. do not touch */ 250 #define _SC_NPROCESSORS_CONF 9 251 #define _SC_NPROCESSORS_ONLN 10 252 #define _SC_PHYS_PAGES 11 253 #define _SC_AVPHYS_PAGES 12 254 /* end of CYGWIN-specific values */ 255 #define _SC_MQ_OPEN_MAX 13 256 #define _SC_MQ_PRIO_MAX 14 257 #define _SC_RTSIG_MAX 15 258 #define _SC_SEM_NSEMS_MAX 16 259 #define _SC_SEM_VALUE_MAX 17 260 #define _SC_SIGQUEUE_MAX 18 261 #define _SC_TIMER_MAX 19 262 #define _SC_TZNAME_MAX 20 263 264 #define _SC_ASYNCHRONOUS_IO 21 265 #define _SC_FSYNC 22 266 #define _SC_MAPPED_FILES 23 267 #define _SC_MEMLOCK 24 268 #define _SC_MEMLOCK_RANGE 25 269 #define _SC_MEMORY_PROTECTION 26 270 #define _SC_MESSAGE_PASSING 27 271 #define _SC_PRIORITIZED_IO 28 272 #define _SC_REALTIME_SIGNALS 29 273 #define _SC_SEMAPHORES 30 274 #define _SC_SHARED_MEMORY_OBJECTS 31 275 #define _SC_SYNCHRONIZED_IO 32 276 #define _SC_TIMERS 33 277 #define _SC_AIO_LISTIO_MAX 34 278 #define _SC_AIO_MAX 35 279 #define _SC_AIO_PRIO_DELTA_MAX 36 280 #define _SC_DELAYTIMER_MAX 37 281 282 /* 283 * P1003.1c/D10, p. 52 adds the following. 236 * sysconf values per IEEE Std 1003.1, 2004 Edition 284 237 */ 285 238 239 #define _SC_ARG_MAX 0 240 #define _SC_CHILD_MAX 1 241 #define _SC_CLK_TCK 2 242 #define _SC_NGROUPS_MAX 3 243 #define _SC_OPEN_MAX 4 244 #define _SC_JOB_CONTROL 5 245 #define _SC_SAVED_IDS 6 246 #define _SC_VERSION 7 247 #define _SC_PAGESIZE 8 248 #define _SC_PAGE_SIZE _SC_PAGESIZE 249 /* These are non-POSIX values we accidentally introduced in 2000 without 250 guarding them. Keeping them unguarded for backward compatibility. */ 251 #define _SC_NPROCESSORS_CONF 9 252 #define _SC_NPROCESSORS_ONLN 10 253 #define _SC_PHYS_PAGES 11 254 #define _SC_AVPHYS_PAGES 12 255 /* End of non-POSIX values. */ 256 #define _SC_MQ_OPEN_MAX 13 257 #define _SC_MQ_PRIO_MAX 14 258 #define _SC_RTSIG_MAX 15 259 #define _SC_SEM_NSEMS_MAX 16 260 #define _SC_SEM_VALUE_MAX 17 261 #define _SC_SIGQUEUE_MAX 18 262 #define _SC_TIMER_MAX 19 263 #define _SC_TZNAME_MAX 20 264 #define _SC_ASYNCHRONOUS_IO 21 265 #define _SC_FSYNC 22 266 #define _SC_MAPPED_FILES 23 267 #define _SC_MEMLOCK 24 268 #define _SC_MEMLOCK_RANGE 25 269 #define _SC_MEMORY_PROTECTION 26 270 #define _SC_MESSAGE_PASSING 27 271 #define _SC_PRIORITIZED_IO 28 272 #define _SC_REALTIME_SIGNALS 29 273 #define _SC_SEMAPHORES 30 274 #define _SC_SHARED_MEMORY_OBJECTS 31 275 #define _SC_SYNCHRONIZED_IO 32 276 #define _SC_TIMERS 33 277 #define _SC_AIO_LISTIO_MAX 34 278 #define _SC_AIO_MAX 35 279 #define _SC_AIO_PRIO_DELTA_MAX 36 280 #define _SC_DELAYTIMER_MAX 37 286 281 #define _SC_THREAD_KEYS_MAX 38 287 282 #define _SC_THREAD_STACK_MIN 39 288 283 #define _SC_THREAD_THREADS_MAX 40 289 284 #define _SC_TTY_NAME_MAX 41 290 291 285 #define _SC_THREADS 42 292 286 #define _SC_THREAD_ATTR_STACKADDR 43 293 287 #define _SC_THREAD_ATTR_STACKSIZE 44 … … 302 296 #define _SC_GETPW_R_SIZE_MAX 51 303 297 #define _SC_LOGIN_NAME_MAX 52 304 298 #define _SC_THREAD_DESTRUCTOR_ITERATIONS 53 299 #define _SC_ADVISORY_INFO 54 300 #define _SC_ATEXIT_MAX 55 301 #define _SC_BARRIERS 56 302 #define _SC_BC_BASE_MAX 57 303 #define _SC_BC_DIM_MAX 58 304 #define _SC_BC_SCALE_MAX 59 305 #define _SC_BC_STRING_MAX 60 306 #define _SC_CLOCK_SELECTION 61 307 #define _SC_COLL_WEIGHTS_MAX 62 308 #define _SC_CPUTIME 63 309 #define _SC_EXPR_NEST_MAX 64 310 #define _SC_HOST_NAME_MAX 65 311 #define _SC_IOV_MAX 66 312 #define _SC_IPV6 67 313 #define _SC_LINE_MAX 68 314 #define _SC_MONOTONIC_CLOCK 69 315 #define _SC_RAW_SOCKETS 70 316 #define _SC_READER_WRITER_LOCKS 71 317 #define _SC_REGEXP 72 318 #define _SC_RE_DUP_MAX 73 319 #define _SC_SHELL 74 320 #define _SC_SPAWN 75 321 #define _SC_SPIN_LOCKS 76 322 #define _SC_SPORADIC_SERVER 77 323 #define _SC_SS_REPL_MAX 78 324 #define _SC_SYMLOOP_MAX 79 325 #define _SC_THREAD_CPUTIME 80 326 #define _SC_THREAD_SPORADIC_SERVER 81 327 #define _SC_TIMEOUTS 82 328 #define _SC_TRACE 83 329 #define _SC_TRACE_EVENT_FILTER 84 330 #define _SC_TRACE_EVENT_NAME_MAX 85 331 #define _SC_TRACE_INHERIT 86 332 #define _SC_TRACE_LOG 87 333 #define _SC_TRACE_NAME_MAX 88 334 #define _SC_TRACE_SYS_MAX 89 335 #define _SC_TRACE_USER_EVENT_MAX 90 336 #define _SC_TYPED_MEMORY_OBJECTS 91 337 #define _SC_V6_ILP32_OFF32 92 338 #define _SC_XBS5_ILP32_OFF32 _SC_V6_ILP32_OFF32 339 #define _SC_V6_ILP32_OFFBIG 93 340 #define _SC_XBS5_ILP32_OFFBIG _SC_V6_ILP32_OFFBIG 341 #define _SC_V6_LP64_OFF64 94 342 #define _SC_XBS5_LP64_OFF64 _SC_V6_LP64_OFF64 343 #define _SC_V6_LPBIG_OFFBIG 95 344 #define _SC_XBS5_LPBIG_OFFBIG _SC_V6_LPBIG_OFFBIG 345 #define _SC_XOPEN_CRYPT 96 346 #define _SC_XOPEN_ENH_I18N 97 347 #define _SC_XOPEN_LEGACY 98 348 #define _SC_XOPEN_REALTIME 99 349 #define _SC_STREAM_MAX 100 350 #define _SC_PRIORITY_SCHEDULING 101 351 #define _SC_XOPEN_REALTIME_THREADS 102 352 #define _SC_XOPEN_SHM 103 353 #define _SC_XOPEN_STREAMS 104 354 #define _SC_XOPEN_UNIX 105 355 #define _SC_XOPEN_VERSION 106 356 #define _SC_2_CHAR_TERM 107 357 #define _SC_2_C_BIND 108 358 #define _SC_2_C_DEV 109 359 #define _SC_2_FORT_DEV 110 360 #define _SC_2_FORT_RUN 111 361 #define _SC_2_LOCALEDEF 112 362 #define _SC_2_PBS 113 363 #define _SC_2_PBS_ACCOUNTING 114 364 #define _SC_2_PBS_CHECKPOINT 115 365 #define _SC_2_PBS_LOCATE 116 366 #define _SC_2_PBS_MESSAGE 117 367 #define _SC_2_PBS_TRACK 118 368 #define _SC_2_SW_DEV 119 369 #define _SC_2_UPE 120 370 #define _SC_2_VERSION 121 305 371 306 #if !defined(__rtems__) 307 #define _SC_STREAM_MAX 100 308 #endif 309 #if !defined(__CYGWIN__) && !defined(__rtems__) 310 #define _SC_PRIORITY_SCHEDULING 101 311 #endif 312 313 # define _PC_LINK_MAX 0 314 # define _PC_MAX_CANON 1 315 # define _PC_MAX_INPUT 2 316 # define _PC_NAME_MAX 3 317 # define _PC_PATH_MAX 4 318 # define _PC_PIPE_BUF 5 319 # define _PC_CHOWN_RESTRICTED 6 320 # define _PC_NO_TRUNC 7 321 # define _PC_VDISABLE 8 322 # define _PC_ASYNC_IO 9 323 # define _PC_PRIO_IO 10 324 # define _PC_SYNC_IO 11 325 # define _PC_FILESIZEBITS 12 326 # define _PC_2_SYMLINKS 13 327 # define _PC_SYMLINK_MAX 14 372 /* 373 * pathconf values per IEEE Std 1003.1, 2004 Edition 374 */ 375 376 #define _PC_LINK_MAX 0 377 #define _PC_MAX_CANON 1 378 #define _PC_MAX_INPUT 2 379 #define _PC_NAME_MAX 3 380 #define _PC_PATH_MAX 4 381 #define _PC_PIPE_BUF 5 382 #define _PC_CHOWN_RESTRICTED 6 383 #define _PC_NO_TRUNC 7 384 #define _PC_VDISABLE 8 385 #define _PC_ASYNC_IO 9 386 #define _PC_PRIO_IO 10 387 #define _PC_SYNC_IO 11 388 #define _PC_FILESIZEBITS 12 389 #define _PC_2_SYMLINKS 13 390 #define _PC_SYMLINK_MAX 14 328 391 #ifdef __CYGWIN__ 329 392 /* Ask for POSIX permission bits support. */ 330 # define _PC_POSIX_PERMISSIONS90393 #define _PC_POSIX_PERMISSIONS 90 331 394 /* Ask for full POSIX permission support including uid/gid settings. */ 332 # define _PC_POSIX_SECURITY91395 #define _PC_POSIX_SECURITY 91 333 396 #endif 334 397 335 /* FIXME: This is temporary until winsup gets sorted out. */ 336 #ifdef __CYGWIN__ 337 #define MAXPATHLEN (260 - 1 /* NUL */) 338 #else 398 /* 399 * confstr values per IEEE Std 1003.1, 2004 Edition 400 */ 401 402 #ifdef __CYGWIN__ /* Only defined on Cygwin for now. */ 403 #define _CS_PATH 0 404 #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 1 405 #define _CS_XBS5_ILP32_OFF32_CFLAGS _CS_POSIX_V6_ILP32_OFF32_CFLAGS 406 #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 2 407 #define _CS_XBS5_ILP32_OFF32_LDFLAGS _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 408 #define _CS_POSIX_V6_ILP32_OFF32_LIBS 3 409 #define _CS_XBS5_ILP32_OFF32_LIBS _CS_POSIX_V6_ILP32_OFF32_LIBS 410 #define _CS_XBS5_ILP32_OFF32_LINTFLAGS 4 411 #define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 5 412 #define _CS_XBS5_ILP32_OFFBIG_CFLAGS _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 413 #define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 6 414 #define _CS_XBS5_ILP32_OFFBIG_LDFLAGS _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 415 #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 7 416 #define _CS_XBS5_ILP32_OFFBIG_LIBS _CS_POSIX_V6_ILP32_OFFBIG_LIBS 417 #define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS 8 418 #define _CS_POSIX_V6_LP64_OFF64_CFLAGS 9 419 #define _CS_XBS5_LP64_OFF64_CFLAGS _CS_POSIX_V6_LP64_OFF64_CFLAGS 420 #define _CS_POSIX_V6_LP64_OFF64_LDFLAGS 10 421 #define _CS_XBS5_LP64_OFF64_LDFLAGS _CS_POSIX_V6_LP64_OFF64_LDFLAGS 422 #define _CS_POSIX_V6_LP64_OFF64_LIBS 11 423 #define _CS_XBS5_LP64_OFF64_LIBS _CS_POSIX_V6_LP64_OFF64_LIBS 424 #define _CS_XBS5_LP64_OFF64_LINTFLAGS 12 425 #define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 13 426 #define _CS_XBS5_LPBIG_OFFBIG_CFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 427 #define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 14 428 #define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 429 #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 15 430 #define _CS_XBS5_LPBIG_OFFBIG_LIBS _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 431 #define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS 16 432 #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 17 433 #endif 434 435 #ifndef __CYGWIN__ 339 436 # define MAXPATHLEN 1024 340 437 #endif 341 438 -
newlib/libc/include/tar.h
diff -uNr newlib-1.15.0.orig/newlib/libc/include/tar.h newlib-1.15.0/newlib/libc/include/tar.h
old new 1 /* 2 * tar.h 3 */ 4 5 #ifndef _TAR_H 6 #define _TAR_H 7 8 /* General definitions */ 9 #define TMAGIC "ustar" /* ustar plus null byte. */ 10 #define TMAGLEN 6 /* Length of the above. */ 11 #define TVERSION "00" /* 00 without a null byte. */ 12 #define TVERSLEN 2 /* Length of the above. */ 13 14 /* Typeflag field definitions */ 15 #define REGTYPE '0' /* Regular file. */ 16 #define AREGTYPE '\0' /* Regular file. */ 17 #define LNKTYPE '1' /* Link. */ 18 #define SYMTYPE '2' /* Symbolic link. */ 19 #define CHRTYPE '3' /* Character special. */ 20 #define BLKTYPE '4' /* Block special. */ 21 #define DIRTYPE '5' /* Directory. */ 22 #define FIFOTYPE '6' /* FIFO special. */ 23 #define CONTTYPE '7' /* Reserved. */ 24 25 /* Mode field bit definitions (octal) */ 26 #define TSUID 04000 /* Set UID on execution. */ 27 #define TSGID 02000 /* Set GID on execution. */ 28 #define TSVTX 01000 /* On directories, restricted deletion flag. */ 29 #define TUREAD 00400 /* Read by owner. */ 30 #define TUWRITE 00200 /* Write by owner. */ 31 #define TUEXEC 00100 /* Execute/search by owner. */ 32 #define TGREAD 00040 /* Read by group. */ 33 #define TGWRITE 00020 /* Write by group. */ 34 #define TGEXEC 00010 /* Execute/search by group. */ 35 #define TOREAD 00004 /* Read by other. */ 36 #define TOWRITE 00002 /* Write by other. */ 37 #define TOEXEC 00001 /* Execute/search by other. */ 38 39 #endif -
newlib/libc/include/time.h
diff -uNr newlib-1.15.0.orig/newlib/libc/include/time.h newlib-1.15.0/newlib/libc/include/time.h
old new 226 226 227 227 #endif 228 228 229 #if defined(_POSIX_MONOTONIC_CLOCK) 230 231 /* The identifier for the system-wide monotonic clock, which is defined 232 as a clock whose value cannot be set via clock_settime() and which 233 cannot have backward clock jumps. */ 234 235 #define CLOCK_MONOTONIC (clockid_t)4 236 237 #endif 238 229 239 #if defined(_POSIX_CPUTIME) 230 240 231 241 /* Accessing a Process CPU-time CLock, P1003.4b/D8, p. 55 */ -
newlib/libc/machine/arm/machine/endian.h
diff -uNr newlib-1.15.0.orig/newlib/libc/machine/arm/machine/endian.h newlib-1.15.0/newlib/libc/machine/arm/machine/endian.h
old new 1 /* ARM configuration file */2 3 #ifndef _MACHINE_ENDIAN_H4 # define _MACHINE_ENDIAN_H5 6 #ifdef __ARMEB__7 #define BYTE_ORDER BIG_ENDIAN8 #else9 #define BYTE_ORDER LITTLE_ENDIAN10 #endif11 12 #endif -
newlib/libc/machine/powerpc/setjmp.S
diff -uNr newlib-1.15.0.orig/newlib/libc/machine/powerpc/setjmp.S newlib-1.15.0/newlib/libc/machine/powerpc/setjmp.S
old new 5 5 #include "ppc-asm.h" 6 6 7 7 FUNC_START(setjmp) 8 #ifdef __ALTIVEC__ 9 addi 3,3,15 # align Altivec to 16 byte boundary 8 mfmsr 4 9 rlwinm. 4,4,0,6,6 # check MSR_VE 10 addi 3,3,7 11 rlwinm 3,3,0,0,28 # align to 8 byte boundary 12 beq 1f 13 addi 3,3,15 # VE is enabled; align to 16 byte bdry 10 14 rlwinm 3,3,0,0,27 11 #else 12 addi 3,3,7 # align to 8 byte boundary 13 rlwinm 3,3,0,0,28 14 #endif 15 1: 15 16 stw 1,0(3) # offset 0 16 17 stwu 2,4(3) # offset 4 17 18 stwu 13,4(3) # offset 8 … … 39 40 stwu 4,4(3) # offset 88 40 41 # one word pad to get floating point aligned on 8 byte boundary 41 42 #ifndef _SOFT_FLOAT 43 mfmsr 4 44 rlwinm. 4,4,0,18,18 45 bne 1f # only save FPregs if FPU is enabled 46 addi 3,3,18*8 # skip FPregs 47 b 2f 48 1: 42 49 stfdu 14,8(3) # offset 96 43 50 stfdu 15,8(3) # offset 104 44 51 stfdu 16,8(3) # offset 112 … … 57 64 stfdu 29,8(3) # offset 216 58 65 stfdu 30,8(3) # offset 224 59 66 stfdu 31,8(3) # offset 232 67 2: 60 68 #endif 61 69 62 70 /* This requires a total of 21 * 4 + 18 * 8 + 4 + 4 + 4 63 71 bytes == 60 * 4 bytes == 240 bytes. */ 64 72 65 #ifdef __ALTIVEC__ 73 #if defined(__ALTIVEC__) 74 /* could reuse r4 but I reload it just in case the code changes... */ 75 mfmsr 4 76 rlwinm. 4,4,0,6,6 # check MSR_VE 77 bne 1f # only save vector regs if altivec is enabled 78 addi 3,3,(8 + 12*16) # skip vector regs 79 b 2f 80 1: 66 81 /* save Altivec vrsave and vr20-vr31 registers */ 67 82 mfspr 4,256 # vrsave register 68 83 stwu 4,16(3) # offset 248 … … 90 105 stvx 30,0,3 # offset 416 91 106 addi 3,3,16 92 107 stvx 31,0,3 # offset 432 108 2: 93 109 94 110 /* This requires a total of 240 + 8 + 8 + 12 * 16 == 448 bytes. */ 95 111 #endif … … 99 115 100 116 101 117 FUNC_START(longjmp) 102 #ifdef __ALTIVEC__ 103 addi 3,3,15 # align Altivec to 16 byte boundary 118 mfmsr 4 119 rlwinm. 4,4,0,6,6 # check MSR_VE 120 addi 3,3,7 121 rlwinm 3,3,0,0,28 # align to 8 byte boundary 122 beq 1f 123 addi 3,3,15 # VE is enabled; align to 16 byte bdry 104 124 rlwinm 3,3,0,0,27 105 #else 106 addi 3,3,7 # align to 8 byte boundary 107 rlwinm 3,3,0,0,28 108 #endif 125 1: 109 126 lwz 1,0(3) # offset 0 110 127 lwzu 2,4(3) # offset 4 111 128 lwzu 13,4(3) # offset 8 … … 129 146 lwzu 31,4(3) # offset 80 130 147 lwzu 5,4(3) # offset 84 131 148 mtlr 5 149 #if !defined(_SOFT_FLOAT) 150 mfmsr 5 151 rlwinm. 5,5,0,18,18 # is MSR_FP set? 152 #endif 132 153 lwzu 5,4(3) # offset 88 133 mtcrf 255,5134 154 # one word pad to get floating point aligned on 8 byte boundary 135 155 #ifndef _SOFT_FLOAT 156 bne 1f 157 addi 3,3,18*8 # skip FPregs 158 b 2f 159 1: 136 160 lfdu 14,8(3) # offset 96 137 161 lfdu 15,8(3) # offset 104 138 162 lfdu 16,8(3) # offset 112 … … 151 175 lfdu 29,8(3) # offset 216 152 176 lfdu 30,8(3) # offset 224 153 177 lfdu 31,8(3) # offset 232 178 2: 154 179 #endif 180 mtcrf 255,5 155 181 156 #ifdef __ALTIVEC__ 182 #if defined(__ALTIVEC__) 183 mfmsr 5 184 rlwinm. 5,5,0,6,6 # is MSR_FP set? 185 bne 1f 186 addi 3,3,(8+12*16) # skip vector regs 187 b 2f 188 1: 157 189 /* restore Altivec vrsave and v20-v31 registers */ 158 190 lwzu 5,16(3) # offset 248 159 191 mtspr 256,5 # vrsave … … 181 213 lvx 30,0,3 # offset 416 182 214 addi 3,3,16 183 215 lvx 31,0,3 # offset 432 216 2: 184 217 #endif 185 218 186 219 mr. 3,4 -
newlib/libc/search/db_local.h
diff -uNr newlib-1.15.0.orig/newlib/libc/search/db_local.h newlib-1.15.0/newlib/libc/search/db_local.h
old new 50 50 #define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */ 51 51 typedef __uint32_t pgno_t; 52 52 #define MAX_PAGE_OFFSET 65535 /* >= # of bytes in a page */ 53 typedef __uint 16_t indx_t;53 typedef __uint_least16_t indx_t; 54 54 #define MAX_REC_NUMBER 0xffffffff /* >= # of records in a tree */ 55 55 typedef __uint32_t recno_t; 56 56 … … 191 191 * P_16_COPY swap from one location to another 192 192 */ 193 193 #define M_16_SWAP(a) { \ 194 __uint 16_t _tmp = a; \194 __uint_least16_t _tmp = a; \ 195 195 ((char *)&a)[0] = ((char *)&_tmp)[1]; \ 196 196 ((char *)&a)[1] = ((char *)&_tmp)[0]; \ 197 197 } 198 198 #define P_16_SWAP(a) { \ 199 __uint 16_t _tmp = *(__uint16_t *)a; \199 __uint_least16_t _tmp = *(__uint_least16_t *)a; \ 200 200 ((char *)a)[0] = ((char *)&_tmp)[1]; \ 201 201 ((char *)a)[1] = ((char *)&_tmp)[0]; \ 202 202 } -
newlib/libc/search/extern.h
diff -uNr newlib-1.15.0.orig/newlib/libc/search/extern.h newlib-1.15.0/newlib/libc/search/extern.h
old new 48 48 int __delpair(HTAB *, BUFHEAD *, int); 49 49 int __expand_table(HTAB *); 50 50 int __find_bigpair(HTAB *, BUFHEAD *, int, char *, int); 51 __uint 16_t __find_last_page(HTAB *, BUFHEAD **);51 __uint_least16_t __find_last_page(HTAB *, BUFHEAD **); 52 52 void __free_ovflpage(HTAB *, BUFHEAD *); 53 53 BUFHEAD *__get_buf(HTAB *, __uint32_t, BUFHEAD *, int); 54 54 int __get_page(HTAB *, char *, __uint32_t, int, int, int); -
newlib/libc/search/hash_bigkey.c
diff -uNr newlib-1.15.0.orig/newlib/libc/search/hash_bigkey.c newlib-1.15.0/newlib/libc/search/hash_bigkey.c
old new 92 92 BUFHEAD *bufp; 93 93 const DBT *key, *val; 94 94 { 95 __uint 16_t *p;95 __uint_least16_t *p; 96 96 int key_size, n, val_size; 97 __uint 16_t space, move_bytes, off;97 __uint_least16_t space, move_bytes, off; 98 98 char *cp, *key_data, *val_data; 99 99 100 100 cp = bufp->page; /* Character pointer of p. */ 101 p = (__uint 16_t *)cp;101 p = (__uint_least16_t *)cp; 102 102 103 103 key_data = (char *)key->data; 104 104 key_size = key->size; … … 136 136 OFFSET(p) = off; 137 137 } else 138 138 p[n - 2] = FULL_KEY; 139 p = (__uint 16_t *)bufp->page;139 p = (__uint_least16_t *)bufp->page; 140 140 cp = bufp->page; 141 141 bufp->flags |= BUF_MOD; 142 142 } … … 166 166 if (!bufp) 167 167 return (-1); 168 168 cp = bufp->page; 169 p = (__uint 16_t *)cp;169 p = (__uint_least16_t *)cp; 170 170 } else 171 171 p[n] = FULL_KEY_DATA; 172 172 bufp->flags |= BUF_MOD; … … 191 191 BUFHEAD *bufp; 192 192 { 193 193 BUFHEAD *last_bfp, *rbufp; 194 __uint 16_t *bp, pageno;194 __uint_least16_t *bp, pageno; 195 195 int key_done, n; 196 196 197 197 rbufp = bufp; 198 198 last_bfp = NULL; 199 bp = (__uint 16_t *)bufp->page;199 bp = (__uint_least16_t *)bufp->page; 200 200 pageno = 0; 201 201 key_done = 0; 202 202 … … 219 219 last_bfp = rbufp; 220 220 if (!rbufp) 221 221 return (-1); /* Error. */ 222 bp = (__uint 16_t *)rbufp->page;222 bp = (__uint_least16_t *)rbufp->page; 223 223 } 224 224 225 225 /* … … 234 234 pageno = bp[n - 1]; 235 235 236 236 /* Now, bp is the first page of the pair. */ 237 bp = (__uint 16_t *)bufp->page;237 bp = (__uint_least16_t *)bufp->page; 238 238 if (n > 2) { 239 239 /* There is an overflow page. */ 240 240 bp[1] = pageno; … … 272 272 char *key; 273 273 int size; 274 274 { 275 __uint 16_t *bp;275 __uint_least16_t *bp; 276 276 char *p; 277 277 int ksize; 278 __uint 16_t bytes;278 __uint_least16_t bytes; 279 279 char *kkey; 280 280 281 bp = (__uint 16_t *)bufp->page;281 bp = (__uint_least16_t *)bufp->page; 282 282 p = bufp->page; 283 283 ksize = size; 284 284 kkey = key; … … 294 294 if (!bufp) 295 295 return (-3); 296 296 p = bufp->page; 297 bp = (__uint 16_t *)p;297 bp = (__uint_least16_t *)p; 298 298 ndx = 1; 299 299 } 300 300 … … 316 316 * of the pair; 0 if there isn't any (i.e. big pair is the last key in the 317 317 * bucket) 318 318 */ 319 extern __uint 16_t319 extern __uint_least16_t 320 320 __find_last_page(hashp, bpp) 321 321 HTAB *hashp; 322 322 BUFHEAD **bpp; 323 323 { 324 324 BUFHEAD *bufp; 325 __uint 16_t *bp, pageno;325 __uint_least16_t *bp, pageno; 326 326 int n; 327 327 328 328 bufp = *bpp; 329 bp = (__uint 16_t *)bufp->page;329 bp = (__uint_least16_t *)bufp->page; 330 330 for (;;) { 331 331 n = bp[0]; 332 332 … … 343 343 bufp = __get_buf(hashp, pageno, bufp, 0); 344 344 if (!bufp) 345 345 return (0); /* Need to indicate an error! */ 346 bp = (__uint 16_t *)bufp->page;346 bp = (__uint_least16_t *)bufp->page; 347 347 } 348 348 349 349 *bpp = bufp; … … 366 366 int set_current; 367 367 { 368 368 BUFHEAD *save_p; 369 __uint 16_t *bp, len, off, save_addr;369 __uint_least16_t *bp, len, off, save_addr; 370 370 char *tp; 371 371 372 bp = (__uint 16_t *)bufp->page;372 bp = (__uint_least16_t *)bufp->page; 373 373 while (bp[ndx + 1] == PARTIAL_KEY) { 374 374 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 375 375 if (!bufp) 376 376 return (-1); 377 bp = (__uint 16_t *)bufp->page;377 bp = (__uint_least16_t *)bufp->page; 378 378 ndx = 1; 379 379 } 380 380 … … 382 382 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 383 383 if (!bufp) 384 384 return (-1); 385 bp = (__uint 16_t *)bufp->page;385 bp = (__uint_least16_t *)bufp->page; 386 386 save_p = bufp; 387 387 save_addr = save_p->addr; 388 388 off = bp[1]; … … 403 403 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 404 404 if (!bufp) 405 405 return (-1); 406 bp = (__uint 16_t *)bufp->page;406 bp = (__uint_least16_t *)bufp->page; 407 407 } else { 408 408 /* The data is all on one page. */ 409 409 tp = (char *)bp; … … 422 422 if (!hashp->cpage) 423 423 return (-1); 424 424 hashp->cndx = 1; 425 if (!((__uint 16_t *)425 if (!((__uint_least16_t *) 426 426 hashp->cpage->page)[0]) { 427 427 hashp->cbucket++; 428 428 hashp->cpage = NULL; … … 454 454 BUFHEAD *bufp; 455 455 int len, set; 456 456 { 457 __uint 16_t *bp;457 __uint_least16_t *bp; 458 458 char *p; 459 459 BUFHEAD *xbp; 460 __uint 16_t save_addr;460 __uint_least16_t save_addr; 461 461 int mylen, totlen; 462 462 463 463 p = bufp->page; 464 bp = (__uint 16_t *)p;464 bp = (__uint_least16_t *)p; 465 465 mylen = hashp->BSIZE - bp[1]; 466 466 save_addr = bufp->addr; 467 467 … … 481 481 __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 482 482 if (!hashp->cpage) 483 483 return (-1); 484 else if (!((__uint 16_t *)hashp->cpage->page)[0]) {484 else if (!((__uint_least16_t *)hashp->cpage->page)[0]) { 485 485 hashp->cbucket++; 486 486 hashp->cpage = NULL; 487 487 } … … 533 533 BUFHEAD *xbp; 534 534 char *p; 535 535 int mylen, totlen; 536 __uint 16_t *bp, save_addr;536 __uint_least16_t *bp, save_addr; 537 537 538 538 p = bufp->page; 539 bp = (__uint 16_t *)p;539 bp = (__uint_least16_t *)p; 540 540 mylen = hashp->BSIZE - bp[1]; 541 541 542 542 save_addr = bufp->addr; … … 579 579 SPLIT_RETURN *ret; 580 580 { 581 581 BUFHEAD *tmpp; 582 __uint 16_t *tp;582 __uint_least16_t *tp; 583 583 BUFHEAD *bp; 584 584 DBT key, val; 585 585 __uint32_t change; 586 __uint 16_t free_space, n, off;586 __uint_least16_t free_space, n, off; 587 587 588 588 bp = big_keyp; 589 589 … … 615 615 (tmpp->ovfl ? tmpp->ovfl->addr : 0), (bp ? bp->addr : 0)); 616 616 #endif 617 617 tmpp->ovfl = bp; /* one of op/np point to big_keyp */ 618 tp = (__uint 16_t *)tmpp->page;618 tp = (__uint_least16_t *)tmpp->page; 619 619 #ifdef DEBUG 620 620 assert(FREESPACE(tp) >= OVFLSIZE); 621 621 #endif 622 622 n = tp[0]; 623 623 off = OFFSET(tp); 624 624 free_space = FREESPACE(tp); 625 tp[++n] = (__uint 16_t)addr;625 tp[++n] = (__uint_least16_t)addr; 626 626 tp[++n] = OVFLPAGE; 627 627 tp[0] = n; 628 628 OFFSET(tp) = off; … … 638 638 ret->newp = np; 639 639 ret->oldp = op; 640 640 641 tp = (__uint 16_t *)big_keyp->page;641 tp = (__uint_least16_t *)big_keyp->page; 642 642 big_keyp->flags |= BUF_MOD; 643 643 if (tp[0] > 2) { 644 644 /* -
newlib/libc/search/hash_buf.c
diff -uNr newlib-1.15.0.orig/newlib/libc/search/hash_buf.c newlib-1.15.0/newlib/libc/search/hash_buf.c
old new 176 176 BUFHEAD *next_xbp; 177 177 SEGMENT segp; 178 178 int segment_ndx; 179 __uint 16_t oaddr, *shortp;179 __uint_least16_t oaddr, *shortp; 180 180 181 181 oaddr = 0; 182 182 bp = LRU; … … 212 212 * Set oaddr before __put_page so that you get it 213 213 * before bytes are swapped. 214 214 */ 215 shortp = (__uint 16_t *)bp->page;215 shortp = (__uint_least16_t *)bp->page; 216 216 if (shortp[0]) 217 217 oaddr = shortp[shortp[0] - 1]; 218 218 if ((bp->flags & BUF_MOD) && __put_page(hashp, bp->page, … … 255 255 (oaddr != xbp->addr)) 256 256 break; 257 257 258 shortp = (__uint 16_t *)xbp->page;258 shortp = (__uint_least16_t *)xbp->page; 259 259 if (shortp[0]) 260 260 /* set before __put_page */ 261 261 oaddr = shortp[shortp[0] - 1]; -
newlib/libc/search/hash.c
diff -uNr newlib-1.15.0.orig/newlib/libc/search/hash.c newlib-1.15.0/newlib/libc/search/hash.c
old new 628 628 { 629 629 BUFHEAD *rbufp; 630 630 BUFHEAD *bufp, *save_bufp; 631 __uint 16_t *bp;631 __uint_least16_t *bp; 632 632 int n, ndx, off, size; 633 633 char *kp; 634 __uint 16_t pageno;634 __uint_least16_t pageno; 635 635 636 636 #ifdef HASH_STATISTICS 637 637 hash_accesses++; … … 647 647 648 648 /* Pin the bucket chain */ 649 649 rbufp->flags |= BUF_PIN; 650 for (bp = (__uint 16_t *)rbufp->page, n = *bp++, ndx = 1; ndx < n;)650 for (bp = (__uint_least16_t *)rbufp->page, n = *bp++, ndx = 1; ndx < n;) 651 651 if (bp[1] >= REAL_KEY) { 652 652 /* Real key/data pair */ 653 653 if (size == off - *bp && … … 666 666 return (ERROR); 667 667 } 668 668 /* FOR LOOP INIT */ 669 bp = (__uint 16_t *)rbufp->page;669 bp = (__uint_least16_t *)rbufp->page; 670 670 n = *bp++; 671 671 ndx = 1; 672 672 off = hashp->BSIZE; … … 688 688 return (ERROR); 689 689 } 690 690 /* FOR LOOP INIT */ 691 bp = (__uint 16_t *)rbufp->page;691 bp = (__uint_least16_t *)rbufp->page; 692 692 n = *bp++; 693 693 ndx = 1; 694 694 off = hashp->BSIZE; … … 722 722 save_bufp->flags &= ~BUF_PIN; 723 723 return (ABNORMAL); 724 724 case HASH_GET: 725 bp = (__uint 16_t *)rbufp->page;725 bp = (__uint_least16_t *)rbufp->page; 726 726 if (bp[ndx + 1] < REAL_KEY) { 727 727 if (__big_return(hashp, rbufp, ndx, val, 0)) 728 728 return (ERROR); … … 758 758 __uint32_t bucket; 759 759 BUFHEAD *bufp; 760 760 HTAB *hashp; 761 __uint 16_t *bp, ndx;761 __uint_least16_t *bp, ndx; 762 762 763 763 hashp = (HTAB *)dbp->internal; 764 764 if (flag && flag != R_FIRST && flag != R_NEXT) { … … 783 783 if (!bufp) 784 784 return (ERROR); 785 785 hashp->cpage = bufp; 786 bp = (__uint 16_t *)bufp->page;786 bp = (__uint_least16_t *)bufp->page; 787 787 if (bp[0]) 788 788 break; 789 789 } … … 793 793 return (ABNORMAL); 794 794 } 795 795 } else 796 bp = (__uint 16_t *)hashp->cpage->page;796 bp = (__uint_least16_t *)hashp->cpage->page; 797 797 798 798 #ifdef DEBUG 799 799 assert(bp); … … 804 804 __get_buf(hashp, bp[hashp->cndx], bufp, 0); 805 805 if (!bufp) 806 806 return (ERROR); 807 bp = (__uint 16_t *)(bufp->page);807 bp = (__uint_least16_t *)(bufp->page); 808 808 hashp->cndx = 1; 809 809 } 810 810 if (!bp[0]) { -
newlib/libc/search/hash.h
diff -uNr newlib-1.15.0.orig/newlib/libc/search/hash.h newlib-1.15.0/newlib/libc/search/hash.h
old new 102 102 #define NCACHED 32 /* number of bit maps and spare 103 103 * points */ 104 104 int spares[NCACHED];/* spare pages for overflow */ 105 __uint 16_t bitmaps[NCACHED]; /* address of overflow page105 __uint_least16_t bitmaps[NCACHED]; /* address of overflow page 106 106 * bitmaps */ 107 107 } HASHHDR; 108 108 -
newlib/libc/search/hash_page.c
diff -uNr newlib-1.15.0.orig/newlib/libc/search/hash_page.c newlib-1.15.0/newlib/libc/search/hash_page.c
old new 77 77 static __uint32_t *fetch_bitmap(HTAB *, int); 78 78 static __uint32_t first_free(__uint32_t); 79 79 static int open_temp(HTAB *); 80 static __uint 16_t overflow_page(HTAB *);80 static __uint_least16_t overflow_page(HTAB *); 81 81 static void putpair(char *, const DBT *, const DBT *); 82 static void squeeze_key(__uint 16_t *, const DBT *, const DBT *);82 static void squeeze_key(__uint_least16_t *, const DBT *, const DBT *); 83 83 static int ugly_split 84 84 (HTAB *, __uint32_t, BUFHEAD *, BUFHEAD *, int, int); 85 85 86 86 #define PAGE_INIT(P) { \ 87 ((__uint 16_t *)(P))[0] = 0; \88 ((__uint 16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(__uint16_t); \89 ((__uint 16_t *)(P))[2] = hashp->BSIZE; \87 ((__uint_least16_t *)(P))[0] = 0; \ 88 ((__uint_least16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(__uint_least16_t); \ 89 ((__uint_least16_t *)(P))[2] = hashp->BSIZE; \ 90 90 } 91 91 92 92 /* … … 99 99 char *p; 100 100 const DBT *key, *val; 101 101 { 102 __uint 16_t *bp, n, off;102 __uint_least16_t *bp, n, off; 103 103 104 bp = (__uint 16_t *)p;104 bp = (__uint_least16_t *)p; 105 105 106 106 /* Enter the key first. */ 107 107 n = bp[0]; … … 117 117 118 118 /* Adjust page info. */ 119 119 bp[0] = n; 120 bp[n + 1] = off - ((n + 3) * sizeof(__uint 16_t));120 bp[n + 1] = off - ((n + 3) * sizeof(__uint_least16_t)); 121 121 bp[n + 2] = off; 122 122 } 123 123 … … 132 132 BUFHEAD *bufp; 133 133 int ndx; 134 134 { 135 __uint 16_t *bp, newoff;135 __uint_least16_t *bp, newoff; 136 136 int n; 137 __uint 16_t pairlen;137 __uint_least16_t pairlen; 138 138 139 bp = (__uint 16_t *)bufp->page;139 bp = (__uint_least16_t *)bufp->page; 140 140 n = bp[0]; 141 141 142 142 if (bp[ndx + 1] < REAL_KEY) … … 167 167 } 168 168 /* Finally adjust the page data */ 169 169 bp[n] = OFFSET(bp) + pairlen; 170 bp[n - 1] = bp[n + 1] + pairlen + 2 * sizeof(__uint 16_t);170 bp[n - 1] = bp[n + 1] + pairlen + 2 * sizeof(__uint_least16_t); 171 171 bp[0] = n - 2; 172 172 hashp->NKEYS--; 173 173 … … 185 185 __uint32_t obucket, nbucket; 186 186 { 187 187 BUFHEAD *new_bufp, *old_bufp; 188 __uint 16_t *ino;188 __uint_least16_t *ino; 189 189 char *np; 190 190 DBT key, val; 191 191 int n, ndx, retval; 192 __uint 16_t copyto, diff, off, moved;192 __uint_least16_t copyto, diff, off, moved; 193 193 char *op; 194 194 195 copyto = (__uint 16_t)hashp->BSIZE;196 off = (__uint 16_t)hashp->BSIZE;195 copyto = (__uint_least16_t)hashp->BSIZE; 196 off = (__uint_least16_t)hashp->BSIZE; 197 197 old_bufp = __get_buf(hashp, obucket, NULL, 0); 198 198 if (old_bufp == NULL) 199 199 return (-1); … … 204 204 old_bufp->flags |= (BUF_MOD | BUF_PIN); 205 205 new_bufp->flags |= (BUF_MOD | BUF_PIN); 206 206 207 ino = (__uint 16_t *)(op = old_bufp->page);207 ino = (__uint_least16_t *)(op = old_bufp->page); 208 208 np = new_bufp->page; 209 209 210 210 moved = 0; … … 246 246 247 247 /* Now clean up the page */ 248 248 ino[0] -= moved; 249 FREESPACE(ino) = copyto - sizeof(__uint 16_t) * (ino[0] + 3);249 FREESPACE(ino) = copyto - sizeof(__uint_least16_t) * (ino[0] + 3); 250 250 OFFSET(ino) = copyto; 251 251 252 252 #ifdef DEBUG3 253 253 (void)fprintf(stderr, "split %d/%d\n", 254 ((__uint 16_t *)np)[0] / 2,255 ((__uint 16_t *)op)[0] / 2);254 ((__uint_least16_t *)np)[0] / 2, 255 ((__uint_least16_t *)op)[0] / 2); 256 256 #endif 257 257 /* unpin both pages */ 258 258 old_bufp->flags &= ~BUF_PIN; … … 284 284 int moved; /* Number of pairs moved to new page. */ 285 285 { 286 286 BUFHEAD *bufp; /* Buffer header for ino */ 287 __uint 16_t *ino; /* Page keys come off of */288 __uint 16_t *np; /* New page */289 __uint 16_t *op; /* Page keys go on to if they aren't moving */287 __uint_least16_t *ino; /* Page keys come off of */ 288 __uint_least16_t *np; /* New page */ 289 __uint_least16_t *op; /* Page keys go on to if they aren't moving */ 290 290 291 291 BUFHEAD *last_bfp; /* Last buf header OVFL needing to be freed */ 292 292 DBT key, val; 293 293 SPLIT_RETURN ret; 294 __uint 16_t n, off, ov_addr, scopyto;294 __uint_least16_t n, off, ov_addr, scopyto; 295 295 char *cino; /* Character value of ino */ 296 296 297 297 bufp = old_bufp; 298 ino = (__uint 16_t *)old_bufp->page;299 np = (__uint 16_t *)new_bufp->page;300 op = (__uint 16_t *)old_bufp->page;298 ino = (__uint_least16_t *)old_bufp->page; 299 np = (__uint_least16_t *)new_bufp->page; 300 op = (__uint_least16_t *)old_bufp->page; 301 301 last_bfp = NULL; 302 scopyto = (__uint 16_t)copyto; /* ANSI */302 scopyto = (__uint_least16_t)copyto; /* ANSI */ 303 303 304 304 n = ino[0] - 1; 305 305 while (n < ino[0]) { … … 310 310 old_bufp = ret.oldp; 311 311 if (!old_bufp) 312 312 return (-1); 313 op = (__uint 16_t *)old_bufp->page;313 op = (__uint_least16_t *)old_bufp->page; 314 314 new_bufp = ret.newp; 315 315 if (!new_bufp) 316 316 return (-1); 317 np = (__uint 16_t *)new_bufp->page;317 np = (__uint_least16_t *)new_bufp->page; 318 318 bufp = ret.nextp; 319 319 if (!bufp) 320 320 return (0); 321 321 cino = (char *)bufp->page; 322 ino = (__uint 16_t *)cino;322 ino = (__uint_least16_t *)cino; 323 323 last_bfp = ret.nextp; 324 324 } else if (ino[n + 1] == OVFLPAGE) { 325 325 ov_addr = ino[n]; … … 329 329 */ 330 330 ino[0] -= (moved + 2); 331 331 FREESPACE(ino) = 332 scopyto - sizeof(__uint 16_t) * (ino[0] + 3);332 scopyto - sizeof(__uint_least16_t) * (ino[0] + 3); 333 333 OFFSET(ino) = scopyto; 334 334 335 335 bufp = __get_buf(hashp, ov_addr, bufp, 0); 336 336 if (!bufp) 337 337 return (-1); 338 338 339 ino = (__uint 16_t *)bufp->page;339 ino = (__uint_least16_t *)bufp->page; 340 340 n = 1; 341 341 scopyto = hashp->BSIZE; 342 342 moved = 0; … … 364 364 __add_ovflpage(hashp, old_bufp); 365 365 if (!old_bufp) 366 366 return (-1); 367 op = (__uint 16_t *)old_bufp->page;367 op = (__uint_least16_t *)old_bufp->page; 368 368 putpair((char *)op, &key, &val); 369 369 } 370 370 old_bufp->flags |= BUF_MOD; … … 377 377 __add_ovflpage(hashp, new_bufp); 378 378 if (!new_bufp) 379 379 return (-1); 380 np = (__uint 16_t *)new_bufp->page;380 np = (__uint_least16_t *)new_bufp->page; 381 381 putpair((char *)np, &key, &val); 382 382 } 383 383 new_bufp->flags |= BUF_MOD; … … 402 402 BUFHEAD *bufp; 403 403 const DBT *key, *val; 404 404 { 405 __uint 16_t *bp, *sop;405 __uint_least16_t *bp, *sop; 406 406 int do_expand; 407 407 408 bp = (__uint 16_t *)bufp->page;408 bp = (__uint_least16_t *)bufp->page; 409 409 do_expand = 0; 410 410 while (bp[0] && (bp[2] < REAL_KEY || bp[bp[0]] < REAL_KEY)) 411 411 /* Exception case */ … … 417 417 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 418 418 if (!bufp) 419 419 return (-1); 420 bp = (__uint 16_t *)bufp->page;420 bp = (__uint_least16_t *)bufp->page; 421 421 } else 422 422 /* Try to squeeze key on this page */ 423 423 if (FREESPACE(bp) > PAIRSIZE(key, val)) { … … 427 427 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 428 428 if (!bufp) 429 429 return (-1); 430 bp = (__uint 16_t *)bufp->page;430 bp = (__uint_least16_t *)bufp->page; 431 431 } 432 432 433 433 if (PAIRFITS(bp, key, val)) … … 437 437 bufp = __add_ovflpage(hashp, bufp); 438 438 if (!bufp) 439 439 return (-1); 440 sop = (__uint 16_t *)bufp->page;440 sop = (__uint_least16_t *)bufp->page; 441 441 442 442 if (PAIRFITS(sop, key, val)) 443 443 putpair((char *)sop, key, val); … … 468 468 HTAB *hashp; 469 469 BUFHEAD *bufp; 470 470 { 471 __uint 16_t *sp;472 __uint 16_t ndx, ovfl_num;471 __uint_least16_t *sp; 472 __uint_least16_t ndx, ovfl_num; 473 473 #ifdef DEBUG1 474 474 int tmp1, tmp2; 475 475 #endif 476 sp = (__uint 16_t *)bufp->page;476 sp = (__uint_least16_t *)bufp->page; 477 477 478 478 /* Check if we are dynamically determining the fill factor */ 479 479 if (hashp->FFACTOR == DEF_FFACTOR) { … … 525 525 { 526 526 int fd, page, size; 527 527 int rsize; 528 __uint 16_t *bp;528 __uint_least16_t *bp; 529 529 530 530 fd = hashp->fp; 531 531 size = hashp->BSIZE; … … 541 541 if ((lseek(fd, (off_t)page << hashp->BSHIFT, SEEK_SET) == -1) || 542 542 ((rsize = read(fd, p, size)) == -1)) 543 543 return (-1); 544 bp = (__uint 16_t *)p;544 bp = (__uint_least16_t *)p; 545 545 if (!rsize) 546 546 bp[0] = 0; /* We hit the EOF, so initialize a new page */ 547 547 else … … 600 600 for (i = 0; i < max; i++) 601 601 M_32_SWAP(((int *)p)[i]); 602 602 } else { 603 max = ((__uint 16_t *)p)[0] + 2;603 max = ((__uint_least16_t *)p)[0] + 2; 604 604 for (i = 0; i <= max; i++) 605 M_16_SWAP(((__uint 16_t *)p)[i]);605 M_16_SWAP(((__uint_least16_t *)p)[i]); 606 606 } 607 607 } 608 608 if (is_bucket) … … 643 643 hashp->BSIZE - clearbytes); 644 644 ip[clearints - 1] = ALL_SET << (nbits & BYTE_MASK); 645 645 SETBIT(ip, 0); 646 hashp->BITMAPS[ndx] = (__uint 16_t)pnum;646 hashp->BITMAPS[ndx] = (__uint_least16_t)pnum; 647 647 hashp->mapp[ndx] = ip; 648 648 return (0); 649 649 } … … 663 663 return (i); 664 664 } 665 665 666 static __uint 16_t666 static __uint_least16_t 667 667 overflow_page(hashp) 668 668 HTAB *hashp; 669 669 { 670 670 __uint32_t *freep; 671 671 int max_free, offset, splitnum; 672 __uint 16_t addr;672 __uint_least16_t addr; 673 673 int bit, first_page, free_bit, free_page, i, in_use_bits, j; 674 674 #ifdef DEBUG2 675 675 int tmp1, tmp2; … … 816 816 HTAB *hashp; 817 817 BUFHEAD *obufp; 818 818 { 819 __uint 16_t addr;819 __uint_least16_t addr; 820 820 __uint32_t *freep; 821 821 int bit_address, free_page, free_bit; 822 __uint 16_t ndx;822 __uint_least16_t ndx; 823 823 824 824 addr = obufp->addr; 825 825 #ifdef DEBUG1 826 826 (void)fprintf(stderr, "Freeing %d\n", addr); 827 827 #endif 828 ndx = (((__uint 16_t)addr) >> SPLITSHIFT);828 ndx = (((__uint_least16_t)addr) >> SPLITSHIFT); 829 829 bit_address = 830 830 (ndx ? hashp->SPARES[ndx - 1] : 0) + (addr & SPLITMASK) - 1; 831 831 if (bit_address < hashp->LAST_FREED) … … 883 883 */ 884 884 static void 885 885 squeeze_key(sp, key, val) 886 __uint 16_t *sp;886 __uint_least16_t *sp; 887 887 const DBT *key, *val; 888 888 { 889 889 char *p; 890 __uint 16_t free_space, n, off, pageno;890 __uint_least16_t free_space, n, off, pageno; 891 891 892 892 p = (char *)sp; 893 893 n = sp[0]; -
newlib/libc/search/page.h
diff -uNr newlib-1.15.0.orig/newlib/libc/search/page.h newlib-1.15.0/newlib/libc/search/page.h
old new 74 74 * You might as well do this up front. 75 75 */ 76 76 77 #define PAIRSIZE(K,D) (2*sizeof(__uint 16_t) + (K)->size + (D)->size)78 #define BIGOVERHEAD (4*sizeof(__uint 16_t))79 #define KEYSIZE(K) (4*sizeof(__uint 16_t) + (K)->size);80 #define OVFLSIZE (2*sizeof(__uint 16_t))77 #define PAIRSIZE(K,D) (2*sizeof(__uint_least16_t) + (K)->size + (D)->size) 78 #define BIGOVERHEAD (4*sizeof(__uint_least16_t)) 79 #define KEYSIZE(K) (4*sizeof(__uint_least16_t) + (K)->size); 80 #define OVFLSIZE (2*sizeof(__uint_least16_t)) 81 81 #define FREESPACE(P) ((P)[(P)[0]+1]) 82 82 #define OFFSET(P) ((P)[(P)[0]+2]) 83 83 #define PAIRFITS(P,K,D) \ 84 84 (((P)[2] >= REAL_KEY) && \ 85 85 (PAIRSIZE((K),(D)) + OVFLSIZE) <= FREESPACE((P))) 86 #define PAGE_META(N) (((N)+3) * sizeof(__uint 16_t))86 #define PAGE_META(N) (((N)+3) * sizeof(__uint_least16_t)) 87 87 88 88 typedef struct { 89 89 BUFHEAD *newp; 90 90 BUFHEAD *oldp; 91 91 BUFHEAD *nextp; 92 __uint 16_t next_addr;92 __uint_least16_t next_addr; 93 93 } SPLIT_RETURN; -
newlib/libc/sys/rtems/machine/stdint.h
diff -uNr newlib-1.15.0.orig/newlib/libc/sys/rtems/machine/stdint.h newlib-1.15.0/newlib/libc/sys/rtems/machine/stdint.h
old new 1 /* 2 * 3 */ 4 #ifndef _MACHINE_STDINT_H 5 #define _MACHINE_STDINT_H 6 7 #ifndef _STDINT_H 8 #error machine/stdint.h is an internal file and must not be directly included 9 #endif 10 11 #if defined(__sparc__) \ 12 || defined(__powerpc__) || defined(__PPC__) \ 13 || defined(__mips__) \ 14 || defined(__sh__) \ 15 || defined(__AVR__) \ 16 || defined(_C4x) || defined(_C3x) \ 17 || defined(__H8300__) 18 /* PTRDIFF_TYPE = int */ 19 #define __ptrint_t_int_defined 1 20 #endif 21 22 #if defined(__i386__) \ 23 || defined(__m68k__) \ 24 || defined(__bfin__) \ 25 || defined(__arm__) \ 26 || defined(__H8300S__) || defined(__H8300H__) 27 /* PTRDIFF_TYPE = long */ 28 #define __ptrint_t_long_defined 1 29 #endif 30 31 #endif -
newlib/libc/sys/rtems/sys/param.h
diff -uNr newlib-1.15.0.orig/newlib/libc/sys/rtems/sys/param.h newlib-1.15.0/newlib/libc/sys/rtems/sys/param.h
old new 93 93 #include <sys/resource.h> 94 94 #include <sys/ucred.h> 95 95 #include <sys/uio.h> 96 #include <sys/rtprio.h>97 96 98 97 #ifndef FALSE 99 98 #define FALSE 0 -
newlib/Makefile.am
diff -uNr newlib-1.15.0.orig/newlib/Makefile.am newlib-1.15.0/newlib/Makefile.am
old new 81 81 libc.a 82 82 endif 83 83 84 noinst_DATA= stmp-targ-include84 BUILT_SOURCES = stmp-targ-include 85 85 86 86 toollib_DATA = $(CRT0) $(CRT1) 87 87 … … 186 186 187 187 $(CRT1_DIR)$(CRT1): ; @true 188 188 189 190 all-recursive: stmp-targ-include191 192 189 # The targ-include directory just holds the includes files for the 193 190 # particular system and machine we have been configured for. It is 194 191 # used while building. -
newlib/Makefile.in
diff -uNr newlib-1.15.0.orig/newlib/Makefile.in newlib-1.15.0/newlib/Makefile.in
old new 103 103 pdf-recursive ps-recursive uninstall-info-recursive \ 104 104 uninstall-recursive 105 105 toollibDATA_INSTALL = $(INSTALL_DATA) 106 DATA = $( noinst_DATA) $(toollib_DATA)106 DATA = $(toollib_DATA) 107 107 ETAGS = etags 108 108 CTAGS = ctags 109 109 DEJATOOL = $(PACKAGE) … … 205 205 USE_LIBTOOL_FALSE = @USE_LIBTOOL_FALSE@ 206 206 USE_LIBTOOL_TRUE = @USE_LIBTOOL_TRUE@ 207 207 VERSION = @VERSION@ 208 ac_ct_AR = @ac_ct_AR@209 ac_ct_AS = @ac_ct_AS@210 208 ac_ct_CC = @ac_ct_CC@ 211 ac_ct_RANLIB = @ac_ct_RANLIB@212 ac_ct_READELF = @ac_ct_READELF@213 ac_ct_STRIP = @ac_ct_STRIP@214 209 aext = @aext@ 215 210 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 216 211 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ … … 226 221 build_os = @build_os@ 227 222 build_vendor = @build_vendor@ 228 223 datadir = @datadir@ 224 datarootdir = @datarootdir@ 225 docdir = @docdir@ 226 dvidir = @dvidir@ 229 227 exec_prefix = @exec_prefix@ 230 228 host = @host@ 231 229 host_alias = @host_alias@ 232 230 host_cpu = @host_cpu@ 233 231 host_os = @host_os@ 234 232 host_vendor = @host_vendor@ 233 htmldir = @htmldir@ 235 234 includedir = @includedir@ 236 235 infodir = @infodir@ 237 236 install_sh = @install_sh@ … … 240 239 libdir = @libdir@ 241 240 libexecdir = @libexecdir@ 242 241 libm_machine_dir = @libm_machine_dir@ 242 localedir = @localedir@ 243 243 localstatedir = @localstatedir@ 244 244 lpfx = @lpfx@ 245 245 machine_dir = @machine_dir@ … … 248 248 newlib_basedir = @newlib_basedir@ 249 249 oext = @oext@ 250 250 oldincludedir = @oldincludedir@ 251 pdfdir = @pdfdir@ 251 252 prefix = @prefix@ 252 253 program_transform_name = @program_transform_name@ 254 psdir = @psdir@ 253 255 sbindir = @sbindir@ 254 256 sharedstatedir = @sharedstatedir@ 255 257 subdirs = @subdirs@ … … 323 325 @USE_LIBTOOL_FALSE@toollib_LIBRARIES = libm.a \ 324 326 @USE_LIBTOOL_FALSE@ libc.a 325 327 326 noinst_DATA= stmp-targ-include328 BUILT_SOURCES = stmp-targ-include 327 329 toollib_DATA = $(CRT0) $(CRT1) 328 330 329 331 # The functions ldexp, frexp and modf are traditionally supplied in … … 382 384 383 385 # dejagnu support 384 386 RUNTESTFLAGS = 385 all: newlib.h387 all: $(BUILT_SOURCES) newlib.h 386 388 $(MAKE) $(AM_MAKEFLAGS) all-recursive 387 389 388 390 .SUFFIXES: … … 687 689 done 688 690 check-am: 689 691 $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU 690 check: check-recursive 692 check: $(BUILT_SOURCES) 693 $(MAKE) $(AM_MAKEFLAGS) check-recursive 691 694 all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA) newlib.h 692 695 installdirs: installdirs-recursive 693 696 installdirs-am: 694 697 for dir in "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)"; do \ 695 698 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 696 699 done 697 install: install-recursive 700 install: $(BUILT_SOURCES) 701 $(MAKE) $(AM_MAKEFLAGS) install-recursive 698 702 install-exec: install-exec-recursive 699 703 install-data: install-data-recursive 700 704 uninstall: uninstall-recursive … … 719 723 maintainer-clean-generic: 720 724 @echo "This command is intended for maintainers to use" 721 725 @echo "it deletes files that may require special tools to rebuild." 726 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 722 727 clean: clean-recursive 723 728 724 729 clean-am: clean-generic clean-libtool clean-toollibLIBRARIES \ … … 837 842 838 843 $(CRT1_DIR)$(CRT1): ; @true 839 844 840 all-recursive: stmp-targ-include841 842 845 # The targ-include directory just holds the includes files for the 843 846 # particular system and machine we have been configured for. It is 844 847 # used while building.
Note: See TracBrowser
for help on using the repository browser.