Changeset 6ea9a1d in mainline for uspace/app/bdsh/scli.c
- Timestamp:
- 2011-06-11T22:32:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36ab7c7
- Parents:
- ae45201
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/scli.c
rae45201 r6ea9a1d 42 42 /* See scli.h */ 43 43 static cliuser_t usr; 44 static iostate_t *iostate; 45 static iostate_t stdiostate; 44 46 45 47 /* Globals that are modified during start-up that modules/builtins … … 82 84 } 83 85 86 iostate_t *get_iostate(void) 87 { 88 return iostate; 89 } 90 91 92 void set_iostate(iostate_t *ios) 93 { 94 iostate = ios; 95 stdin = ios->stdin; 96 stdout = ios->stdout; 97 stderr = ios->stderr; 98 } 99 84 100 int main(int argc, char *argv[]) 85 101 { 86 102 int ret = 0; 103 104 stdiostate.stdin = stdin; 105 stdiostate.stdout = stdout; 106 stdiostate.stderr = stderr; 107 iostate = &stdiostate; 87 108 88 109 if (cli_init(&usr))
Note:
See TracChangeset
for help on using the changeset viewer.