Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr_callbacks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
zipr_callbacks
Commits
5398df49
Commit
5398df49
authored
8 years ago
by
whh8b
Browse files
Options
Downloads
Patches
Plain Diff
Actually include the necessary files for mkfifo support.
parent
e226d50f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitattributes
+2
-0
2 additions, 0 deletions
.gitattributes
libc/include/mkfifo.h
+27
-0
27 additions, 0 deletions
libc/include/mkfifo.h
libc/src/mkfifo.c
+41
-0
41 additions, 0 deletions
libc/src/mkfifo.c
with
70 additions
and
0 deletions
.gitattributes
+
2
−
0
View file @
5398df49
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
libc/include/mkfifo.h
0 → 100644
+
27
−
0
View file @
5398df49
/*
* 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
This diff is collapsed.
Click to expand it.
libc/src/mkfifo.c
0 → 100644
+
41
−
0
View file @
5398df49
/*
* 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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment