Changeset d9fae235 in mainline for uspace/lib/c/include/sysinfo.h


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/lib/c/include/sysinfo.h

    r9256ad29 rd9fae235  
    3131 */
    3232/** @file
    33  */ 
     33 */
    3434
    3535#ifndef LIBC_SYSINFO_H_
     
    3737
    3838#include <libc.h>
    39 #include <sysinfo.h>
    40 #include <str.h>
    4139
    42 sysarg_t sysinfo_value(const char *name);
     40typedef enum {
     41        SYSINFO_VAL_UNDEFINED = 0,
     42        SYSINFO_VAL_VAL = 1,
     43        SYSINFO_VAL_DATA = 2
     44} sysinfo_item_tag_t;
     45
     46extern sysinfo_item_tag_t sysinfo_get_tag(const char *);
     47extern int sysinfo_get_value(const char *, sysarg_t *);
     48extern void *sysinfo_get_data(const char *, size_t *);
    4349
    4450#endif
Note: See TracChangeset for help on using the changeset viewer.