2
* Copyright (C) 2002-2005 Novell/SUSE
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation, version 2 of the
13
#include <sys/types.h>
18
int main(int argc, char *argv[])
23
fprintf(stderr, "usage: %s b|c|f|s|r file\n",
28
if (strcmp(argv[1], "b") == 0){
30
}else if (strcmp(argv[1], "c") == 0){
32
}else if (strcmp(argv[1], "f") == 0){
34
}else if (strcmp(argv[1], "s") == 0){
36
}else if (strcmp(argv[1], "r") == 0){
39
fprintf(stderr, "FAIL: type must be b|c|f|s|r\n");
43
if (mknod(argv[2], mode, 1) == -1){
44
fprintf(stderr, "FAIL: mknod %s failed - %s\n",