Changeset 566 for trunk/kernel/syscalls/syscalls.h
- Timestamp:
- Oct 4, 2018, 11:50:21 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/syscalls.h
r527 r566 36 36 struct mmap_attr_s; // defined in vmm.h 37 37 38 // debug:39 const char * syscall_str( syscalls_t index );40 41 38 /****************************************************************************************** 42 39 * [0] This function terminates the execution of the calling user thread, … … 67 64 * on astructure containing the thread attributes, defined in thread.h file. 68 65 ****************************************************************************************** 69 * @ new_thread : [out] local pointer on created thread descriptor.66 * @ trdid_ptr : [out] pointer on buffer for created thread trdid. 70 67 * @ user_attr : [in] pointer on thread attributes structure. 71 68 * @ start_func : [in] pointer on start function. … … 73 70 * @ return 0 if success / return -1 if failure. 74 71 *****************************************************************************************/ 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 ); 72 int sys_thread_create( trdid_t * trdid_ptr, 73 struct pthread_attr_s * user_attr, 74 void * start_func, 75 void * start_args ); 80 76 81 77 /****************************************************************************************** … … 133 129 /****************************************************************************************** 134 130 * [7] This function implement all operations on a POSIX condition variable. 135 * The kernel structure representing a cond _var is defined in the remote_cv.h file,136 * The code implementing the operations is defined in the remote_c v.c file.131 * The kernel structure representing a condvar is defined in the remote_condvar.h file, 132 * The code implementing the operations is defined in the remote_condvar.c file. 137 133 ****************************************************************************************** 138 134 * @ vaddr : condvar virtual address in user space == identifier. … … 205 201 * @ return file descriptor index in fd_array if success / return -1 if failure. 206 202 *****************************************************************************************/ 207 int sys_open( c onst char* pathname,203 int sys_open( char * pathname, 208 204 uint32_t flags, 209 205 uint32_t mode ); … … 280 276 * @ return 0 if success / returns -1 if failure. 281 277 *****************************************************************************************/ 282 int sys_unlink( c onst char * pathname );278 int sys_unlink( char * pathname ); 283 279 284 280 /****************************************************************************************** … … 299 295 * @ return 0 if success / returns -1 if failure. 300 296 *****************************************************************************************/ 301 int sys_chdir( c onst char * pathname );297 int sys_chdir( char * pathname ); 302 298 303 299 /****************************************************************************************** … … 387 383 * @ return 0 if success / returns -1 if failure. 388 384 *****************************************************************************************/ 389 int sys_rmdir( c onst char * pathname );385 int sys_rmdir( char * pathname ); 390 386 391 387 /****************************************************************************************** … … 408 404 * @ return 0 if success / returns -1 if failure. 409 405 *****************************************************************************************/ 410 int sys_chmod( c onst char* pathname,406 int sys_chmod( char * pathname, 411 407 uint32_t rights ); 412 408 … … 494 490 * @ does not return if success / returns -1 if failure. 495 491 *****************************************************************************************/ 496 int sys_exec( c onst char * filename,497 char 498 char 492 int sys_exec( char * filename, 493 char ** argv, 494 char ** envp ); 499 495 500 496 /****************************************************************************************** … … 506 502 * @ returns O if success / returns -1 if failure. 507 503 *****************************************************************************************/ 508 int sys_stat( c onst char* pathname,504 int sys_stat( char * pathname, 509 505 struct stat * stat ); 510 506 … … 538 534 * @ x_size : [out] number of clusters in a row. 539 535 * @ y_size : [out] number of clusters in a column. 540 * @ y_width : [out] number of bits in Y field for CXY.541 536 * @ ncores : [out] number of cores per cluster. 542 537 * @ return 0 if success / return -1 if illegal arguments … … 544 539 int sys_get_config( uint32_t * x_size, 545 540 uint32_t * y_size, 546 uint32_t * y_width,547 541 uint32_t * ncores ); 548 542
Note: See TracChangeset
for help on using the changeset viewer.