Changeset 457 for trunk/libs/libalmosmkh


Ignore:
Timestamp:
Aug 2, 2018, 11:47:13 AM (6 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)

Location:
trunk/libs/libalmosmkh
Files:
2 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
  • trunk/libs/libalmosmkh/almosmkh.h

    r450 r457  
    2626
    2727/***************************************************************************************
    28  * various the user level, ALMOS-MKH specific library. It contains:
     28 * This file defines an user level, ALMOS-MKH specific library, containing:
    2929 * - non standard system calls.
    3030 * - debug functions.
     
    4040/***************************************************************************************
    4141 * This function is used to give the process identified by the <pid> argument the
    42  * exclusive ownership of the attached TXT_RX terminal.
     42 * exclusive ownership of its TXT terminal.
    4343 ***************************************************************************************
    4444 * @ pid        : process identifier.
     
    4646 **************************************************************************************/
    4747int fg( unsigned int pid );
     48
     49/***************************************************************************************
     50 * This function stores in the buffer identified by the <owner> argument a non zero
     51 * value when the process identified by the <pid> argument is currently the exclusive
     52 * owner of its TXT terminal.
     53 ***************************************************************************************
     54 * @ pid        : [in]  process identifier.
     55 * @ owner      : [out] pointer on buffer to store the
     56 * @ returns O if success / returns -1 if process not found.
     57 **************************************************************************************/
     58int is_fg( unsigned int pid,
     59           unsigned int * owner );
    4860
    4961/***************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.