Changes in kernel/generic/src/proc/thread.c [ee42e43:96b02eb9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
ree42e43 r96b02eb9 755 755 * 756 756 */ 757 unative_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name,757 sysarg_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name, 758 758 size_t name_len, thread_id_t *uspace_thread_id) 759 759 { … … 764 764 int rc = copy_from_uspace(namebuf, uspace_name, name_len); 765 765 if (rc != 0) 766 return ( unative_t) rc;766 return (sysarg_t) rc; 767 767 768 768 namebuf[name_len] = 0; … … 779 779 if (rc != 0) { 780 780 free(kernel_uarg); 781 return ( unative_t) rc;781 return (sysarg_t) rc; 782 782 } 783 783 … … 804 804 free(kernel_uarg); 805 805 806 return ( unative_t) rc;806 return (sysarg_t) rc; 807 807 } 808 808 } … … 827 827 free(kernel_uarg); 828 828 829 return ( unative_t) ENOMEM;829 return (sysarg_t) ENOMEM; 830 830 } 831 831 … … 833 833 * 834 834 */ 835 unative_t sys_thread_exit(int uspace_status)835 sysarg_t sys_thread_exit(int uspace_status) 836 836 { 837 837 thread_exit(); … … 849 849 * 850 850 */ 851 unative_t sys_thread_get_id(thread_id_t *uspace_thread_id)851 sysarg_t sys_thread_get_id(thread_id_t *uspace_thread_id) 852 852 { 853 853 /* … … 856 856 * 857 857 */ 858 return ( unative_t) copy_to_uspace(uspace_thread_id, &THREAD->tid,858 return (sysarg_t) copy_to_uspace(uspace_thread_id, &THREAD->tid, 859 859 sizeof(THREAD->tid)); 860 860 } 861 861 862 862 /** Syscall wrapper for sleeping. */ 863 unative_t sys_thread_usleep(uint32_t usec)863 sysarg_t sys_thread_usleep(uint32_t usec) 864 864 { 865 865 thread_usleep(usec);
Note:
See TracChangeset
for help on using the changeset viewer.