Changeset df747bd8 in mainline
- Timestamp:
- 2009-12-16T01:59:07Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c26eb39
- Parents:
- 47a350f
- Files:
-
- 3 edited
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.common
r47a350f rdf747bd8 57 57 RD_APPS = \ 58 58 $(USPACEDIR)/app/edit/edit \ 59 $(USPACEDIR)/app/get vc/getvc\59 $(USPACEDIR)/app/getterm/getterm \ 60 60 $(USPACEDIR)/app/redir/redir \ 61 61 $(USPACEDIR)/app/tetris/tetris \ -
uspace/Makefile
r47a350f rdf747bd8 55 55 app/klog \ 56 56 app/init \ 57 app/get vc\57 app/getterm \ 58 58 app/redir \ 59 59 app/bdsh -
uspace/app/getterm/Makefile.build
r47a350f rdf747bd8 41 41 42 42 SOURCES = \ 43 get vc.c \43 getterm.c \ 44 44 version.c 45 45 -
uspace/app/getterm/Makefile.common
r47a350f rdf747bd8 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 OUTPUT = get vc39 OUTPUT = getterm -
uspace/app/getterm/getterm.c
r47a350f rdf747bd8 27 27 */ 28 28 29 /** @addtogroup get vc GetVC29 /** @addtogroup getterm GetTerm 30 30 * @brief Console initialization task. 31 31 * @{ … … 44 44 static void usage(void) 45 45 { 46 printf("Usage: get vc <device> <path>\n");46 printf("Usage: getterm <terminal> <path>\n"); 47 47 } 48 48 -
uspace/app/getterm/getterm.h
r47a350f rdf747bd8 27 27 */ 28 28 29 /** @addtogroup get vc29 /** @addtogroup getterm 30 30 * @{ 31 31 */ … … 34 34 */ 35 35 36 #ifndef GET VC_H__37 #define GET VC_H__36 #ifndef GETTERM_H__ 37 #define GETTERM_H__ 38 38 39 39 #endif -
uspace/app/getterm/version.c
r47a350f rdf747bd8 27 27 */ 28 28 29 /** @addtogroup get vc29 /** @addtogroup getterm 30 30 * @{ 31 31 */ … … 37 37 #include <stdio.h> 38 38 #include <macros.h> 39 #include "get vc.h"39 #include "getterm.h" 40 40 #include "version.h" 41 41 … … 57 57 58 58 /** Print version information. */ 59 void version_print(const char * vc)59 void version_print(const char *term) 60 60 { 61 61 printf("HelenOS release %s (%s)%s%s\n", release, name, revision, timestamp); 62 printf("Running on %s (%s)\n", arch, vc);62 printf("Running on %s (%s)\n", arch, term); 63 63 printf("Copyright (c) 2001-2009 HelenOS project\n\n"); 64 64 } -
uspace/app/getterm/version.h
r47a350f rdf747bd8 27 27 */ 28 28 29 /** @addtogroup get vc29 /** @addtogroup getterm 30 30 * @{ 31 31 */ … … 37 37 #define VERSION_H__ 38 38 39 extern void version_print(const char * vc);39 extern void version_print(const char *term); 40 40 41 41 #endif -
uspace/app/init/init.c
r47a350f rdf747bd8 53 53 54 54 #define SRV_CONSOLE "/srv/console" 55 #define APP_GET VC "/app/getvc"55 #define APP_GETTERM "/app/getterm" 56 56 57 57 static void info_print(void) … … 206 206 } 207 207 208 static void get vc(char *dev, char *app)208 static void getterm(char *dev, char *app) 209 209 { 210 210 char *argv[4]; 211 char vc[MAX_DEVICE_NAME];211 char term[MAX_DEVICE_NAME]; 212 212 int rc; 213 213 214 snprintf( vc, MAX_DEVICE_NAME, "%s/%s", DEVFS_MOUNT_POINT, dev);215 216 printf(NAME ": Spawning %s on %s\n", APP_GETVC, vc);214 snprintf(term, MAX_DEVICE_NAME, "%s/%s", DEVFS_MOUNT_POINT, dev); 215 216 printf(NAME ": Spawning %s with %s\n", APP_GETTERM, term); 217 217 218 218 /* Wait for the terminal device to be ready */ … … 221 221 222 222 if (rc == EOK) { 223 argv[0] = APP_GET VC;224 argv[1] = vc;223 argv[0] = APP_GETTERM; 224 argv[1] = term; 225 225 argv[2] = app; 226 226 argv[3] = NULL; 227 227 228 if (!task_spawn(APP_GET VC, argv))229 printf(NAME ": Error spawning %s on %s\n", APP_GETVC, vc);228 if (!task_spawn(APP_GETTERM, argv)) 229 printf(NAME ": Error spawning %s with %s\n", APP_GETTERM, term); 230 230 } else 231 printf(NAME ": Error waiting on %s\n", vc);231 printf(NAME ": Error waiting on %s\n", term); 232 232 } 233 233 … … 287 287 #endif 288 288 289 get vc("term/vc0", "/app/bdsh");290 get vc("term/vc1", "/app/bdsh");291 get vc("term/vc2", "/app/bdsh");292 get vc("term/vc3", "/app/bdsh");293 get vc("term/vc4", "/app/bdsh");294 get vc("term/vc5", "/app/bdsh");295 get vc("term/vc6", "/app/klog");289 getterm("term/vc0", "/app/bdsh"); 290 getterm("term/vc1", "/app/bdsh"); 291 getterm("term/vc2", "/app/bdsh"); 292 getterm("term/vc3", "/app/bdsh"); 293 getterm("term/vc4", "/app/bdsh"); 294 getterm("term/vc5", "/app/bdsh"); 295 getterm("term/vc6", "/app/klog"); 296 296 297 297 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.