Subversion Repositories HelenOS-historic

Rev

Rev 624 | Rev 635 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 624 Rev 625
Line 89... Line 89...
89
 *
89
 *
90
 * @return 0 on failure, 1 on success.
90
 * @return 0 on failure, 1 on success.
91
 */
91
 */
92
int cmd_register(cmd_info_t *cmd)
92
int cmd_register(cmd_info_t *cmd)
93
{
93
{
94
    ipl_t ipl;
-
 
95
    link_t *cur;
94
    link_t *cur;
96
   
95
   
97
    spinlock_lock(&cmd_lock);
96
    spinlock_lock(&cmd_lock);
98
   
97
   
99
    /*
98
    /*
Line 158... Line 157...
158
 
157
 
159
static const char * cmdtab_search_one(const char *name,link_t **startpos)
158
static const char * cmdtab_search_one(const char *name,link_t **startpos)
160
{
159
{
161
    int namelen = strlen(name);
160
    int namelen = strlen(name);
162
    const char *curname;
161
    const char *curname;
163
    char *foundsym = NULL;
-
 
164
    int foundpos = 0;
-
 
165
 
162
 
166
    spinlock_lock(&cmd_lock);
163
    spinlock_lock(&cmd_lock);
167
 
164
 
168
    if (!*startpos)
165
    if (!*startpos)
169
        *startpos = cmd_head.next;
166
        *startpos = cmd_head.next;
Line 467... Line 464...
467
cmd_info_t *parse_cmdline(char *cmdline, size_t len)
464
cmd_info_t *parse_cmdline(char *cmdline, size_t len)
468
{
465
{
469
    index_t start = 0, end = 0;
466
    index_t start = 0, end = 0;
470
    cmd_info_t *cmd = NULL;
467
    cmd_info_t *cmd = NULL;
471
    link_t *cur;
468
    link_t *cur;
472
    ipl_t ipl;
-
 
473
    int i;
469
    int i;
474
   
470
   
475
    if (!parse_argument(cmdline, len, &start, &end)) {
471
    if (!parse_argument(cmdline, len, &start, &end)) {
476
        /* Command line did not contain alphanumeric word. */
472
        /* Command line did not contain alphanumeric word. */
477
        return NULL;
473
        return NULL;