summaryrefslogtreecommitdiffstats
path: root/import-layers/meta-openembedded/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch
blob: 3bc081d4e9d5984805281991dee6a4333969de95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From cf97079009ba48d10e52052b2eab7461ea4dd09b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 10 Jul 2017 20:42:50 -0700
Subject: [PATCH] mkfifo: Implement mkfifo

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 usr/utils/mkfifo.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/usr/utils/mkfifo.c b/usr/utils/mkfifo.c
index 5a758b2..f1f577e 100644
--- a/usr/utils/mkfifo.c
+++ b/usr/utils/mkfifo.c
@@ -26,6 +26,11 @@ static int make_fifo(char *dir)
 	return 0;
 }
 
+int mkfifo (const char *__p, mode_t __m)
+{
+	return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t) 0);
+}
+
 int main(int argc, char *argv[])
 {
 	int c, ret = 0;
OpenPOWER on IntegriCloud