Changeset 132ab5d1 in mainline for uspace/lib/c/generic/task.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/task.c

    r8bfb163 r132ab5d1  
    4545#include <errno.h>
    4646#include <ns.h>
    47 #include <malloc.h>
     47#include <stdlib.h>
    4848#include <libc.h>
    4949#include "private/ns.h"
     
    6969 *             program.
    7070 *
    71  * @return Zero on success or negative error code.
     71 * @return Zero on success or an error code.
    7272 */
    7373int task_set_name(const char *name)
     
    7575        assert(name);
    7676       
    77         return __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, str_size(name));
     77        return (int) __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, str_size(name));
    7878}
    7979
     
    8282 * @param task_id ID of task to kill.
    8383 *
    84  * @return Zero on success or negative error code.
     84 * @return Zero on success or an error code.
    8585 */
    8686
     
    101101 * @param argv Command-line arguments.
    102102 *
    103  * @return Zero on success or negative error code.
     103 * @return Zero on success or an error code.
    104104 *
    105105 */
     
    143143 * @param std_err File to use as stderr.
    144144 *
    145  * @return Zero on success or negative error code.
     145 * @return Zero on success or an error code.
    146146 *
    147147 */
     
    249249 * @param ap   Command-line arguments.
    250250 *
    251  * @return Zero on success or negative error code.
     251 * @return Zero on success or an error code.
    252252 *
    253253 */
     
    287287 * @param ...  Command-line arguments.
    288288 *
    289  * @return Zero on success or negative error code.
     289 * @return Zero on success or an error code.
    290290 *
    291291 */
     
    369369        assert(retval);
    370370
    371         sysarg_t rc;
     371        int rc;
    372372        async_wait_for(wait->aid, &rc);
    373373
Note: See TracChangeset for help on using the changeset viewer.