Changeset 299 for trunk/hal/generic


Ignore:
Timestamp:
Jul 31, 2017, 2:19:12 PM (4 years ago)
Author:
max@…
Message:

The uspace strcpy function is allowed to fail (not implemented yet).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/generic/hal_uspace.h

    r121 r299  
    6464 * This function tranfers a NUL terminated string from the user space to the kernel space.
    6565 * If the kernel uses physical addresses, it activates the MMU to access the user buffer.
    66  * TODO : implement the max_size argument handling
     66 * TODO : implement the max_size argument handling, and error handling
    6767 *****************************************************************************************
    6868 * @ u_dst     : destination buffer address in user space.
     
    7070 * @ max_size  : max number of characters to be copied.
    7171 ****************************************************************************************/
    72 extern void hal_strcpy_from_uspace( char     * k_dst,
    73                                     char     * u_src,
    74                                     uint32_t   max_size );
     72extern error_t hal_strcpy_from_uspace( char     * k_dst,
     73                                       char     * u_src,
     74                                       uint32_t   max_size );
    7575
    7676/*****************************************************************************************
    7777 * This function tranfers a NUL terminated string from the kernel space to the user space.
    7878 * If the kernel uses physical addresses, it activates the MMU to access the user buffer.
    79  * TODO : implement the max_size argument handling
     79 * TODO : implement the max_size argument handling, and error handling
    8080 *****************************************************************************************
    8181 * @ u_dst     : destination buffer address in user space.
     
    8383 * @ max_size  : max number of characters to be copied.
    8484 ****************************************************************************************/
    85 extern void hal_strcpy_to_uspace( char     * u_dst,
    86                                   char     * k_src,
    87                                   uint32_t   max_size );
     85extern error_t hal_strcpy_to_uspace( char     * u_dst,
     86                                     char     * k_src,
     87                                     uint32_t   max_size );
    8888
    8989/*****************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.