Changeset 7faabb7 in mainline for kernel/generic/include/proc/thread.h


Ignore:
Timestamp:
2008-11-07T23:16:28Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24345a5
Parents:
86e3d62
Message:

Fix sys_thread_create(): could fail when passed name was at end of mapping, could crash if provided name was not null-terminated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/proc/thread.h

    r86e3d62 r7faabb7  
    260260
    261261/* Thread syscall prototypes. */
    262 extern unative_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name, thread_id_t *uspace_thread_id);
     262extern unative_t sys_thread_create(uspace_arg_t *uspace_uarg,
     263    char *uspace_name, size_t name_len, thread_id_t *uspace_thread_id);
    263264extern unative_t sys_thread_exit(int uspace_status);
    264265extern unative_t sys_thread_get_id(thread_id_t *uspace_thread_id);
Note: See TracChangeset for help on using the changeset viewer.