Changeset 2726
- Timestamp:
- Jul 18, 2006, 12:15:11 AM (19 years ago)
- Location:
- trunk/libc
- Files:
-
- 3 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libc/include/klibc/os2/fib.h
r2724 r2726 25 25 */ 26 26 27 #ifndef __ InnoTekLIBC_FastInfoBlocks_h__28 #define __ InnoTekLIBC_FastInfoBlocks_h__27 #ifndef __klibc_os2_fib_h__ 28 #define __klibc_os2_fib_h__ 29 29 30 30 #include <sys/cdefs.h> -
trunk/libc/include/sys/fmutex.h
r2723 r2726 10 10 #include <sys/cdefs.h> 11 11 #include <stdlib.h> /* need abort */ 12 #include < InnoTekLIBC/FastInfoBlocks.h>13 #include < 386/builtin.h>12 #include <klibc/fib.h> 13 #include <sys/builtin.h> 14 14 15 15 __BEGIN_DECLS -
trunk/libc/src/kNIX.os2/FastInfoBlocks.c
r1666 r2726 34 34 #define INCL_FSMACROS 35 35 #include <os2emx.h> 36 #include < InnoTekLIBC/FastInfoBlocks.h>36 #include <klibc/fib.h> 37 37 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_MISC 38 38 #include <InnoTekLIBC/logstrict.h> -
trunk/libc/src/kNIX.os2/__init.c
r2021 r2726 29 29 #include <InnoTekLIBC/sharedpm.h> 30 30 #include <InnoTekLIBC/backend.h> 31 #include < InnoTekLIBC/FastInfoBlocks.h>31 #include <klibc/fib.h> 32 32 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_INITTERM 33 33 #include <InnoTekLIBC/logstrict.h> -
trunk/libc/src/kNIX.os2/__initdll.c
r2021 r2726 40 40 #include <InnoTekLIBC/libc.h> 41 41 #include <InnoTekLIBC/backend.h> 42 #include < InnoTekLIBC/FastInfoBlocks.h>42 #include <klibc/fib.h> 43 43 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_INITTERM 44 44 #include <InnoTekLIBC/logstrict.h> -
trunk/libc/src/kNIX.os2/b_processGetPriority.c
r2254 r2726 35 35 #include <InnoTekLIBC/backend.h> 36 36 #include <InnoTekLIBC/sharedpm.h> 37 #include < InnoTekLIBC/FastInfoBlocks.h>37 #include <klibc/fib.h> 38 38 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_PROCESS 39 39 #include <InnoTekLIBC/logstrict.h> -
trunk/libc/src/kNIX.os2/b_processWait.c
r2254 r2726 49 49 #include <InnoTekLIBC/sharedpm.h> 50 50 #include <InnoTekLIBC/backend.h> 51 #include < InnoTekLIBC/FastInfoBlocks.h>51 #include <klibc/fib.h> 52 52 #include <InnoTekLIBC/fork.h> 53 53 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_PROCESS -
trunk/libc/src/kNIX.os2/b_threadSleep.c
r2254 r2726 40 40 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_THREAD 41 41 #include <InnoTekLIBC/logstrict.h> 42 #include < InnoTekLIBC/FastInfoBlocks.h>42 #include <klibc/fib.h> 43 43 #include "b_signal.h" 44 44 -
trunk/libc/src/kNIX.os2/execname.c
r1661 r2726 8 8 #include <string.h> 9 9 #include <emx/syscalls.h> 10 #include < InnoTekLIBC/FastInfoBlocks.h>10 #include <klibc/fib.h> 11 11 #include "syscalls.h" 12 12 -
trunk/libc/src/kNIX.os2/libcfork.c
r2289 r2726 47 47 #include <InnoTekLIBC/fork.h> 48 48 #include <InnoTekLIBC/sharedpm.h> 49 #include < InnoTekLIBC/FastInfoBlocks.h>49 #include <klibc/fib.h> 50 50 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_FORK 51 51 #include <InnoTekLIBC/logstrict.h> -
trunk/libc/src/kNIX.os2/safesems.c
r2307 r2726 39 39 #include "syscalls.h" 40 40 #include <sys/builtin.h> 41 #include < InnoTekLIBC/FastInfoBlocks.h>41 #include <klibc/fib.h> 42 42 #include <InnoTekLIBC/thread.h> 43 43 #include <InnoTekLIBC/backend.h> -
trunk/libc/src/kNIX.os2/signals.c
r2672 r2726 82 82 #include <InnoTekLIBC/fork.h> 83 83 #include <InnoTekLIBC/backend.h> 84 #include < InnoTekLIBC/FastInfoBlocks.h>84 #include <klibc/fib.h> 85 85 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_SIGNAL 86 86 #include <InnoTekLIBC/logstrict.h> -
trunk/libc/src/kNIX.os2/sysv_sem.c
r2298 r2726 30 30 #include <InnoTekLIBC/sharedpm.h> 31 31 #include <InnoTekLIBC/thread.h> 32 #include < InnoTekLIBC/FastInfoBlocks.h>32 #include <klibc/fib.h> 33 33 #include <InnoTekLIBC/libc.h> 34 34 #include <InnoTekLIBC/backend.h> … … 1329 1329 * having OS/2 cleanup semaphores than doing it here. 1330 1330 */ 1331 dereference: 1331 dereference: 1332 1332 __atomic_decrement_u32(&gpGlobals->cUsers); 1333 1333 gpGlobals = NULL; -
trunk/libc/src/kNIX.os2/sysv_shm.c
r2298 r2726 57 57 #include <InnoTekLIBC/sharedpm.h> 58 58 #include <InnoTekLIBC/thread.h> 59 #include < InnoTekLIBC/FastInfoBlocks.h>59 #include <klibc/fib.h> 60 60 #include <InnoTekLIBC/libc.h> 61 61 #include <InnoTekLIBC/fork.h> … … 349 349 LIBCLOG_ERROR_RETURN_INT(error); 350 350 } 351 351 352 352 error = __libc_Back_safesemMtxLock(&gpGlobals->mtx); 353 353 if (error) … … 399 399 } 400 400 struct __libc_SysV_Shm *pGlobals = gpGlobals; 401 401 402 402 error = __libc_Back_safesemMtxLock(&pGlobals->mtx); 403 403 if (error) … … 434 434 if (error) 435 435 goto done2; 436 436 437 437 /* Find free usage struct. */ 438 438 for (i = 0; i < shminfo.shmseg; i++) { … … 483 483 shmseg->shm_atime = fibGetUnixSeconds(); 484 484 shmseg->shm_nattch++; 485 485 486 486 done2: 487 487 __libc_Back_safesemMtxUnlock(&pGlobals->mtx); … … 521 521 } 522 522 struct __libc_SysV_Shm *pGlobals = gpGlobals; 523 523 524 524 error = __libc_Back_safesemMtxLock(&pGlobals->mtx); 525 525 if (error) … … 625 625 struct shmid_ds buf; 626 626 size_t bufsz; 627 627 628 628 /* IPC_SET needs to copyin the buffer before calling kern_shmctl */ 629 629 if (cmd == IPC_SET) { … … 631 631 goto done; 632 632 } 633 633 634 634 rval = kern_shmctl(shmid, cmd, (void *)&buf, &bufsz); 635 635 if (rval < 0) 636 636 goto done; 637 637 638 638 /* Cases in which we need to copyout */ 639 639 switch (cmd) { … … 760 760 } 761 761 struct __libc_SysV_Shm *pGlobals = gpGlobals; 762 762 763 763 rval = __libc_Back_safesemMtxLock(&pGlobals->mtx); 764 764 if (rval) … … 940 940 LIBCLOG_ERROR_RETURN_INT(-ENOMEM); 941 941 } 942 942 943 943 /* init globals */ 944 944 bzero(pGlobals, cb); … … 956 956 } 957 957 pGlobals->shminfo = si; 958 958 959 959 /* Set globals. */ 960 960 pSPMHdr->pSysVShm = pGlobals; -
trunk/libc/src/libc/misc/sysctl_os2.c
r2064 r2726 38 38 #include <sys/types.h> 39 39 #include <sys/time.h> 40 #include < InnoTekLIBC/FastInfoBlocks.h>40 #include <klibc/fib.h> 41 41 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_MISC 42 42 #include <InnoTekLIBC/logstrict.h> -
trunk/libc/src/libc/process/os2/fmutex-os2.c
r2723 r2726 14 14 #include <sys/fmutex.h> 15 15 #include <sys/smutex.h> 16 #include < InnoTekLIBC/FastInfoBlocks.h>16 #include <klibc/fib.h> 17 17 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_MUTEX 18 18 #include <InnoTekLIBC/logstrict.h> -
trunk/libc/src/libc/process/os2/smutex-os2.c
r2719 r2726 7 7 #include <sys/builtin.h> 8 8 #include <sys/smutex.h> 9 #include < InnoTekLIBC/FastInfoBlocks.h>9 #include <klibc/fib.h> 10 10 #include <InnoTekLIBC/backend.h> 11 11 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_MUTEX
Note:
See TracChangeset
for help on using the changeset viewer.