- Timestamp:
- 2011-08-28T18:48:21Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 19fc04c
- Parents:
- dc6b148
- Location:
- uspace
- Files:
-
- 7 edited
-
app/sysinfo/sysinfo.c (modified) (3 diffs)
-
app/trace/syscalls.c (modified) (1 diff)
-
lib/c/generic/sysinfo.c (modified) (1 diff)
-
lib/c/include/bool.h (modified) (1 diff)
-
lib/c/include/sysinfo.h (modified) (1 diff)
-
lib/c/include/task.h (modified) (1 diff)
-
lib/c/include/thread.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinfo/sysinfo.c
rdc6b148 r9a426d1f 51 51 int rc; 52 52 char *ipath; 53 sysinfo_item_ tag_t tag;53 sysinfo_item_val_type_t tag; 54 54 55 55 if (argc != 2) { … … 60 60 ipath = argv[1]; 61 61 62 tag = sysinfo_get_ tag(ipath);62 tag = sysinfo_get_val_type(ipath); 63 63 64 64 /* Silence warning */ … … 75 75 case SYSINFO_VAL_DATA: 76 76 rc = print_item_data(ipath); 77 break; 78 default: 79 printf("Error: Sysinfo item '%s' with unknown value type.\n", 80 ipath); 81 rc = 2; 77 82 break; 78 83 } -
uspace/app/trace/syscalls.c
rdc6b148 r9a426d1f 75 75 [SYS_UNREGISTER_IRQ] = { "unregister_irq", 2, V_ERRNO }, 76 76 77 [SYS_SYSINFO_GET_ TAG] = { "sysinfo_get_tag", 2, V_INTEGER },77 [SYS_SYSINFO_GET_VAL_TYPE] = { "sysinfo_get_val_type", 2, V_INTEGER }, 78 78 [SYS_SYSINFO_GET_VALUE] = { "sysinfo_get_value", 3, V_ERRNO }, 79 79 [SYS_SYSINFO_GET_DATA_SIZE] = { "sysinfo_get_data_size", 3, V_ERRNO }, -
uspace/lib/c/generic/sysinfo.c
rdc6b148 r9a426d1f 47 47 * 48 48 */ 49 sysinfo_item_ tag_t sysinfo_get_tag(const char *path)49 sysinfo_item_val_type_t sysinfo_get_val_type(const char *path) 50 50 { 51 return (sysinfo_item_ tag_t) __SYSCALL2(SYS_SYSINFO_GET_TAG,51 return (sysinfo_item_val_type_t) __SYSCALL2(SYS_SYSINFO_GET_VAL_TYPE, 52 52 (sysarg_t) path, (sysarg_t) str_size(path)); 53 53 } -
uspace/lib/c/include/bool.h
rdc6b148 r9a426d1f 37 37 38 38 #include <libarch/types.h> 39 #include <abi/bool.h> 39 40 40 41 #define false 0 41 42 #define true 1 42 43 typedef uint8_t bool;44 43 45 44 #endif -
uspace/lib/c/include/sysinfo.h
rdc6b148 r9a426d1f 36 36 #define LIBC_SYSINFO_H_ 37 37 38 #include <libc.h> 38 #include <sys/types.h> 39 #include <bool.h> 40 #include <abi/sysinfo.h> 39 41 40 /** Sysinfo value types 41 * 42 */ 43 typedef enum { 44 SYSINFO_VAL_UNDEFINED = 0, 45 SYSINFO_VAL_VAL = 1, 46 SYSINFO_VAL_DATA = 2 47 } sysinfo_item_tag_t; 48 49 extern sysinfo_item_tag_t sysinfo_get_tag(const char *); 42 extern sysinfo_item_val_type_t sysinfo_get_val_type(const char *); 50 43 extern int sysinfo_get_value(const char *, sysarg_t *); 51 44 extern void *sysinfo_get_data(const char *, size_t *); -
uspace/lib/c/include/task.h
rdc6b148 r9a426d1f 37 37 38 38 #include <sys/types.h> 39 40 typedef uint64_t task_id_t; 39 #include <abi/proc/task.h> 41 40 42 41 typedef enum { -
uspace/lib/c/include/thread.h
rdc6b148 r9a426d1f 38 38 #include <libarch/thread.h> 39 39 #include <sys/types.h> 40 41 typedef uint64_t thread_id_t; 40 #include <abi/proc/thread.h> 42 41 43 42 extern int thread_create(void (*)(void *), void *, const char *, thread_id_t *);
Note:
See TracChangeset
for help on using the changeset viewer.
