- Timestamp:
- Dec 2, 2004, 2:42:51 AM (21 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 2 added
- 12 edited
-
include/emx/startup.h (modified) (1 diff, 1 prop)
-
include/os2emx.h (modified) (2 diffs, 1 prop)
-
include/sys/fmutex.h (modified) (1 diff, 1 prop)
-
src/lib/libc.def (modified) (1 diff, 1 prop)
-
src/lib/malloc/initr.c (modified) (1 diff, 1 prop)
-
src/lib/startup/cleanup.c (modified) (1 diff, 1 prop)
-
src/lib/startup/ctor1.c (modified) (1 diff, 1 prop)
-
src/lib/startup/startup.c (modified) (1 diff, 1 prop)
-
src/lib/sys/DosEx.c (modified) (25 diffs, 1 prop)
-
src/lib/sys/DosEx.h (modified) (3 diffs, 1 prop)
-
src/lib/sys/DosFreeModuleEx.c (added)
-
src/lib/sys/DosLoadModuleEx.c (added)
-
src/lib/sys/b_ldrClose.c (modified) (2 diffs, 1 prop)
-
src/lib/sys/b_ldrOpen.c (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/emx/startup.h
-
Property cvs2svn:cvs-rev
changed from
1.4to1.5
r1675 r1676 8 8 #endif 9 9 10 extern int _CRT_init (void); 11 extern void _CRT_term (void); 12 extern void __ctordtorInit (void); 13 extern void __ctordtorTerm (void); 10 extern int _CRT_init(void); 11 extern void _CRT_term(void); 12 extern void __ctordtorInit(void); 13 extern void __ctordtorTerm(void); 14 15 extern void __ctordtorInit1(int *); 16 extern void __ctordtorTerm1(int *); 17 18 /** init and term vectors. 19 * @{ 20 */ 21 /** Array of CRT init functions. */ 22 extern int __crtinit1__; 23 /** Array of CRT exit functions. */ 24 extern int __crtexit1__; 25 /** Array of exception handlers something. */ 26 extern int __eh_init__; 27 /** Array of exception handlers something. */ 28 extern int __eh_term__; 29 /** Array of constructors. */ 30 extern int __CTOR_LIST__; 31 /** Array of destructors. */ 32 extern int __DTOR_LIST__; 33 /** @} */ 34 14 35 15 36 /* argv[i][-1] contains some flag bits: */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/os2emx.h
-
Property cvs2svn:cvs-rev
changed from
1.25to1.26
r1675 r1676 13529 13529 APIRET APIENTRY DosCloseEventSemEx(HEV hev); 13530 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13531 13543 #ifdef INCL_EXAPIS_MAPPINGS 13532 13544 … … 13542 13554 #define DosCloseEventSem(a) DosCloseEventSemEx((a)) 13543 13555 13556 13557 13558 13544 13559 #endif /* INCL_EXAPIS_MAPPINGS */ 13545 13560 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/fmutex.h
-
Property cvs2svn:cvs-rev
changed from
1.4to1.5
r1675 r1676 100 100 } 101 101 102 103 104 105 106 107 108 109 110 111 112 102 113 103 114 unsigned _fmutex_create (_fmutex *, unsigned); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/libc.def
-
Property cvs2svn:cvs-rev
changed from
1.82to1.83
r1675 r1676 1273 1273 "_warnc" @1291 1274 1274 ; new stuff 1275 1276 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/malloc/initr.c
-
Property cvs2svn:cvs-rev
changed from
1.5to1.6
r1675 r1676 167 167 LIBCLOG_MSG("Unlocking the heaps.\n"); 168 168 if (_um_tiled_heap) 169 _ um_heap_unlock(_um_tiled_heap);169 _); 170 170 if (_um_high_heap) 171 _ um_heap_unlock(_um_high_heap);171 _); 172 172 if (_um_low_heap) 173 _ um_heap_unlock(_um_low_heap);173 _); 174 174 gfForkCleanupDone = 1; 175 175 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/cleanup.c
-
Property cvs2svn:cvs-rev
changed from
1.3to1.4
r1675 r1676 2 2 3 3 #include <stdio.h> 4 #include <emx\startup.h> 5 6 extern int __crtexit1__; 7 extern void __ctordtorTerm1 (int *ptr); 4 #include <emx/startup.h> 8 5 9 6 void _CRT_term (void) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/ctor1.c
-
Property cvs2svn:cvs-rev
changed from
1.2to1.3
r1675 r1676 2 2 3 3 #include <stdlib.h> 4 4 5 5 void __ctordtorInit1 (int *ptr);6 6 void __ctordtorInit1 (int *ptr) 7 7 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/startup.c
-
Property cvs2svn:cvs-rev
changed from
1.12to1.13
r1675 r1676 11 11 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_INITTERM 12 12 #include <InnoTekLIBC/logstrict.h> 13 14 extern int __crtinit1__;15 extern void __ctordtorInit1 (int *ptr);16 13 17 14 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/DosEx.c
-
Property cvs2svn:cvs-rev
changed from
1.6to1.7
r1675 r1676 158 158 static int dosexForkPreEventCreate(PDOSEX pEntry); 159 159 static int dosexForkPreEventOpen(PDOSEX pEntry); 160 160 161 static int dosexForkChild(__LIBC_PFORKHANDLE pForkHandle, __LIBC_FORKOP enmOperation); 161 162 static void dosexForkCleanup(void *pvArg, int rc, __LIBC_FORKCTX enmCtx); … … 192 193 * @returns OS/2 error code on failure. 193 194 */ 194 int dosexRequestMutex(void)195 int dosexRequestMutex(void) 195 196 { 196 197 LIBCLOG_ENTER("\n"); … … 227 228 * Release mutex succesfully obtained by dosexRequestMutex(). 228 229 */ 229 void dosexReleaseMutex(void)230 void dosexReleaseMutex(void) 230 231 { 231 232 LIBCLOG_ENTER("\n"); … … 255 256 * @remark Caller owns mutex. 256 257 */ 257 int dosexAllocPool(void)258 int dosexAllocPool(void) 258 259 { 259 260 LIBCLOG_ENTER("\n"); … … 495 496 * 496 497 */ 497 int dosexFreeEntry(DOSEXTYPE enmType, PDOSEX pCur, PDOSEX pPrev, PDOSEXHDR pPool)498 int dosexFreeEntry(DOSEXTYPE enmType, PDOSEX pCur, PDOSEX pPrev, PDOSEXHDR pPool) 498 499 { 499 500 int rc; … … 550 551 break; 551 552 553 554 555 556 557 558 559 560 561 562 563 564 552 565 default: 553 566 rc = ERROR_INVALID_PARAMETER; … … 714 727 * @param pForkHandle Pointer to the fork handle. 715 728 */ 716 int dosexForkOpExecParent(__LIBC_PFORKHANDLE pForkHandle)729 int dosexForkOpExecParent(__LIBC_PFORKHANDLE pForkHandle) 717 730 { 718 731 LIBCLOG_ENTER("pForkHandle=%p\n", (void *)pForkHandle); … … 833 846 * @param pForkHandle Pointer to the fork handle. 834 847 */ 835 int dosexForkOpForkParent(__LIBC_PFORKHANDLE pForkHandle)848 int dosexForkOpForkParent(__LIBC_PFORKHANDLE pForkHandle) 836 849 { 837 850 LIBCLOG_ENTER("pForkHandle=%p\n", (void *)pForkHandle); … … 885 898 * @param cbArg sizeof(DOSEXFORKCHILDALLOC). 886 899 */ 887 int dosexForkChildAlloc(__LIBC_PFORKHANDLE pForkHandle, void *pvArg, size_t cbArg)900 int dosexForkChildAlloc(__LIBC_PFORKHANDLE pForkHandle, void *pvArg, size_t cbArg) 888 901 { 889 902 LIBCLOG_ENTER("pForkHandle=%p pvArg=%p cbArg=%d\n", (void *)pForkHandle, pvArg, cbArg); … … 912 925 * @param cbArg sizeof(PDOSEXHDR). 913 926 */ 914 int dosexForkChildProcess(__LIBC_PFORKHANDLE pForkHandle, void *pvArg, size_t cbArg)927 int dosexForkChildProcess(__LIBC_PFORKHANDLE pForkHandle, void *pvArg, size_t cbArg) 915 928 { 916 929 LIBCLOG_ENTER("pForkHandle=%p pvArg=%p:{%p} cbArg=%d\n", (void *)pForkHandle, pvArg, *(void **)pvArg, cbArg); … … 961 974 if (rc) 962 975 break; 976 977 978 979 980 981 963 982 } 964 983 … … 967 986 968 987 /** 969 * Allocates the memory described in the entry.988 * Allocates the memory described in the entry. 970 989 * 971 990 * @returns 0 on success. … … 973 992 * @param pEntry Entry containing a memory allocation. 974 993 */ 975 int dosexForkPreMemAlloc(PDOSEX pEntry)994 int dosexForkPreMemAlloc(PDOSEX pEntry) 976 995 { 977 996 int rc; … … 986 1005 987 1006 /** 988 * Allocates the memory described in the entry.1007 * Allocates the memory described in the entry. 989 1008 * 990 1009 * @returns 0 on success. … … 992 1011 * @param pEntry Entry containing a memory allocation. 993 1012 */ 994 int dosexForkPreMemOpen(PDOSEX pEntry)1013 int dosexForkPreMemOpen(PDOSEX pEntry) 995 1014 { 996 1015 unsigned cOpens = pEntry->u.MemOpen.cOpens; … … 1007 1026 1008 1027 /** 1009 * Allocates the memorydescribed in the entry.1028 * described in the entry. 1010 1029 * 1011 1030 * @returns 0 on success. … … 1013 1032 * @param pEntry Entry containing a memory allocation. 1014 1033 */ 1015 int dosexForkPreMutexCreate(PDOSEX pEntry)1034 int dosexForkPreMutexCreate(PDOSEX pEntry) 1016 1035 { 1017 1036 int i; … … 1084 1103 1085 1104 /** 1086 * Allocates the memorydescribed in the entry.1105 * described in the entry. 1087 1106 * 1088 1107 * @returns 0 on success. … … 1090 1109 * @param pEntry Entry containing a memory allocation. 1091 1110 */ 1092 int dosexForkPreMutexOpen(PDOSEX pEntry)1111 int dosexForkPreMutexOpen(PDOSEX pEntry) 1093 1112 { 1094 1113 int cOpens = pEntry->u.MutexOpen.cOpens; … … 1105 1124 1106 1125 /** 1107 * Allocates the memorydescribed in the entry.1126 * described in the entry. 1108 1127 * 1109 1128 * @returns 0 on success. … … 1111 1130 * @param pEntry Entry containing a memory allocation. 1112 1131 */ 1113 int dosexForkPreEventCreate(PDOSEX pEntry)1132 int dosexForkPreEventCreate(PDOSEX pEntry) 1114 1133 { 1115 1134 int i; … … 1182 1201 1183 1202 /** 1184 * Allocates the memorydescribed in the entry.1203 * described in the entry. 1185 1204 * 1186 1205 * @returns 0 on success. … … 1188 1207 * @param pEntry Entry containing a memory allocation. 1189 1208 */ 1190 int dosexForkPreEventOpen(PDOSEX pEntry)1209 int dosexForkPreEventOpen(PDOSEX pEntry) 1191 1210 { 1192 1211 int cOpens = pEntry->u.EventOpen.cOpens; … … 1195 1214 int rc = DosOpenEventSem(NULL, &pEntry->u.EventOpen.hev); 1196 1215 LIBC_ASSERTM(!rc, "DosOpenEventSem(,%#lx) -> rc=%d\n", pEntry->u.EventOpen.hev, rc); 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1197 1254 if (rc) 1198 1255 return -__libc_native2errno(rc); … … 1264 1321 } 1265 1322 1266 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/DosEx.h
-
Property cvs2svn:cvs-rev
changed from
1.2to1.3
r1675 r1676 49 49 /** Event open. */ 50 50 DOSEX_TYPE_EVENT_OPEN, 51 52 51 53 /** Max type (exclusive). */ 52 54 DOSEX_TYPE_MAX … … 69 71 { 70 72 /** Search key. 71 * We assume that sizeof(unsigned) == sizeof(PVOID) == sizeof(HMTX) == sizeof(HEV) .73 * We assume that sizeof(unsigned) == sizeof(PVOID) == sizeof(HMTX) == sizeof(HEV). 72 74 */ 73 75 unsigned uKey; … … 151 153 unsigned cOpens; 152 154 } EventOpen; 155 156 157 158 159 160 161 162 163 164 165 153 166 } u; 154 167 } DOSEX; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/b_ldrClose.c
-
Property cvs2svn:cvs-rev
changed from
1.1to1.2
r1675 r1676 31 31 #include "libc-alias.h" 32 32 #define INCL_BASE 33 33 34 #define INCL_FSMACROS 34 35 #include <os2emx.h> … … 50 51 FS_VAR(); 51 52 FS_SAVE_LOAD(); 52 int rc = DosFreeModule ((HMODULE)pvModule);53 int rc = DosFreeModule((HMODULE)pvModule); 53 54 FS_RESTORE(); 54 55 LIBCLOG_RETURN_INT(rc); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/b_ldrOpen.c
-
Property cvs2svn:cvs-rev
changed from
1.1to1.2
r1675 r1676 32 32 #define INCL_BASE 33 33 #define INCL_FSMACROS 34 34 35 #include <os2emx.h> 35 36 #include <InnoTekLIBC/backend.h> … … 55 56 FS_VAR(); 56 57 FS_SAVE_LOAD(); 57 int rc = DosLoadModule ((PSZ)pszError, cchError, (PCSZ)pszLibrary, &hmod);58 int rc = DosLoadModule((PSZ)pszError, cchError, (PCSZ)pszLibrary, &hmod); 58 59 FS_RESTORE(); 59 60 if (!rc) -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
