Changeset b4ca0a9c in mainline for uspace/app
- Timestamp:
- 2012-07-10T11:53:50Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1e01a35
- Parents:
- a33706e (diff), 33fc3ae (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. - Location:
- uspace/app
- Files:
-
- 6 added
- 12 edited
-
devctl/devctl.c (modified) (2 diffs)
-
killall/killall.c (modified) (1 diff)
-
loc/loc.c (modified) (2 diffs)
-
msim/Makefile (added)
-
msim/Makefile.msim.src (added)
-
msim/arch_helenos/helenos.h (added)
-
msim/arch_helenos/input.c (added)
-
msim/arch_helenos/misc.c (added)
-
msim/config.h.msim (added)
-
nettest1/nettest1.c (modified) (1 diff)
-
nettest2/nettest2.c (modified) (1 diff)
-
sbi/src/mytypes.h (modified) (1 diff)
-
sysinfo/sysinfo.c (modified) (1 diff)
-
tester/hw/misc/virtchar1.c (modified) (3 diffs)
-
tester/mm/common.c (modified) (1 diff)
-
tester/mm/mapping1.c (modified) (1 diff)
-
trace/proto.h (modified) (3 diffs)
-
websrv/websrv.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/devctl/devctl.c
ra33706e rb4ca0a9c 44 44 #define MAX_NAME_LENGTH 1024 45 45 46 char name[MAX_NAME_LENGTH]; 47 char drv_name[MAX_NAME_LENGTH]; 48 46 49 static int fun_subtree_print(devman_handle_t funh, int lvl) 47 50 { 48 char name[MAX_NAME_LENGTH];49 51 devman_handle_t devh; 50 52 devman_handle_t *cfuns; … … 57 59 58 60 rc = devman_fun_get_name(funh, name, MAX_NAME_LENGTH); 59 if (rc != EOK) { 60 str_cpy(name, MAX_NAME_LENGTH, "unknown"); 61 return ENOMEM; 62 } 61 if (rc != EOK) 62 return ELIMIT; 63 63 64 64 if (name[0] == '\0') 65 65 str_cpy(name, MAX_NAME_LENGTH, "/"); 66 66 67 printf("%s (%" PRIun ")\n", name, funh); 67 rc = devman_fun_get_driver_name(funh, drv_name, MAX_NAME_LENGTH); 68 if (rc != EOK && rc != EINVAL) 69 return ELIMIT; 70 71 if (rc == EINVAL) 72 printf("%s\n", name); 73 else 74 printf("%s : %s\n", name, drv_name); 68 75 69 76 rc = devman_fun_get_child(funh, &devh); -
uspace/app/killall/killall.c
ra33706e rb4ca0a9c 36 36 #include <errno.h> 37 37 #include <stdio.h> 38 #include <unistd.h> 38 39 #include <task.h> 39 40 #include <stats.h> -
uspace/app/loc/loc.c
ra33706e rb4ca0a9c 48 48 size_t svc_cnt; 49 49 char *svc_name; 50 char *server_name; 50 51 int rc; 51 52 size_t j; 52 53 53 printf("%s (%" PRIun "):\n", cat_name, cat_id);54 printf("%s:\n", cat_name); 54 55 55 56 rc = loc_category_get_svcs(cat_id, &svc_ids, &svc_cnt); … … 67 68 continue; 68 69 } 69 printf("\t%s (%" PRIun ")\n", svc_name, svc_ids[j]); 70 71 rc = loc_service_get_server_name(svc_ids[j], &server_name); 72 if (rc != EOK && rc != EINVAL) { 73 free(svc_name); 74 printf(NAME ": Unknown service name (SID %" 75 PRIun ").\n", svc_ids[j]); 76 continue; 77 } 78 79 if (rc == EOK) 80 printf("\t%s : %s\n", svc_name, server_name); 81 else 82 printf("\t%s\n", svc_name); 83 70 84 free(svc_name); 85 free(server_name); 71 86 } 72 87 -
uspace/app/nettest1/nettest1.c
ra33706e rb4ca0a9c 40 40 #include <malloc.h> 41 41 #include <stdio.h> 42 #include <unistd.h> 42 43 #include <str.h> 43 44 #include <task.h> -
uspace/app/nettest2/nettest2.c
ra33706e rb4ca0a9c 40 40 #include <malloc.h> 41 41 #include <stdio.h> 42 #include <unistd.h> 42 43 #include <str.h> 43 44 #include <task.h> -
uspace/app/sbi/src/mytypes.h
ra33706e rb4ca0a9c 51 51 /** Error return codes. */ 52 52 #include <errno.h> 53 /** We need NULL defined. */ 54 #include <unistd.h> 53 55 #define EOK 0 54 56 -
uspace/app/sysinfo/sysinfo.c
ra33706e rb4ca0a9c 36 36 #include <errno.h> 37 37 #include <stdio.h> 38 #include <unistd.h> 38 39 #include <sysinfo.h> 39 40 #include <malloc.h> -
uspace/app/tester/hw/misc/virtchar1.c
ra33706e rb4ca0a9c 48 48 #include "../../tester.h" 49 49 50 #define DEVICE_PATH_NORMAL "/loc/devices/\\virt\\null\\a" 51 #define BUFFER_SIZE 64 50 #define DEVICE_PATH_NORMAL "/loc/devices/\\virt\\null\\a" 51 52 #define BUFFER_SIZE 64 52 53 53 54 static const char *test_virtchar1_internal(const char *path) … … 65 66 66 67 TPRINTF(" ...file handle %d\n", fd); 67 68 68 69 TPRINTF(" Asking for session...\n"); 69 70 async_sess_t *sess = fd_session(EXCHANGE_SERIALIZE, fd); … … 96 97 97 98 const char *test_virtchar1(void) 98 {; 99 const char *res; 100 101 res = test_virtchar1_internal(DEVICE_PATH_NORMAL); 102 if (res != NULL) { 99 { 100 const char *res = test_virtchar1_internal(DEVICE_PATH_NORMAL); 101 if (res != NULL) 103 102 return res; 104 } 105 103 106 104 return NULL; 107 105 } -
uspace/app/tester/mm/common.c
ra33706e rb4ca0a9c 342 342 link_initialize(&area->link); 343 343 344 area->addr = as_area_create( (void *) -1, size,344 area->addr = as_area_create(AS_AREA_ANY, size, 345 345 AS_AREA_WRITE | AS_AREA_READ); 346 if (area->addr == (void *) -1) {346 if (area->addr == AS_MAP_FAILED) { 347 347 free(area); 348 348 check_consistency("map_area (a)"); -
uspace/app/tester/mm/mapping1.c
ra33706e rb4ca0a9c 42 42 TPRINTF("Creating AS area...\n"); 43 43 44 void *result = as_area_create( (void *) -1, size,44 void *result = as_area_create(AS_AREA_ANY, size, 45 45 AS_AREA_READ | AS_AREA_WRITE); 46 if (result == (void *) -1)46 if (result == AS_MAP_FAILED) 47 47 return NULL; 48 48 -
uspace/app/trace/proto.h
ra33706e rb4ca0a9c 44 44 typedef struct { 45 45 const char *name; 46 46 47 47 int argc; 48 48 val_type_t arg_type[OPER_MAX_ARGS]; 49 49 50 50 val_type_t rv_type; 51 51 52 52 int respc; 53 53 val_type_t resp_type[OPER_MAX_ARGS]; … … 57 57 /** Protocol name */ 58 58 const char *name; 59 59 60 60 /** Maps method number to operation */ 61 61 hash_table_t method_oper; … … 65 65 extern hash_table_t srv_proto; 66 66 67 void proto_init(void);68 void proto_cleanup(void);67 extern void proto_init(void); 68 extern void proto_cleanup(void); 69 69 70 void proto_register(int srv, proto_t *proto);71 proto_t *proto_get_by_srv(int srv);72 proto_t *proto_new(const char *name);73 void proto_delete(proto_t *proto);74 void proto_add_oper(proto_t *proto, int method, oper_t *oper);75 oper_t *proto_get_oper(proto_t *proto, int method);70 extern void proto_register(int, proto_t *); 71 extern proto_t *proto_get_by_srv(int); 72 extern proto_t *proto_new(const char *); 73 extern void proto_delete(proto_t *); 74 extern void proto_add_oper(proto_t *, int, oper_t *); 75 extern oper_t *proto_get_oper(proto_t *, int); 76 76 77 oper_t *oper_new(const char *name, int argc, val_type_t *arg_types, 78 val_type_t rv_type, int respc, val_type_t *resp_types); 79 80 77 extern oper_t *oper_new(const char *, int, val_type_t *, val_type_t, int, 78 val_type_t *); 81 79 82 80 #endif -
uspace/app/websrv/websrv.c
ra33706e rb4ca0a9c 36 36 #include <bool.h> 37 37 #include <errno.h> 38 #include <assert.h> 38 39 #include <stdio.h> 39 40 #include <sys/types.h>
Note:
See TracChangeset
for help on using the changeset viewer.
