Annotation of xinu/sys/shell/x_sleep.c, revision 1.1.1.1

1.1       root        1: /* x_sleep.c - x_sleep */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: 
                      6: /*------------------------------------------------------------------------
                      7:  *  x_sleep  -  (command sleep) delay for a given number of seconds
                      8:  *------------------------------------------------------------------------
                      9:  */
                     10: COMMAND        x_sleep(stdin, stdout, stderr, nargs, args)
                     11: int    stdin, stdout, stderr, nargs;
                     12: char   *args[];
                     13: {
                     14:        if (nargs != 2) {
                     15:                fprintf(stderr, "usage: sleep delay\n");
                     16:                return(SYSERR);
                     17:        }
                     18:        return( sleep( atoi(args[1]) ) );
                     19: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.