Ignore:
Timestamp:
Aug 2, 2018, 11:47:13 AM (3 years ago)
Author:
alain
Message:

This version modifies the exec syscall and fixes a large number of small bugs.
The version number has been updated (0.1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/libalmosmkh/almosmkh.c

    r445 r457  
    2424#include <almosmkh.h>
    2525#include <hal_user.h>
    26 #include <hal_types.h>
     26#include <hal_shared_types.h>
    2727#include <syscalls_numbers.h>
    2828#include <string.h>
     
    3939    return hal_user_syscall( SYS_FG,
    4040                             (reg_t)pid, 0, 0, 0 );
     41}
     42
     43//////////////////////////////
     44int is_fg( unsigned int   pid,
     45           unsigned int * owner )
     46{
     47    return hal_user_syscall( SYS_IS_FG,
     48                             (reg_t)pid,
     49                             (reg_t)owner, 0, 0 );
    4150}
    4251
     
    224233//////////////////////////////////
    225234int trace( unsigned int active,
    226            unsigned int pid,
     235           unsigned int cxy,
    227236           unsigned int lid )
    228237{
    229238    return hal_user_syscall( SYS_TRACE,
    230239                             (reg_t)active,
    231                              (reg_t)pid,
     240                             (reg_t)cxy,
    232241                             (reg_t)lid, 0 );
    233242}
     
    316325
    317326
    318 ///////////////    non standard debug functions    //////////////////////////
     327///////////////    non standard malloc functions    //////////////////////////
    319328
    320329#define  MALLOC_DEBUG  0
Note: See TracChangeset for help on using the changeset viewer.