Changeset 1384
- Timestamp:
- Apr 26, 2004, 2:10:35 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/testcase/libc/miscinnotek/tls.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1383 r1384 40 40 int cTLSes = 0; 41 41 int aiTLSes[1024]; 42 int i; 42 43 43 44 /* … … 48 49 { 49 50 aiTLSes[cTLSes] = __libc_TLSAlloc(); 50 if (aiTLSes[cTLSes] >=0)51 if (aiTLSes[cTLSes] < 0) 51 52 break; 52 53 cTLSes++; … … 57 58 printf("tls: error: cTLSes != max (%d != %d)\n", cTLSes, __LIBC_TLS_MAX); 58 59 cErrors++; 60 } 61 /* check for duplicates */ 62 for (i = 0; i < cTLSes; i++) 63 { 64 int j; 65 for (j = 0; j < cTLSes; j++) 66 { 67 if (i != j && aiTLSes[i] == aiTLSes[j]) 68 { 69 printf("tls: error: duplicate allocation. i=%d, j=%d, index=%d\n", 70 i, j, aiTLSes[i]); 71 cErrors++; 72 } 73 } 59 74 } 60 75 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.