Changeset be79a663 in mainline for uspace/app
- Timestamp:
- 2011-08-19T17:37:54Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ac7c7e36
- Parents:
- d7427a7e (diff), f00af83 (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:
-
- 2 added
- 5 edited
-
bdsh/exec.c (modified) (3 diffs)
-
devctl/Makefile (added)
-
devctl/devctl.c (added)
-
lsusb/main.c (modified) (2 diffs)
-
mkbd/main.c (modified) (1 diff)
-
tester/hw/serial/serial1.c (modified) (1 diff)
-
trace/trace.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
rd7427a7e rbe79a663 40 40 #include <str_error.h> 41 41 #include <errno.h> 42 #include <vfs/vfs.h> 42 43 43 44 #include "config.h" … … 99 100 char *tmp; 100 101 int rc, retval, i; 101 fdi_node_t file_nodes[3];102 fdi_node_t *file_nodes_p[4];102 int file_handles[3]; 103 int *file_handles_p[4]; 103 104 FILE *files[3]; 104 105 … … 111 112 112 113 for (i = 0; i < 3 && files[i] != NULL; i++) { 113 if (f node(files[i], &file_nodes[i]) == EOK) {114 file_ nodes_p[i] = &file_nodes[i];114 if (fhandle(files[i], &file_handles[i]) == EOK) { 115 file_handles_p[i] = &file_handles[i]; 115 116 } 116 117 else { 117 file_ nodes_p[i] = NULL;118 file_handles_p[i] = NULL; 118 119 } 119 120 } 120 file_ nodes_p[i] = NULL;121 file_handles_p[i] = NULL; 121 122 122 rc = task_spawnvf(&tid, tmp, (const char **) argv, file_ nodes_p);123 rc = task_spawnvf(&tid, tmp, (const char **) argv, file_handles_p); 123 124 free(tmp); 124 125 -
uspace/app/lsusb/main.c
rd7427a7e rbe79a663 81 81 } 82 82 char path[MAX_PATH_LENGTH]; 83 rc = devman_ get_device_path(dev_handle, path, MAX_PATH_LENGTH);83 rc = devman_fun_get_path(dev_handle, path, MAX_PATH_LENGTH); 84 84 if (rc != EOK) { 85 85 continue; … … 120 120 } 121 121 char path[MAX_PATH_LENGTH]; 122 rc = devman_ get_device_path(hc_handle, path, MAX_PATH_LENGTH);122 rc = devman_fun_get_path(hc_handle, path, MAX_PATH_LENGTH); 123 123 if (rc != EOK) { 124 124 printf(NAME ": Error resolving path of HC with SID %" -
uspace/app/mkbd/main.c
rd7427a7e rbe79a663 240 240 241 241 char path[MAX_PATH_LENGTH]; 242 rc = devman_ get_device_path(dev_handle, path, MAX_PATH_LENGTH);242 rc = devman_fun_get_path(dev_handle, path, MAX_PATH_LENGTH); 243 243 if (rc != EOK) { 244 244 return ENOMEM; -
uspace/app/tester/hw/serial/serial1.c
rd7427a7e rbe79a663 72 72 73 73 devman_handle_t handle; 74 int res = devman_ device_get_handle("/hw/pci0/00:01.0/com1/a", &handle,74 int res = devman_fun_get_handle("/hw/pci0/00:01.0/com1/a", &handle, 75 75 IPC_FLAG_BLOCKING); 76 76 if (res != EOK) -
uspace/app/trace/trace.c
rd7427a7e rbe79a663 50 50 #include <sys/types.h> 51 51 #include <sys/typefmt.h> 52 #include <vfs/vfs.h> 52 53 53 54 #include <libc.h> … … 586 587 587 588 /* Send default files */ 588 fdi_node_t *files[4];589 fdi_node_t stdin_node;590 fdi_node_t stdout_node;591 fdi_node_t stderr_node;592 593 if ((stdin != NULL) && (f node(stdin, &stdin_node) == EOK))594 files[0] = & stdin_node;589 int *files[4]; 590 int fd_stdin; 591 int fd_stdout; 592 int fd_stderr; 593 594 if ((stdin != NULL) && (fhandle(stdin, &fd_stdin) == EOK)) 595 files[0] = &fd_stdin; 595 596 else 596 597 files[0] = NULL; 597 598 598 if ((stdout != NULL) && (f node(stdout, &stdout_node) == EOK))599 files[1] = & stdout_node;599 if ((stdout != NULL) && (fhandle(stdout, &fd_stdout) == EOK)) 600 files[1] = &fd_stdout; 600 601 else 601 602 files[1] = NULL; 602 603 603 if ((stderr != NULL) && (f node(stderr, &stderr_node) == EOK))604 files[2] = & stderr_node;604 if ((stderr != NULL) && (fhandle(stderr, &fd_stderr) == EOK)) 605 files[2] = &fd_stderr; 605 606 else 606 607 files[2] = NULL; … … 761 762 o = oper_new("open", 2, arg_def, V_INT_ERRNO, 0, resp_def); 762 763 proto_add_oper(p, VFS_IN_OPEN, o); 763 o = oper_new("open_node", 4, arg_def, V_INT_ERRNO, 0, resp_def);764 proto_add_oper(p, VFS_IN_OPEN_NODE, o);765 764 o = oper_new("read", 1, arg_def, V_ERRNO, 1, resp_def); 766 765 proto_add_oper(p, VFS_IN_READ, o);
Note:
See TracChangeset
for help on using the changeset viewer.
