Changeset 684 for trunk/libs/mini-libc/unistd.h
- Timestamp:
- Jan 13, 2021, 12:40:22 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/unistd.h
r677 r684 75 75 * The old process descriptor, and all its threads are blocked, and marked for deletion. 76 76 * Therefore the exec syscall does not return to the calling thread in case of success. 77 * This function build an exec_info_t structure containing the new process arguments,78 * a s defined by the <arv> argument, and the new process environment variables,79 * as defined by the <envp> argument.77 * This function initializes the exec_info_t structure (embedded in process descriptor), 78 * and containing the <filename>, <args> and <envs> arguments. 79 * 80 80 * TODO : the <envs> argument is not supported yet (must be NULL). 81 81 ***************************************************************************************** 82 82 * @ filename : string pointer on .elf filename (virtual pointer in user space) 83 * @ args : array of pointers on process arguments (strings in user space)84 * @ envs : array of pointers on environment variables (strings in user space)83 * @ args : NULL terminated array of strings pointers on process arguments. 84 * @ envs : NULL terminated array of strings pointers on environment variables. 85 85 * @ does not return if success / returns -1 if failure. 86 86 ****************************************************************************************/ … … 201 201 202 202 /***************************************************************************************** 203 * This function implements the <sleep> system call. 204 * It suspends execution of the calling thread until either <seconds> have elapsed, 205 * or a signal is delivered to the thread and its action is to terminate the thread. 206 * System activity may lengthen the sleep by an indeterminate amount. 207 ***************************************************************************************** 208 * @ seconds : sleep duration in seconds. 209 * @ return 0 if success / returns number of unslept seconds if signal delivery. 210 ****************************************************************************************/ 211 unsigned int sleep( unsigned int seconds ); 212 213 /***************************************************************************************** 203 214 * This function implements the <sync> system call. 204 215 * It forces all kernel mappers (file caches) to be copied to the IOC device.
Note: See TracChangeset
for help on using the changeset viewer.