diff toys/toylist.h @ 157:714f4c051594

Add initial mkfifo implementation
author Charlie Shepherd <masterdriverz@gentoo.org>
date Wed, 07 Nov 2007 00:11:20 +0000
parents ec6e13b2495d
children 0864aec90026
line wrap: on
line diff
--- a/toys/toylist.h	Thu Nov 15 18:30:30 2007 -0600
+++ b/toys/toylist.h	Wed Nov 07 00:11:20 2007 +0000
@@ -61,9 +61,14 @@
 	char *command;
 };
 
+struct mkfifo_data {
+	char *mode;
+};
+
 extern union toy_union {
 	struct df_data df;
 	struct mke2fs_data mke2fs;
+	struct mkfifo_data mkfifo;
 	struct sleep_data sleep;
 	struct touch_data touch;
 	struct toysh_data toysh;
@@ -104,6 +109,7 @@
 USE_HELLO(NEWTOY(hello, NULL, TOYFLAG_USR|TOYFLAG_BIN))
 USE_HELP(NEWTOY(help, "<1", TOYFLAG_BIN))
 USE_MKE2FS(NEWTOY(mke2fs, MKE2FS_OPTSTRING, TOYFLAG_SBIN))
+USE_MKFIFO(NEWTOY(mkfifo, "<1m:", TOYFLAG_BIN))
 USE_ONEIT(NEWTOY(oneit, "+<1p", TOYFLAG_SBIN))
 USE_PWD(NEWTOY(pwd, NULL, TOYFLAG_BIN))
 USE_READLINK(NEWTOY(readlink, "<1f", TOYFLAG_BIN))