Changeset 597 for trunk/libs
- Timestamp:
- Nov 10, 2018, 2:56:43 PM (6 years ago)
- Location:
- trunk/libs
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/libalmosmkh/almosmkh.c
r589 r597 219 219 } 220 220 221 //////////////////////////////// 221 //////////////////////////////////// 222 222 int display_sched( unsigned int cxy, 223 223 unsigned int lid ) … … 229 229 } 230 230 231 //////////////////////////////////////////////// /231 //////////////////////////////////////////////// 232 232 int display_cluster_processes( unsigned int cxy, 233 233 unsigned int owned ) … … 271 271 } 272 272 273 //////////////////////// 274 int display_dqdt( void ) 275 { 276 return hal_user_syscall( SYS_DISPLAY, 277 DISPLAY_DQDT, 0, 0, 0 ); 278 } 279 273 280 /////////////////////////////// 274 281 int trace( unsigned int active, … … 281 288 (reg_t)lid, 0 ); 282 289 } 283 284 ////////////////////////285 int display_dqdt( void )286 {287 return hal_user_syscall( SYS_DISPLAY,288 DISPLAY_DQDT, 0, 0, 0 );289 }290 290 291 291 ///////////////// -
trunk/libs/libalmosmkh/almosmkh.h
r589 r597 138 138 * @ return 0 if success / return -1 if illegal argument. 139 139 **************************************************************************************/ 140 int display_vmm(unsigned int cxy, unsigned int 140 int display_vmm(unsigned int cxy, unsigned int pid ); 141 141 142 142 /*************************************************************************************** … … 174 174 **************************************************************************************/ 175 175 int display_txt_processes( unsigned int txt_id ); 176 177 /*************************************************************************************** 178 * This debug syscall displays on the kernel terminal TXT0 179 * the set of busylocks hold by a thread identified by the <pid> and <trdid> arguments. 180 * It can be called by any thread running in any cluster. 181 *************************************************************************************** 182 * @ pid : [in] process identifier. 183 * @ trdid : [in] thread identifier. 184 * @ return 0 if success / return -1 if illegal arguments. 185 **************************************************************************************/ 186 int display_busylocks( unsigned int pid, 187 unsigned int trdid ); 176 188 177 189 /*************************************************************************************** -
trunk/libs/mini-libc/mman.c
r473 r597 28 28 #include <stdio.h> 29 29 30 //////////////////////////////// y30 //////////////////////////////// 31 31 int munmap( void * addr, 32 32 unsigned int size ) … … 47 47 mmap_attr_t attr; 48 48 49 attr.addr = addr; 49 // addr argument must be NULL 50 if( addr != NULL ) 51 { 52 printf("\n[ERROR] in %s : the <addr> argument must be NULL\n", __FUNCTION__ ); 53 return NULL; 54 } 55 56 //set the mmap attributes 57 attr.addr = NULL; 50 58 attr.length = length; 51 59 attr.prot = prot; -
trunk/libs/mini-libc/mman.h
r449 r597 40 40 * @ addr : requested address in virtual space / unused : should be NULL. 41 41 * @ length : requested number of bytes. 42 * @ prot : access mode .43 * @ flags : MAP_FILE / MAP_ANON / MAP_PRIVATE / MAP_SHARED.42 * @ prot : access mode bit vector (PROT_EXEC / PROT_READ / PROT_WRITE) 43 * @ flags : bit_vector (MAP_FILE / MAP_ANON / MAPREMOTE / MAP_PRIVATE / MAP_SHARED) 44 44 * @ fdid : file descriptor index (if MAP_FILE). 45 45 * @ offset : offset in file (if MAP_FILE). -
trunk/libs/mini-libc/stat.c
r457 r597 45 45 } 46 46 47 /////////////////////////////// 48 int chmod( char * pathname,47 /////////////////////////////////// 48 int chmod( char * pathname, 49 49 unsigned int rights ) 50 50 { -
trunk/libs/mini-libc/stat.h
r449 r597 77 77 int stat( const char * pathname, 78 78 struct stat * stat ); 79 79 80 #endif /* _SYS_STAT_H_ */
Note: See TracChangeset
for help on using the changeset viewer.