Changeset d9fae235 in mainline for uspace/app/sbi/src/os/helenos.c


Ignore:
Timestamp:
2010-04-17T01:28:38Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9d6bfa5
Parents:
9256ad29
Message:

sysinfo overhaul

  • cleanup (nicer data structures, use of SLAB allocator)
  • add support for storing arbitrary binary data
  • properly reimplement non-constant values (generated by functions)
  • add support for non-constant subtrees (generated by functions)
  • syscall ABI change, libc API change
  • reflect changes in user code

libc: task_spawn() can now return error code

  • reflect change in user code, print error strings after failed task_spawn()

uspace cleanup

  • more use of string and other constants
  • more use of str_error()
  • unify error reporting in init
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/os/helenos.c

    r9256ad29 rd9fae235  
    3535#include <task.h>
    3636#include <tinput.h>
     37#include <str_error.h>
    3738
    3839#include "os.h"
     
    154155        int retval;
    155156
    156         tid = task_spawn(cmd[0], (char const * const *) cmd);
     157        tid = task_spawn(cmd[0], (char const * const *) cmd, &retval);
    157158        if (tid == 0) {
    158                 printf("Error: Failed spawning '%s'.\n", cmd[0]);
     159                printf("Error: Failed spawning '%s' (%s).\n", cmd[0],
     160                    str_error(retval));
    159161                exit(1);
    160162        }
Note: See TracChangeset for help on using the changeset viewer.