blob: 3bc081d4e9d5984805281991dee6a4333969de95 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From cf97079009ba48d10e52052b2eab7461ea4dd09b Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 10 Jul 2017 20:42:50 -0700
4Subject: [PATCH] mkfifo: Implement mkfifo
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
Brad Bishop316dfdd2018-06-25 12:45:53 -04007
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008---
9 usr/utils/mkfifo.c | 5 +++++
10 1 file changed, 5 insertions(+)
11
12diff --git a/usr/utils/mkfifo.c b/usr/utils/mkfifo.c
Brad Bishop316dfdd2018-06-25 12:45:53 -040013index 5a758b2..f1f577e 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014--- a/usr/utils/mkfifo.c
15+++ b/usr/utils/mkfifo.c
16@@ -26,6 +26,11 @@ static int make_fifo(char *dir)
17 return 0;
18 }
19
20+int mkfifo (const char *__p, mode_t __m)
21+{
22+ return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t) 0);
23+}
24+
25 int main(int argc, char *argv[])
26 {
27 int c, ret = 0;