1
/* $Id: syscall_mknod.c 61 2006-05-19 18:32:14Z steve-beattie $ */
4
* Copyright (C) 2002-2005 Novell/SUSE
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation, version 2 of the
15
#include <sys/types.h>
20
int main(int argc, char *argv[])
25
fprintf(stderr, "usage: %s b|c|f|s|r file\n",
30
if (strcmp(argv[1], "b") == 0){
32
}else if (strcmp(argv[1], "c") == 0){
34
}else if (strcmp(argv[1], "f") == 0){
36
}else if (strcmp(argv[1], "s") == 0){
38
}else if (strcmp(argv[1], "r") == 0){
41
fprintf(stderr, "FAIL: type must be b|c|f|s|r\n");
45
if (mknod(argv[2], mode, 1) == -1){
46
fprintf(stderr, "FAIL: mknod %s failed - %s\n",