Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
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
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
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
2fdca9bd
Verified
Commit
2fdca9bd
authored
5 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Work around definition of O_NOFOLLOW, and add target for only building and installing headers
parent
f4fccc6d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Cargo.lock
+2
-0
2 additions, 0 deletions
Cargo.lock
Makefile
+8
-2
8 additions, 2 deletions
Makefile
include/bits/fcntl.h
+4
-0
4 additions, 0 deletions
include/bits/fcntl.h
src/header/fcntl/redox.rs
+3
-1
3 additions, 1 deletion
src/header/fcntl/redox.rs
with
17 additions
and
3 deletions
Cargo.lock
+
2
−
0
View file @
2fdca9bd
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "ansi_term"
version = "0.11.0"
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
8
−
2
View file @
2fdca9bd
...
...
@@ -29,7 +29,7 @@ SRC=\
src/
*
/
*
/
*
\
src/
*
/
*
/
*
/
*
.PHONY
:
all clean fmt
include install
libc libm test
.PHONY
:
all clean fmt
headers install install-headers
libc libm test
all
:
| libc libm libpthread
...
...
@@ -44,13 +44,17 @@ check:
fmt
:
./fmt.sh
install
:
all
headers
:
$(BUILD)/include
install-headers
:
headers
mkdir
-pv
"
$(
DESTDIR
)
/include"
cp
-rv
"include"
/
*
"
$(
DESTDIR
)
/include"
cp
-rv
"
$(
BUILD
)
/include"
/
*
"
$(
DESTDIR
)
/include"
cp
-v
"openlibm/include"
/
*
.h
"
$(
DESTDIR
)
/include"
cp
-v
"openlibm/src"
/
*
.h
"
$(
DESTDIR
)
/include"
cp
-v
"pthreads-emb/"
*
.h
"
$(
DESTDIR
)
/include"
install-libs
:
all
mkdir
-pv
"
$(
DESTDIR
)
/lib"
cp
-v
"
$(
BUILD
)
/release/libc.a"
"
$(
DESTDIR
)
/lib"
cp
-v
"
$(
BUILD
)
/release/crt0.o"
"
$(
DESTDIR
)
/lib"
...
...
@@ -59,6 +63,8 @@ install: all
cp
-v
"
$(
BUILD
)
/openlibm/libopenlibm.a"
"
$(
DESTDIR
)
/lib/libm.a"
cp
-v
"
$(
BUILD
)
/pthreads-emb/libpthread.a"
"
$(
DESTDIR
)
/lib/libpthread.a"
install
:
install-headers install-libs
libc
:
$(BUILD)/release/libc.a $(BUILD)/release/crt0.o $(BUILD)/release/crti.o $(BUILD)/release/crtn.o $(BUILD)/include
libm
:
$(BUILD)/openlibm/libopenlibm.a
...
...
This diff is collapsed.
Click to expand it.
include/bits/fcntl.h
+
4
−
0
View file @
2fdca9bd
#ifndef _BITS_FCNTL_H
#define _BITS_FCNTL_H
#if (defined(__redox__))
#define O_NOFOLLOW 0x80000000
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
This diff is collapsed.
Click to expand it.
src/header/fcntl/redox.rs
+
3
−
1
View file @
2fdca9bd
...
...
@@ -17,4 +17,6 @@ pub const O_EXCL: c_int = 0x0800_0000;
pub
const
O_DIRECTORY
:
c_int
=
0x1000_0000
;
pub
const
O_PATH
:
c_int
=
0x2000_0000
;
pub
const
O_SYMLINK
:
c_int
=
0x4000_0000
;
pub
const
O_NOFOLLOW
:
c_int
=
0x8000_0000
;
// Negative to allow it to be used as int
// TODO: Fix negative values missing from includes
pub
const
O_NOFOLLOW
:
c_int
=
-
0x8000_0000
;
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