Changeset 7715994 in mainline for uspace/app
- Timestamp:
- 2010-03-13T12:17:02Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ba20a6b
- Parents:
- d0febca (diff), 2070570 (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:
-
- 52 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/builtins/cd/cd.c
rd0febca r7715994 41 41 #include "cd.h" 42 42 43 static c har *cmdname = "cd";43 static const char *cmdname = "cd"; 44 44 45 45 void help_cmd_cd(unsigned int level) -
uspace/app/bdsh/cmds/cmds.h
rd0febca r7715994 33 33 /* Module structure */ 34 34 typedef struct { 35 c har *name;/* Name of the command */36 c har *desc;/* Description of the command */35 const char *name; /* Name of the command */ 36 const char *desc; /* Description of the command */ 37 37 mod_entry_t entry; /* Command (exec) entry function */ 38 38 mod_help_t help; /* Command (help) entry function */ … … 41 41 /* Builtin structure, same as modules except different types of entry points */ 42 42 typedef struct { 43 c har *name;44 c har *desc;43 const char *name; 44 const char *desc; 45 45 builtin_entry_t entry; 46 46 builtin_help_t help; … … 57 57 extern int is_module(const char *); 58 58 extern int is_module_alias(const char *); 59 extern char * 59 extern char *alias_for_module(const char *); 60 60 extern int help_module(int, unsigned int); 61 61 extern int run_module(int, char *[]); … … 65 65 extern int is_builtin(const char *); 66 66 extern int is_builtin_alias(const char *); 67 extern char * 67 extern char *alias_for_builtin(const char *); 68 68 extern int help_builtin(int, unsigned int); 69 69 extern int run_builtin(int, char *[], cliuser_t *); -
uspace/app/bdsh/cmds/modules/cat/cat.c
rd0febca r7715994 43 43 #include "cmds.h" 44 44 45 static c har *cmdname = "cat";45 static const char *cmdname = "cat"; 46 46 #define CAT_VERSION "0.0.1" 47 47 #define CAT_DEFAULT_BUFLEN 1024 48 48 49 static c har *cat_oops = "That option is not yet supported\n";49 static const char *cat_oops = "That option is not yet supported\n"; 50 50 51 51 static struct option const long_options[] = { -
uspace/app/bdsh/cmds/modules/help/help.c
rd0febca r7715994 42 42 #include "util.h" 43 43 44 static c har *cmdname = "help";44 static const char *cmdname = "help"; 45 45 extern const char *progname; 46 46 -
uspace/app/bdsh/cmds/modules/kcon/kcon.c
rd0febca r7715994 40 40 #include "cmds.h" 41 41 42 static c har *cmdname = "kcon";42 static const char *cmdname = "kcon"; 43 43 44 44 /* Dispays help for kcon in various levels */ -
uspace/app/bdsh/cmds/modules/ls/ls.c
rd0febca r7715994 49 49 #include "cmds.h" 50 50 51 static c har *cmdname = "ls";51 static const char *cmdname = "ls"; 52 52 53 53 static void ls_scan_dir(const char *d, DIR *dirp) -
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
rd0febca r7715994 49 49 #define MKDIR_VERSION "0.0.1" 50 50 51 static c har *cmdname = "mkdir";51 static const char *cmdname = "mkdir"; 52 52 53 53 static struct option const long_options[] = { -
uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
rd0febca r7715994 51 51 #define BUFFER_SIZE 16384 52 52 53 static c har *cmdname = "mkfile";53 static const char *cmdname = "mkfile"; 54 54 55 55 static struct option const long_options[] = { -
uspace/app/bdsh/cmds/modules/module_aliases.h
rd0febca r7715994 12 12 * the entry point being reached. */ 13 13 14 c har *mod_aliases[] = {14 const char *mod_aliases[] = { 15 15 "ren", "mv", 16 16 "umount", "unmount", -
uspace/app/bdsh/cmds/modules/mount/mount.c
rd0febca r7715994 58 58 { 59 59 unsigned int argc; 60 c har *mopts = "";60 const char *mopts = ""; 61 61 int rc; 62 62 -
uspace/app/bdsh/cmds/modules/pwd/pwd.c
rd0febca r7715994 39 39 #include "pwd.h" 40 40 41 static c har *cmdname = "pwd";41 static const char *cmdname = "pwd"; 42 42 43 43 void help_cmd_pwd(unsigned int level) -
uspace/app/bdsh/cmds/modules/rm/rm.c
rd0febca r7715994 45 45 #include "cmds.h" 46 46 47 static c har *cmdname = "rm";47 static const char *cmdname = "rm"; 48 48 #define RM_VERSION "0.0.1" 49 49 -
uspace/app/bdsh/cmds/modules/sleep/sleep.c
rd0febca r7715994 38 38 #include "cmds.h" 39 39 40 static c har *cmdname = "sleep";40 static const char *cmdname = "sleep"; 41 41 42 42 /* Dispays help for sleep in various levels */ -
uspace/app/bdsh/cmds/modules/touch/touch.c
rd0febca r7715994 47 47 #include "cmds.h" 48 48 49 static c har *cmdname = "touch";49 static const char *cmdname = "touch"; 50 50 51 51 /* Dispays help for touch in various levels */ -
uspace/app/bdsh/errors.c
rd0febca r7715994 47 47 /* Look up errno in cl_errors and return the corresponding string. 48 48 * Return NULL if not found */ 49 static c har *err2str(int err)49 static const char *err2str(int err) 50 50 { 51 51 -
uspace/app/bdsh/errstr.h
rd0febca r7715994 4 4 /* Simple array to translate error codes to meaningful strings */ 5 5 6 static c har *cl_errors[] = {6 static const char *cl_errors[] = { 7 7 "Success", 8 8 "Failure", … … 18 18 }; 19 19 20 static c har *err2str(int);20 static const char *err2str(int); 21 21 22 22 #endif -
uspace/app/bdsh/exec.c
rd0febca r7715994 120 120 free(found); 121 121 122 tid = task_spawn( (const char *)tmp,argv);122 tid = task_spawn(tmp, (const char **) argv); 123 123 free(tmp); 124 124 -
uspace/app/bdsh/exec.h
rd0febca r7715994 5 5 6 6 extern unsigned int try_exec(char *, char **); 7 7 8 #endif -
uspace/app/bdsh/scli.h
rd0febca r7715994 6 6 7 7 typedef struct { 8 c har *name;8 const char *name; 9 9 char *line; 10 10 char *cwd; -
uspace/app/edit/edit.c
rd0febca r7715994 475 475 static void file_save_as(void) 476 476 { 477 char *old_fname, *fname; 478 int rc; 479 480 old_fname = (doc.file_name != NULL) ? doc.file_name : ""; 477 const char *old_fname = (doc.file_name != NULL) ? doc.file_name : ""; 478 char *fname; 479 481 480 fname = filename_prompt("Save As", old_fname); 482 481 if (fname == NULL) { … … 485 484 } 486 485 487 rc = file_save(fname);486 int rc = file_save(fname); 488 487 if (rc != EOK) 489 488 return; … … 819 818 spt_t caret_pt; 820 819 coord_t coord; 821 char *fname;822 int n;823 820 824 821 tag_get_pt(&pane.caret_pos, &caret_pt); 825 822 spt_get_coord(&caret_pt, &coord); 826 823 827 fname = (doc.file_name != NULL) ? doc.file_name : "<unnamed>";824 const char *fname = (doc.file_name != NULL) ? doc.file_name : "<unnamed>"; 828 825 829 826 console_goto(con, 0, scr_rows - 1); 830 827 console_set_color(con, COLOR_WHITE, COLOR_BLACK, 0); 831 n = printf(" %d, %d: File '%s'. Ctrl-Q Quit Ctrl-S Save "828 int n = printf(" %d, %d: File '%s'. Ctrl-Q Quit Ctrl-S Save " 832 829 "Ctrl-E Save As", coord.row, coord.column, fname); 833 830 printf("%*s", scr_columns - 1 - n, ""); -
uspace/app/getterm/getterm.c
rd0febca r7715994 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/version.c
rd0febca r7715994 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 -
uspace/app/init/init.c
rd0febca r7715994 62 62 static bool mount_root(const char *fstype) 63 63 { 64 c har *opts = "";64 const char *opts = ""; 65 65 const char *root_dev = "bd/initrd"; 66 66 … … 117 117 } 118 118 119 static void spawn(c har *fname)120 { 121 c har *argv[2];119 static void spawn(const char *fname) 120 { 121 const char *argv[2]; 122 122 struct stat s; 123 123 … … 134 134 } 135 135 136 static void srv_start(c har *fname)137 { 138 c har *argv[2];136 static void srv_start(const char *fname) 137 { 138 const char *argv[2]; 139 139 task_id_t id; 140 140 task_exit_t texit; … … 168 168 } 169 169 170 static void console(c har *dev)171 { 172 c har *argv[3];170 static void console(const char *dev) 171 { 172 const char *argv[3]; 173 173 char hid_in[DEVMAP_NAME_MAXLEN]; 174 174 int rc; … … 193 193 } 194 194 195 static void getterm(c har *dev,char *app)196 { 197 c har *argv[4];195 static void getterm(const char *dev, const char *app) 196 { 197 const char *argv[4]; 198 198 char term[DEVMAP_NAME_MAXLEN]; 199 199 int rc; -
uspace/app/redir/redir.c
rd0febca r7715994 72 72 static task_id_t spawn(int argc, char *argv[]) 73 73 { 74 c har **args = (char **) calloc(argc + 1, sizeof(char *));74 const char **args = (const char **) calloc(argc + 1, sizeof(char *)); 75 75 if (!args) { 76 76 printf("No memory available\n"); -
uspace/app/sbi/src/os/helenos.c
rd0febca r7715994 105 105 int retval; 106 106 107 tid = task_spawn(cmd[0], cmd);107 tid = task_spawn(cmd[0], (char const * const *) cmd); 108 108 if (tid == 0) { 109 109 printf("Error: Failed spawning '%s'.\n", cmd[0]); -
uspace/app/tester/console/console1.c
rd0febca r7715994 36 36 #include "../tester.h" 37 37 38 const char *color_name[] = {38 static const char *color_name[] = { 39 39 [COLOR_BLACK] = "black", 40 40 [COLOR_BLUE] = "blue", … … 47 47 }; 48 48 49 c har *test_console1(void)49 const char *test_console1(void) 50 50 { 51 51 if (!test_quiet) { -
uspace/app/tester/fault/fault1.c
rd0febca r7715994 30 30 #include "../tester.h" 31 31 32 c har *test_fault1(void)32 const char *test_fault1(void) 33 33 { 34 34 ((int *)(0))[1] = 0; -
uspace/app/tester/fault/fault2.c
rd0febca r7715994 32 32 typedef int __attribute__((may_alias)) aliasing_int; 33 33 34 c har *test_fault2(void)34 const char *test_fault2(void) 35 35 { 36 36 volatile long long var; -
uspace/app/tester/fault/fault3.c
rd0febca r7715994 30 30 #include <stdlib.h> 31 31 32 c har *test_fault3(void)32 const char *test_fault3(void) 33 33 { 34 34 abort(); -
uspace/app/tester/ipc/connect.c
rd0febca r7715994 39 39 } 40 40 41 c har *test_connect(void)41 const char *test_connect(void) 42 42 { 43 43 TPRINTF("Connecting to %u...", IPC_TEST_SERVICE); -
uspace/app/tester/ipc/ping_pong.c
rd0febca r7715994 38 38 #define COUNT_GRANULARITY 100 39 39 40 c har *test_ping_pong(void)40 const char *test_ping_pong(void) 41 41 { 42 42 TPRINTF("Pinging ns server for %d seconds...", DURATION_SECS); -
uspace/app/tester/ipc/register.c
rd0febca r7715994 74 74 } 75 75 76 c har *test_register(void)76 const char *test_register(void) 77 77 { 78 78 async_set_client_connection(client_connection); -
uspace/app/tester/loop/loop1.c
rd0febca r7715994 31 31 #include "../tester.h" 32 32 33 c har *test_loop1(void)33 const char *test_loop1(void) 34 34 { 35 35 TPRINTF("Looping..."); -
uspace/app/tester/mm/malloc1.c
rd0febca r7715994 73 73 74 74 typedef struct { 75 c har *name;75 const char *name; 76 76 sp_term_cond_s cond; 77 77 sp_action_prob_s prob; … … 90 90 91 91 typedef struct { 92 c har *name;92 const char *name; 93 93 ph_alloc_size_s alloc; 94 94 subphase_s *subphases; … … 628 628 } 629 629 630 c har *test_malloc1(void)630 const char *test_malloc1(void) 631 631 { 632 632 init_mem(); -
uspace/app/tester/print/print1.c
rd0febca r7715994 31 31 #include "../tester.h" 32 32 33 c har *test_print1(void)33 const char *test_print1(void) 34 34 { 35 35 TPRINTF("Testing printf(\"%%*.*s\", 5, 3, \"text\"):\n"); -
uspace/app/tester/print/print2.c
rd0febca r7715994 31 31 #include "../tester.h" 32 32 33 c har *test_print2(void)33 const char *test_print2(void) 34 34 { 35 35 TPRINTF("Testing printf(\"%%c %%3.2c %%-3.2c %%2.3c %%-2.3c\", 'a', 'b', 'c', 'd', 'e'):\n"); -
uspace/app/tester/print/print3.c
rd0febca r7715994 34 34 #define BUFFER_SIZE 32 35 35 36 c har *test_print3(void)36 const char *test_print3(void) 37 37 { 38 38 char buffer[BUFFER_SIZE]; -
uspace/app/tester/print/print4.c
rd0febca r7715994 31 31 #include "../tester.h" 32 32 33 c har *test_print4(void)33 const char *test_print4(void) 34 34 { 35 35 TPRINTF("ASCII printable characters (32 - 127) using printf(\"%%c\") and printf(\"%%lc\"):\n"); -
uspace/app/tester/stdio/stdio1.c
rd0febca r7715994 36 36 static char buf[BUF_SIZE + 1]; 37 37 38 c har *test_stdio1(void)38 const char *test_stdio1(void) 39 39 { 40 40 FILE *file; 41 c har *file_name = "/readme";41 const char *file_name = "/readme"; 42 42 43 43 TPRINTF("Open file \"%s\"...", file_name); -
uspace/app/tester/stdio/stdio2.c
rd0febca r7715994 32 32 #include "../tester.h" 33 33 34 c har *test_stdio2(void)34 const char *test_stdio2(void) 35 35 { 36 36 FILE *file; 37 c har *file_name = "/test";37 const char *file_name = "/test"; 38 38 39 39 TPRINTF("Open file \"%s\" for writing...", file_name); -
uspace/app/tester/tester.c
rd0febca r7715994 69 69 { 70 70 /* Execute the test */ 71 c har *ret = test->entry();71 const char *ret = test->entry(); 72 72 73 73 if (ret == NULL) { -
uspace/app/tester/tester.h
rd0febca r7715994 54 54 } 55 55 56 typedef c har *(*test_entry_t)(void);56 typedef const char *(*test_entry_t)(void); 57 57 58 58 typedef struct { 59 c har *name;60 c har *desc;59 const char *name; 60 const char *desc; 61 61 test_entry_t entry; 62 62 bool safe; 63 63 } test_t; 64 64 65 extern c har *test_thread1(void);66 extern c har *test_print1(void);67 extern c har *test_print2(void);68 extern c har *test_print3(void);69 extern c har *test_print4(void);70 extern c har *test_console1(void);71 extern c har *test_stdio1(void);72 extern c har *test_stdio2(void);73 extern c har *test_fault1(void);74 extern c har *test_fault2(void);75 extern c har *test_fault3(void);76 extern c har *test_vfs1(void);77 extern c har *test_ping_pong(void);78 extern c har *test_register(void);79 extern c har *test_connect(void);80 extern c har *test_loop1(void);81 extern c har *test_malloc1(void);65 extern const char *test_thread1(void); 66 extern const char *test_print1(void); 67 extern const char *test_print2(void); 68 extern const char *test_print3(void); 69 extern const char *test_print4(void); 70 extern const char *test_console1(void); 71 extern const char *test_stdio1(void); 72 extern const char *test_stdio2(void); 73 extern const char *test_fault1(void); 74 extern const char *test_fault2(void); 75 extern const char *test_fault3(void); 76 extern const char *test_vfs1(void); 77 extern const char *test_ping_pong(void); 78 extern const char *test_register(void); 79 extern const char *test_connect(void); 80 extern const char *test_loop1(void); 81 extern const char *test_malloc1(void); 82 82 83 83 extern test_t tests[]; -
uspace/app/tester/thread/thread1.c
rd0febca r7715994 50 50 } 51 51 52 c har *test_thread1(void)52 const char *test_thread1(void) 53 53 { 54 54 unsigned int i; -
uspace/app/tester/vfs/vfs1.c
rd0febca r7715994 54 54 static char text[] = "Lorem ipsum dolor sit amet, consectetur adipisicing elit"; 55 55 56 static c har *read_root(void)56 static const char *read_root(void) 57 57 { 58 58 TPRINTF("Opening the root directory..."); … … 73 73 } 74 74 75 c har *test_vfs1(void)75 const char *test_vfs1(void) 76 76 { 77 77 if (mkdir(MOUNT_POINT, 0) != 0) … … 121 121 close(fd0); 122 122 123 c har *rv = read_root();123 const char *rv = read_root(); 124 124 if (rv != NULL) 125 125 return rv; -
uspace/app/tetris/screen.c
rd0febca r7715994 72 72 * simply literal strings); 73 73 */ 74 static inline void putstr(c har *s)74 static inline void putstr(const char *s) 75 75 { 76 76 while (*s) … … 181 181 } 182 182 183 void stop(c har *why)183 void stop(const char *why) 184 184 { 185 185 if (isset) -
uspace/app/tetris/tetris.h
rd0febca r7715994 186 186 extern int fits_in(const struct shape *, int); 187 187 extern void place(const struct shape *, int, int); 188 extern void stop(c har *);188 extern void stop(const char *); 189 189 190 190 /** @} -
uspace/app/trace/errors.h
rd0febca r7715994 37 37 38 38 typedef struct { 39 c har *name;/**< Error value name (Exx) */40 c har *desc;/**< Error description */39 const char *name; /**< Error value name (Exx) */ 40 const char *desc; /**< Error description */ 41 41 } err_desc_t; 42 42 -
uspace/app/trace/ipc_desc.h
rd0febca r7715994 38 38 typedef struct { 39 39 int number; 40 c har *name;40 const char *name; 41 41 } ipc_m_desc_t; 42 42 -
uspace/app/trace/proto.c
rd0febca r7715994 157 157 } 158 158 159 static void proto_struct_init(proto_t *proto, c har *name)159 static void proto_struct_init(proto_t *proto, const char *name) 160 160 { 161 161 proto->name = name; … … 164 164 } 165 165 166 proto_t *proto_new(c har *name)166 proto_t *proto_new(const char *name) 167 167 { 168 168 proto_t *p; … … 206 206 } 207 207 208 static void oper_struct_init(oper_t *oper, c har *name)208 static void oper_struct_init(oper_t *oper, const char *name) 209 209 { 210 210 oper->name = name; 211 211 } 212 212 213 oper_t *oper_new(c har *name, int argc, val_type_t *arg_types,213 oper_t *oper_new(const char *name, int argc, val_type_t *arg_types, 214 214 val_type_t rv_type, int respc, val_type_t *resp_types) 215 215 { -
uspace/app/trace/proto.h
rd0febca r7715994 43 43 44 44 typedef struct { 45 c har *name;45 const char *name; 46 46 47 47 int argc; … … 56 56 typedef struct { 57 57 /** Protocol name */ 58 c har *name;58 const char *name; 59 59 60 60 /** Maps method number to operation */ … … 70 70 void proto_register(int srv, proto_t *proto); 71 71 proto_t *proto_get_by_srv(int srv); 72 proto_t *proto_new(c har *name);72 proto_t *proto_new(const char *name); 73 73 void proto_delete(proto_t *proto); 74 74 void proto_add_oper(proto_t *proto, int method, oper_t *oper); 75 75 oper_t *proto_get_oper(proto_t *proto, int method); 76 76 77 oper_t *oper_new(c har *name, int argc, val_type_t *arg_types,77 oper_t *oper_new(const char *name, int argc, val_type_t *arg_types, 78 78 val_type_t rv_type, int respc, val_type_t *resp_types); 79 79 -
uspace/app/trace/syscalls.h
rd0febca r7715994 39 39 40 40 typedef struct { 41 c har *name;41 const char *name; 42 42 int n_args; 43 43 val_type_t rv_type; -
uspace/app/trace/trace.c
rd0febca r7715994 585 585 } 586 586 587 static loader_t *preload_task(const char *path, char * const argv[],587 static loader_t *preload_task(const char *path, char **argv, 588 588 task_id_t *task_id) 589 589 { … … 591 591 int rc; 592 592 593 /* Spawn a program loader */ 593 /* Spawn a program loader */ 594 594 ldr = loader_connect(); 595 595 if (ldr == NULL) … … 607 607 608 608 /* Send arguments */ 609 rc = loader_set_args(ldr, argv);609 rc = loader_set_args(ldr, (const char **) argv); 610 610 if (rc != EOK) 611 611 goto error; … … 870 870 } 871 871 872 static display_mask_t parse_display_mask(c har *text)872 static display_mask_t parse_display_mask(const char *text) 873 873 { 874 874 display_mask_t dm; 875 char *c; 876 877 c = text; 878 875 const char *c = text; 876 879 877 while (*c) { 880 878 switch (*c) { 881 case 't': dm = dm | DM_THREAD; break; 882 case 's': dm = dm | DM_SYSCALL; break; 883 case 'i': dm = dm | DM_IPC; break; 884 case 'p': dm = dm | DM_SYSTEM | DM_USER; break; 879 case 't': 880 dm = dm | DM_THREAD; 881 break; 882 case 's': 883 dm = dm | DM_SYSCALL; 884 break; 885 case 'i': 886 dm = dm | DM_IPC; 887 break; 888 case 'p': 889 dm = dm | DM_SYSTEM | DM_USER; 890 break; 885 891 default: 886 892 printf("Unexpected event type '%c'.\n", *c); 887 893 exit(1); 888 894 } 889 895 890 896 ++c; 891 897 } 892 898 893 899 return dm; 894 900 } … … 896 902 static int parse_args(int argc, char *argv[]) 897 903 { 898 char *arg;899 904 char *err_p; 900 905 901 906 task_id = 0; 902 907 903 --argc; ++argv; 908 --argc; 909 ++argv; 904 910 905 911 while (argc > 0) { 906 arg = *argv;912 char *arg = *argv; 907 913 if (arg[0] == '+') { 908 914 display_mask = parse_display_mask(&arg[1]); … … 910 916 if (arg[1] == 't') { 911 917 /* Trace an already running task */ 912 --argc; ++argv; 918 --argc; 919 ++argv; 913 920 task_id = strtol(*argv, &err_p, 10); 914 921 task_ldr = NULL; … … 927 934 break; 928 935 } 929 930 --argc; ++argv; 936 937 --argc; 938 ++argv; 931 939 } 932 940 933 941 if (task_id != 0) { 934 if (argc == 0) return 0; 942 if (argc == 0) 943 return 0; 935 944 printf("Extra arguments\n"); 936 945 print_syntax(); … … 946 955 /* Preload the specified program file. */ 947 956 printf("Spawning '%s' with arguments:\n", *argv); 948 { 949 char **cp = argv; 950 while (*cp) printf("'%s'\n", *cp++); 951 } 957 958 char **cp = argv; 959 while (*cp) 960 printf("'%s'\n", *cp++); 961 952 962 task_ldr = preload_task(*argv, argv, &task_id); 953 963 task_wait_for = true;
Note:
See TracChangeset
for help on using the changeset viewer.