2 * Copyright (c) 1993 by David I. Bell
3 * Permission is granted to use, distribute, or modify this source,
4 * provided that this copyright notice remains intact.
6 * Most simple built-in commands are here.
30 while ((argc
> 0) && (**argv
== '-')) {
34 while (*++str
) switch (*str
) {
36 if ((argc
<= 0) || (**argv
== '-')) {
37 write(STDERR_FILENO
, "Missing file system type\n", 25);
46 write(STDERR_FILENO
, "Unknown option\n", 15);
52 write(STDERR_FILENO
, "Wrong number of arguments for mount\n", 36);
56 if (mount(argv
[0], argv
[1], type
, 0) < 0) {
57 perror("mount failed");