Changeset 457 for trunk/libs/libalmosmkh
- Timestamp:
- Aug 2, 2018, 11:47:13 AM (6 years ago)
- Location:
- trunk/libs/libalmosmkh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/libalmosmkh/almosmkh.c
r445 r457 24 24 #include <almosmkh.h> 25 25 #include <hal_user.h> 26 #include <hal_ types.h>26 #include <hal_shared_types.h> 27 27 #include <syscalls_numbers.h> 28 28 #include <string.h> … … 39 39 return hal_user_syscall( SYS_FG, 40 40 (reg_t)pid, 0, 0, 0 ); 41 } 42 43 ////////////////////////////// 44 int 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 ); 41 50 } 42 51 … … 224 233 ////////////////////////////////// 225 234 int trace( unsigned int active, 226 unsigned int pid,235 unsigned int cxy, 227 236 unsigned int lid ) 228 237 { 229 238 return hal_user_syscall( SYS_TRACE, 230 239 (reg_t)active, 231 (reg_t) pid,240 (reg_t)cxy, 232 241 (reg_t)lid, 0 ); 233 242 } … … 316 325 317 326 318 /////////////// non standard debugfunctions //////////////////////////327 /////////////// non standard malloc functions ////////////////////////// 319 328 320 329 #define MALLOC_DEBUG 0 -
trunk/libs/libalmosmkh/almosmkh.h
r450 r457 26 26 27 27 /*************************************************************************************** 28 * various the user level, ALMOS-MKH specific library. It contains:28 * This file defines an user level, ALMOS-MKH specific library, containing: 29 29 * - non standard system calls. 30 30 * - debug functions. … … 40 40 /*************************************************************************************** 41 41 * This function is used to give the process identified by the <pid> argument the 42 * exclusive ownership of the attached TXT_RXterminal.42 * exclusive ownership of its TXT terminal. 43 43 *************************************************************************************** 44 44 * @ pid : process identifier. … … 46 46 **************************************************************************************/ 47 47 int 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 **************************************************************************************/ 58 int is_fg( unsigned int pid, 59 unsigned int * owner ); 48 60 49 61 /***************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.