Skip to content
Snippets Groups Projects
Commit 5398df49 authored by whh8b's avatar whh8b
Browse files

Actually include the necessary files for mkfifo support.

parent e226d50f
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ libc/include/close.h -text
libc/include/itoa.h -text
libc/include/itox.h -text
libc/include/malloc.h -text
libc/include/mkfifo.h -text
libc/include/null.h -text
libc/include/open.h -text
libc/include/read.h -text
......@@ -55,6 +56,7 @@ libc/src/cgc.s -text
libc/src/close.c -text
libc/src/itoa.c -text
libc/src/malloc.c -text
libc/src/mkfifo.c -text
libc/src/open.c -text
libc/src/read.c -text
libc/src/stdlib.c -text
......
/*
* Copyright (c) 2014 - Zephyr Software LLC
*
* This file may be used and modified for non-commercial purposes as long as
* all copyright, permission, and nonwarranty notices are preserved.
* Redistribution is prohibited without prior written consent from Zephyr
* Software.
*
* Please contact the authors for restrictions applying to commercial use.
*
* THIS SOURCE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* Author: Zephyr Software
* e-mail: jwd@zephyr-software.com
* URL : http://www.zephyr-software.com/
*
*/
#ifndef mkfifo_h
#define mkfifo_h
int mkfifo(char *file, int mode);
#endif
/*
* Copyright (c) 2014 - Zephyr Software LLC
*
* This file may be used and modified for non-commercial purposes as long as
* all copyright, permission, and nonwarranty notices are preserved.
* Redistribution is prohibited without prior written consent from Zephyr
* Software.
*
* Please contact the authors for restrictions applying to commercial use.
*
* THIS SOURCE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* Author: Zephyr Software
* e-mail: jwd@zephyr-software.com
* URL : http://www.zephyr-software.com/
*
*/
#include <mkfifo.h>
#include <syscall.h>
/*
int open(char *file, int flags)
{
#ifndef CGC
syscall(SYS_open,file,flags);
#endif
}
*/
#define M_FIFO 0010000
int mkfifo(char *file, int mode)
{
#ifndef CGC
int dev = 0;
return syscall(SYS_mknod, file, mode | M_FIFO, &dev);
#else
return -1;
#endif
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment