Changeset 371bd7d in mainline for uspace/app/getterm
- Timestamp:
- 2010-03-27T09:22:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36a75a2
- Parents:
- cd82bb1 (diff), eaf22d4 (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/getterm
- Files:
-
- 7 moved
-
Makefile (moved) (moved from uspace/app/redir/Makefile.common ) (2 diffs)
-
Makefile.build (moved) (moved from uspace/app/getvc/Makefile.build )
-
Makefile.common (moved) (moved from uspace/app/getvc/Makefile.common )
-
getterm.c (moved) (moved from uspace/app/getvc/getvc.c ) (3 diffs)
-
getterm.h (moved) (moved from uspace/app/getvc/getvc.h ) (2 diffs)
-
version.c (moved) (moved from uspace/app/getvc/version.c ) (2 diffs)
-
version.h (moved) (moved from uspace/app/getvc/version.h ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/getterm/Makefile
rcd82bb1 r371bd7d 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 30 USPACE_PREFIX = ../.. 31 DEFS = -DRELEASE=$(RELEASE) "-DNAME=$(NAME)" 32 BINARY = getterm 29 33 30 ## Common names 31 # 34 SOURCES = \ 35 getterm.c \ 36 version.c 32 37 33 LIBC_PREFIX = ../../lib/libc 34 SOFTINT_PREFIX = ../../lib/softint 35 LIBS = $(LIBC_PREFIX)/libc.a 36 37 DEPEND = Makefile.depend 38 DEPEND_PREV = $(DEPEND).prev 39 OUTPUT = redir 38 include $(USPACE_PREFIX)/Makefile.common -
uspace/app/getterm/getterm.c
rcd82bb1 r371bd7d 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 … … 69 69 } 70 70 71 static task_id_t spawn(c har *fname)71 static task_id_t spawn(const char *fname) 72 72 { 73 c har *args[2];73 const char *args[2]; 74 74 75 75 args[0] = fname; -
uspace/app/getterm/getterm.h
rcd82bb1 r371bd7d 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
rcd82bb1 r371bd7d 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 42 static c har *release = STRING(RELEASE);43 static c har *name = STRING(NAME);44 static c har *arch = STRING(UARCH);42 static const char *release = STRING(RELEASE); 43 static const char *name = STRING(NAME); 44 static const char *arch = STRING(UARCH); 45 45 46 46 #ifdef REVISION 47 static c har *revision = ", revision " STRING(REVISION);47 static const char *revision = ", revision " STRING(REVISION); 48 48 #else 49 static c har *revision = "";49 static const char *revision = ""; 50 50 #endif 51 51 52 52 #ifdef TIMESTAMP 53 static c har *timestamp = "\nBuilt on " STRING(TIMESTAMP);53 static const char *timestamp = "\nBuilt on " STRING(TIMESTAMP); 54 54 #else 55 static c har *timestamp = "";55 static const char *timestamp = ""; 56 56 #endif 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
rcd82bb1 r371bd7d 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
Note:
See TracChangeset
for help on using the changeset viewer.
