Changeset 1603


Ignore:
Timestamp:
Nov 4, 2004, 5:37:55 AM (21 years ago)
Author:
bird
Message:
  • mprotect().
  • Fixing timebomb issues.
  • removed b_fsChRoot since that's not used.
Location:
trunk/src/emx
Files:
2 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/backend.h

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r1602 r1603  
    427427/** @} */
    428428
     429
     430/** @defgroup __libc_Back_MMan      LIBC Backend - Memory Management
     431 * @{ */
     432
     433/**
     434 * Change the memory protection attributes of a range of pages.
     435 * This function supports the crossing of object boundaries and works
     436 * on any memory the native apis works on.
     437 *
     438 * @returns Negative error code (errno.h) on failure.
     439 * @param   pv      Pointer to first page - page aligned!
     440 * @param   cb      Size of the ranage - page aligned!
     441 * @param   fFlags  The PROT_* flags to replace the current flags with.
     442 */
     443int __libc_Back_mmanProtect(void *pv, size_t cb, unsigned fFlags);
     444
     445/** @} */
     446
     447
    429448__END_DECLS
    430449
  • trunk/src/emx/include/InnoTekLIBC/logstrict.h

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r1602 r1603  
    181181/** Environment APIs. */
    182182#define __LIBC_LOG_GRP_ENV          15
    183 
    184 /** Backend FS APIs. */
     183/** Memory Manager APIs. */
     184#define __LIBC_LOG_GRP_MMAN         16
     185
     186/** Backend Memory Mananger APIs. */
     187#define __LIBC_LOG_GRP_BACK_MMAN    21
     188/** Backend Loader APIs. */
    185189#define __LIBC_LOG_GRP_BACK_LDR     22
    186 /** Backend FS APIs. */
     190/** Backend Filesystem APIs. */
    187191#define __LIBC_LOG_GRP_BACK_FS      23
    188192/** Shared Process Database and LIBC Shared Memory APIs. */
  • trunk/src/emx/src/lib/libc.def

    • Property cvs2svn:cvs-rev changed from 1.70 to 1.71
    r1602 r1603  
    11871187    "___libc_Back_fsPathResolve" @1207
    11881188    "__std_canonicalize_file_name" @1208
    1189     "___libc_Back_fsChRoot" @1209
     1189;fixme!    "___libc_Back_fsChRoot" @1209
    11901190    "___libc_Back_fsDriveDefaultGet" @1210
    11911191    "___libc_Back_fsDriveDefaultSet" @1211
     
    12091209    "___lazyldr_uconv_resolver" @1231
    12101210    "___lazyldr_libuni_resolver" @1232
    1211 
     1211    "___libc_Back_mmanProtect" @1233
     1212    "__std_mprotect" @1234
  • trunk/src/emx/src/lib/sys/libcfork.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r1602 r1603  
    158158    /* this will trigger after the default one, so no message. */
    159159    if (    !DosQuerySysInfo(QSV_TIME_LOW, QSV_TIME_HIGH, &aul, sizeof(aul))
    160         &&  aul[1] == 0 && aul[0] >= 0x414a47ad && aul[0] <= 0x41859c85)
     160        &&  aul[1] == 0 && aul[0] >= 0x414a47ad && aul[0] <= 0x41859c85 + 2678400)
    161161    {
    162162        FS_RESTORE();
     
    199199    __LIBC_PSPMPROCESS  pProcess;
    200200    __LIBC_PFORKHANDLE  pForkHandle;
     201
     202#ifdef TIMEBOMB
     203    __libc_Timebomb();
     204#endif
    201205
    202206    /*
     
    218222        LIBCLOG_RETURN_INT(-1);
    219223    }
    220 #ifdef TIMEBOMB
    221     forkTimebomb();
    222 #endif
    223224
    224225    /*
     
    263264     * Are we forking?
    264265     */
     266#ifdef TIMEBOMB
     267    forkTimebomb();
     268#endif
    265269    if (!pProcess->pvForkHandle)
    266270        LIBCLOG_RETURN_INT(0);
  • trunk/src/emx/src/lib/sys/logstrict.c

    • Property cvs2svn:cvs-rev changed from 1.15 to 1.16
    r1602 r1603  
    444444            { 1, "SIGNAL" },            /* 14 */
    445445            { 1, "ENV" },               /* 15 */
    446             { 1, "future" },            /* 16 */
     446            { 1, "MMAN" },              /* 16 */
    447447            { 1, "future" },            /* 17 */
    448448            { 1, "future" },            /* 18 */
    449449            { 1, "future" },            /* 19 */
    450450            { 1, "future" },            /* 20 */
    451             { 1, "future" },            /* 21 */
     451            { 1, "BACK_MMAN" },         /* 21 */
    452452            { 1, "BACK_LDR" },          /* 22 */
    453453            { 1, "BACK_FS" },           /* 23 */
  • trunk/src/emx/src/lib/sys/timebomb.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1602 r1603  
    4545    FS_SAVE_LOAD();
    4646    DosGetDateTime(&dt);
    47     if (dt.year == 2004 && (dt.month == 9 || dt.month == 10))
     47    if (dt.year == 2004 && (dt.month == 10 || dt.month == 11 || dt.month == 12))
    4848    {
    4949        FS_RESTORE();
Note: See TracChangeset for help on using the changeset viewer.