Changeset df747bd8 in mainline for uspace/app/init/init.c


Ignore:
Timestamp:
2009-12-16T01:59:07Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c26eb39
Parents:
47a350f
Message:

rename getvc to getterm, as the new name is more suitable for the generic nature of the binary
(virtual consoles are hopefully going to be accompanied by other terminal-like devices soon)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    r47a350f rdf747bd8  
    5353
    5454#define SRV_CONSOLE  "/srv/console"
    55 #define APP_GETVC    "/app/getvc"
     55#define APP_GETTERM  "/app/getterm"
    5656
    5757static void info_print(void)
     
    206206}
    207207
    208 static void getvc(char *dev, char *app)
     208static void getterm(char *dev, char *app)
    209209{
    210210        char *argv[4];
    211         char vc[MAX_DEVICE_NAME];
     211        char term[MAX_DEVICE_NAME];
    212212        int rc;
    213213       
    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);
    217217       
    218218        /* Wait for the terminal device to be ready */
     
    221221       
    222222        if (rc == EOK) {
    223                 argv[0] = APP_GETVC;
    224                 argv[1] = vc;
     223                argv[0] = APP_GETTERM;
     224                argv[1] = term;
    225225                argv[2] = app;
    226226                argv[3] = NULL;
    227227               
    228                 if (!task_spawn(APP_GETVC, 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);
    230230        } else
    231                 printf(NAME ": Error waiting on %s\n", vc);
     231                printf(NAME ": Error waiting on %s\n", term);
    232232}
    233233
     
    287287#endif
    288288
    289         getvc("term/vc0", "/app/bdsh");
    290         getvc("term/vc1", "/app/bdsh");
    291         getvc("term/vc2", "/app/bdsh");
    292         getvc("term/vc3", "/app/bdsh");
    293         getvc("term/vc4", "/app/bdsh");
    294         getvc("term/vc5", "/app/bdsh");
    295         getvc("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");
    296296       
    297297        return 0;
Note: See TracChangeset for help on using the changeset viewer.