Ignore:
Timestamp:
Jan 8, 2007, 9:15:42 AM (19 years ago)
Author:
bird
Message:

fixed signals (requires nasm w/ patch), broken fstat, missing headers, library names, ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/src/kNIX/b_initterm.c

    r2941 r2942  
    5050 * @param   pvOS    OS specific argument.
    5151 * @param   fFlags  Initialization flags, a combination of the __LIBC_INIT_FLAGS_* \#defines.
     52 *                  __LIBC_INIT_FLAGS_PROCESS is set when doing the process init call (__libc_InitExe).
    5253 */
    5354static int __libc_back_init(uintptr_t hmod, void *pvOS, unsigned fFlags)
     
    138139        rc = __libc_back_init(hmod, pvOS, fFlags);
    139140    else
    140         /* (Might later add initialization code for every module here.) */
    141         rc = 0;
     141    {
     142#ifdef __OS2__
     143        /* Install the 16-bit signal handler. */
     144        if (fFlags & __LIBC_INIT_FLAGS_PROCESS)
     145            rc = __libc_back_signalInitExe();
     146        else
     147#endif
     148            rc = 0;
     149
     150    }
    142151    if (!rc)
    143152        LIBCLOG_RETURN_INT(0);
     
    184193 *                      When invoked via _exit() it's NULL.
    185194 * @param   fFlags      Termination flags.
    186  *                      When invoked via _exit() it's 0.
     195 *                      When invoked via _exit() it's __LIBC_INIT_FLAGS_PROCESS.
    187196 */
    188197void __libc_Back_term(uintptr_t hmod, void *pvOS, unsigned fFlags)
Note: See TracChangeset for help on using the changeset viewer.