~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to uspace/app/redir/redir.c

  • Committer: Jakub Jermar
  • Date: 2011-06-02 21:26:44 UTC
  • mfrom: (720.2.82 ext2-merge)
  • Revision ID: jakub@jermar.eu-20110602212644-t5p3o4bux1n8ybvd
Merge from http://ho.st.dcs.fmph.uniba.sk/~mato/bzr/helenos-ext2.

Changes made against the ext2 branch parent:
- removed .bzrignore
- removed all traces of pipefs

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
static void usage(void)
50
50
{
51
 
        printf("Usage: %s [-i <stdin>] [-o <stdout>] [-e <stderr>] -- <cmd> [args ...]\n",
 
51
        fprintf(stderr, "Usage: %s [-i <stdin>] [-o <stdout>] [-e <stderr>] -- <cmd> [args ...]\n",
52
52
            NAME);
53
53
}
54
54
 
82
82
 
83
83
        args = (const char **) calloc(argc + 1, sizeof(char *));
84
84
        if (!args) {
85
 
                printf("No memory available\n");
 
85
                fprintf(stderr, "No memory available\n");
86
86
                return 0;
87
87
        }
88
88
        
97
97
        free(args);
98
98
        
99
99
        if (rc != EOK) {
100
 
                printf("%s: Error spawning %s (%s)\n", NAME, argv[0],
 
100
                fprintf(stderr, "%s: Error spawning %s (%s)\n", NAME, argv[0],
101
101
                    str_error(rc));
 
102
                return 0;
102
103
        }
103
104
        
104
105
        return id;