Changeset 11925eef in rtems
- Timestamp:
- 11/21/14 07:49:57 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 5dff7425
- Parents:
- db44590c
- git-author:
- Sebastian Huber <sebastian.huber@…> (11/21/14 07:49:57)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (11/21/14 07:52:29)
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/gen5200/ide/pcmcia_ide.c
rdb44590c r11925eef 76 76 /***********************************************************************/ 77 77 78 #include <sys/param.h> 78 79 #include <rtems.h> 79 80 #include <rtems/error.h> … … 89 90 #include <string.h> 90 91 91 #ifndef MIN92 #define MIN(a,b) (((a)<(b))?(a):(b))93 #endif94 92 #define IDE_DMA_TEST FALSE 95 93 -
c/src/lib/libbsp/powerpc/mvme5500/network/if_100MHz/GT64260eth.c
rdb44590c r11925eef 901 901 #endif 902 902 903 #define MAX(a,b) (((a) > (b)) ? (a) : (b))904 905 903 static int GT64260eth_sendpacket(struct GTeth_softc *sc,struct mbuf *m) 906 904 { -
c/src/libchip/ide/ata_internal.h
rdb44590c r11925eef 16 16 #define __ATA_INTERNAL_H__ 17 17 18 #include <sys/param.h> 18 19 #include <rtems.h> 19 20 #include <sys/types.h> … … 46 47 #endif 47 48 48 #define MIN(a, b) (((a) < (b)) ? (a) : (b))49 49 #define ATA_UNDEFINED_VALUE (-1) 50 50 -
cpukit/libfs/src/dosfs/fat.h
rdb44590c r11925eef 23 23 #define __DOSFS_FAT_H__ 24 24 25 #include <sys/param.h> 25 26 #include <string.h> 26 27 … … 67 68 # define CT_LE_W(v) (v) 68 69 # define CT_LE_L(v) (v) 69 #endif70 71 #ifndef MIN72 #define MIN(a, b) (((a) < (b)) ? (a) : (b))73 70 #endif 74 71 -
cpukit/libfs/src/imfs/imfs_load_tar.c
rdb44590c r11925eef 21 21 #include "imfs.h" 22 22 23 #include <sys/param.h> 23 24 #include <sys/stat.h> 24 25 #include <string.h> … … 28 29 29 30 #define MAX_NAME_FIELD_SIZE 99 30 31 #define MIN(a,b) ((a)>(b)?(b):(a))32 31 33 32 int rtems_tarfs_load( -
cpukit/libfs/src/pipe/fifo.c
rdb44590c r11925eef 19 19 #endif 20 20 21 #include <sys/param.h> 21 22 #include <errno.h> 22 23 #include <stdlib.h> … … 29 30 30 31 #include "pipe.h" 31 32 33 #define MIN(a, b) ((a) < (b)? (a): (b))34 32 35 33 #define LIBIO_ACCMODE(_iop) ((_iop)->flags & LIBIO_FLAGS_READ_WRITE) -
cpukit/libmisc/untar/untar.c
rdb44590c r11925eef 24 24 #endif 25 25 26 #include <sys/param.h> 26 27 #include <stdio.h> 27 28 #include <string.h> … … 66 67 67 68 #define MAX_NAME_FIELD_SIZE 99 68 69 #define MIN(a,b) ((a)>(b)?(b):(a))70 71 69 72 70 /************************************************************************** -
cpukit/librpc/src/rpc/svc_udp.c
rdb44590c r11925eef 46 46 #endif 47 47 48 #include <sys/param.h> 48 49 #include <stdio.h> 49 50 #include <stdlib.h> … … 55 56 56 57 #define rpc_buffer(xprt) ((xprt)->xp_p1) 57 #define MAX(a, b) ((a > b) ? a : b)58 58 59 59 static bool_t svcudp_recv(SVCXPRT *xprt, struct rpc_msg *msg); -
cpukit/pppd/pppd.h
rdb44590c r11925eef 26 26 #include <stdio.h> /* for FILE */ 27 27 #include <limits.h> /* for NGROUPS_MAX */ 28 #include <sys/param.h> /* for MAXPATHLEN and BSD4_4, if defined */28 #include <sys/param.h> 29 29 #include <sys/types.h> /* for uint32_t, if defined */ 30 30 #include <sys/time.h> /* for struct timeval */ … … 654 654 #endif /* SIGTYPE */ 655 655 656 #ifndef MIN657 #define MIN(a, b) ((a) < (b)? (a): (b))658 #endif659 #ifndef MAX660 #define MAX(a, b) ((a) > (b)? (a): (b))661 #endif662 663 656 #endif /* __PPP_H__ */ -
testsuites/psxtests/psxaio02/init.c
rdb44590c r11925eef 31 31 32 32 #define BUFSIZE 32 33 #define MAX1033 #define FD_COUNT 10 34 34 #define WRONG_FD 666 35 35 … … 60 60 POSIX_Init (void *argument) 61 61 { 62 int fd[ MAX];63 struct aiocb *aiocbp[ MAX+1];62 int fd[FD_COUNT]; 63 struct aiocb *aiocbp[FD_COUNT+1]; 64 64 int status, i, policy = SCHED_FIFO; 65 65 char filename[BUFSIZE]; … … 80 80 puts ("Init: Open files"); 81 81 82 for (i=0; i< MAX; i++)82 for (i=0; i<FD_COUNT; i++) 83 83 { 84 84 sprintf (filename, "/tmp/aio_fildes%d",i); … … 176 176 TEST_END(); 177 177 178 for (i = 0; i < MAX; i++)178 for (i = 0; i < FD_COUNT; i++) 179 179 { 180 180 close (fd[i]); -
testsuites/psxtests/psxaio03/init.c
rdb44590c r11925eef 31 31 void free_aiocb(struct aiocb *aiocbp); 32 32 33 #define MAX633 #define FD_COUNT 6 34 34 #define BUFSIZE 128 35 35 … … 61 61 POSIX_Init (void *argument) 62 62 { 63 int fd[ MAX];64 struct aiocb *aiocbp[ MAX+1];63 int fd[FD_COUNT]; 64 struct aiocb *aiocbp[FD_COUNT+1]; 65 65 int status, i, policy = SCHED_FIFO; 66 66 char filename[BUFSIZE]; … … 81 81 puts (" Init: Open files "); 82 82 83 for (i=0; i< MAX; i++)83 for (i=0; i<FD_COUNT; i++) 84 84 { 85 85 sprintf (filename, "/tmp/aio_fildes%d",i); … … 132 132 TEST_END(); 133 133 134 for (i = 0; i < MAX; i++)134 for (i = 0; i < FD_COUNT; i++) 135 135 { 136 136 close (fd[i]); -
testsuites/samples/fileio/init.c
rdb44590c r11925eef 14 14 #define CONFIGURE_INIT 15 15 #include "system.h" 16 #include <sys/param.h> 16 17 #include <crypt.h> 17 18 #include <stdio.h> … … 214 215 } 215 216 }; 216 217 #ifndef MIN218 #define MIN(a,b) (((a) > (b)) ? (b) : (a))219 #endif220 217 221 218 #define USE_SHELL -
testsuites/sptests/sp48/init.c
rdb44590c r11925eef 21 21 rtems_task Init(rtems_task_argument ignored); 22 22 23 #define MAX500024 rtems_id Semaphores[ MAX];23 #define SEMA_COUNT 5000 24 rtems_id Semaphores[SEMA_COUNT]; 25 25 26 26 rtems_task Init(rtems_task_argument ignored) … … 36 36 malloc_free_space() 37 37 ); 38 for (i=0 ; i< MAX; i++ ) {38 for (i=0 ; i<SEMA_COUNT ; i++ ) { 39 39 sc = rtems_semaphore_create( 40 40 rtems_build_name('s', 'e', 'm', ' '), … … 58 58 59 59 created = i; 60 if ( created == MAX)60 if ( created == SEMA_COUNT ) 61 61 puts( "Created all semaphores allowed in this test" ); 62 62 -
testsuites/sptests/sp63/init.c
rdb44590c r11925eef 24 24 void test_case_three(void); 25 25 26 #define MAX 256 27 uint32_t Memory[MAX]; 26 uint32_t Memory[256]; 28 27 Heap_Control Heap; 29 28
Note: See TracChangeset
for help on using the changeset viewer.