Changeset 506 for trunk/kernel/syscalls/syscalls.h
- Timestamp:
- Aug 25, 2018, 6:29:34 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/syscalls.h
r479 r506 36 36 struct mmap_attr_s; // defined in vmm.h 37 37 38 // debug: 39 const char * syscall_str( uint32_t index ); 40 38 41 /****************************************************************************************** 39 42 * [0] This function terminates the execution of the calling user thread, … … 70 73 * @ return 0 if success / return -1 if failure. 71 74 *****************************************************************************************/ 72 int sys_thread_create( struct thread_s * new_thread, 73 struct pthread_attr_s * user_attr, 74 void * start_func, 75 void * start_args ); 75 int sys_thread_create( 76 struct thread_s * new_thread, 77 const struct pthread_attr_s * user_attr, 78 const void * start_func, 79 const void * start_args ); 76 80 77 81 /****************************************************************************************** … … 201 205 * @ return file descriptor index in fd_array if success / return -1 if failure. 202 206 *****************************************************************************************/ 203 int sys_open( c har* pathname,204 uint32_t flags,205 uint32_t mode );207 int sys_open( const char * pathname, 208 uint32_t flags, 209 uint32_t mode ); 206 210 207 211 /****************************************************************************************** … … 276 280 * @ return 0 if success / returns -1 if failure. 277 281 *****************************************************************************************/ 278 int sys_unlink( c har * pathname );282 int sys_unlink( const char * pathname ); 279 283 280 284 /****************************************************************************************** … … 295 299 * @ return 0 if success / returns -1 if failure. 296 300 *****************************************************************************************/ 297 int sys_chdir( c har * pathname );301 int sys_chdir( const char * pathname ); 298 302 299 303 /****************************************************************************************** … … 383 387 * @ return 0 if success / returns -1 if failure. 384 388 *****************************************************************************************/ 385 int sys_rmdir( c har * pathname );389 int sys_rmdir( const char * pathname ); 386 390 387 391 /****************************************************************************************** … … 404 408 * @ return 0 if success / returns -1 if failure. 405 409 *****************************************************************************************/ 406 int sys_chmod( c har* pathname,407 uint32_t rights );410 int sys_chmod( const char * pathname, 411 uint32_t rights ); 408 412 409 413 /****************************************************************************************** … … 490 494 * @ does not return if success / returns -1 if failure. 491 495 *****************************************************************************************/ 492 int sys_exec( c har * filename,493 char ** argv,494 char ** envp );496 int sys_exec( const char * filename, 497 char ** argv, 498 char ** envp ); 495 499 496 500 /****************************************************************************************** … … 610 614 * @ return 0 if success / return -1 if failure. 611 615 *****************************************************************************************/ 612 int sys_thread_wakeup( void );616 int sys_thread_wakeup( trdid_t trdid ); 613 617 614 618 /******************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.