Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From cf97079009ba48d10e52052b2eab7461ea4dd09b Mon Sep 17 00:00:00 2001 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 10 Jul 2017 20:42:50 -0700 |
| 4 | Subject: [PATCH] mkfifo: Implement mkfifo |
| 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 8 | --- |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 9 | Upstream-Status: Pending |
| 10 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 11 | usr/utils/mkfifo.c | 5 +++++ |
| 12 | 1 file changed, 5 insertions(+) |
| 13 | |
| 14 | diff --git a/usr/utils/mkfifo.c b/usr/utils/mkfifo.c |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 15 | index 5a758b2..f1f577e 100644 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 16 | --- a/usr/utils/mkfifo.c |
| 17 | +++ b/usr/utils/mkfifo.c |
| 18 | @@ -26,6 +26,11 @@ static int make_fifo(char *dir) |
| 19 | return 0; |
| 20 | } |
| 21 | |
| 22 | +int mkfifo (const char *__p, mode_t __m) |
| 23 | +{ |
| 24 | + return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t) 0); |
| 25 | +} |
| 26 | + |
| 27 | int main(int argc, char *argv[]) |
| 28 | { |
| 29 | int c, ret = 0; |