Skip to content
Snippets Groups Projects
Verified Commit 35bcf931 authored by Jeremy Soller's avatar Jeremy Soller
Browse files
parents 0a44d454 950b4526
Branches
No related tags found
No related merge requests found
Showing
with 25 additions and 33 deletions
...@@ -35,6 +35,7 @@ all: | libc libm ...@@ -35,6 +35,7 @@ all: | libc libm
clean: clean:
$(CARGO) clean $(CARGO) clean
make -C tests clean make -C tests clean
rm -rf sysroot
check: check:
$(CARGO) check $(CARGO) check
...@@ -43,16 +44,16 @@ fmt: ...@@ -43,16 +44,16 @@ fmt:
./fmt.sh ./fmt.sh
install: all install: all
mkdir -pv "$(DESTDIR)/lib"
mkdir -pv "$(DESTDIR)/include" mkdir -pv "$(DESTDIR)/include"
cp -rv "include"/* "$(DESTDIR)/include" cp -rv "include"/* "$(DESTDIR)/include"
cp -rv "$(BUILD)/include"/* "$(DESTDIR)/include" cp -rv "$(BUILD)/include"/* "$(DESTDIR)/include"
cp -v "openlibm/include"/*.h "$(DESTDIR)/include"
cp -v "openlibm/src"/*.h "$(DESTDIR)/include"
mkdir -pv "$(DESTDIR)/lib"
cp -v "$(BUILD)/release/libc.a" "$(DESTDIR)/lib" cp -v "$(BUILD)/release/libc.a" "$(DESTDIR)/lib"
cp -v "$(BUILD)/release/crt0.o" "$(DESTDIR)/lib" cp -v "$(BUILD)/release/crt0.o" "$(DESTDIR)/lib"
cp -v "$(BUILD)/release/crti.o" "$(DESTDIR)/lib" cp -v "$(BUILD)/release/crti.o" "$(DESTDIR)/lib"
cp -v "$(BUILD)/release/crtn.o" "$(DESTDIR)/lib" cp -v "$(BUILD)/release/crtn.o" "$(DESTDIR)/lib"
cp -rv "openlibm/include"/* "$(DESTDIR)/include"
cp -rv "openlibm/src"/*.h "$(DESTDIR)/include"
cp -v "$(BUILD)/openlibm/libopenlibm.a" "$(DESTDIR)/lib/libm.a" cp -v "$(BUILD)/openlibm/libopenlibm.a" "$(DESTDIR)/lib/libm.a"
libc: $(BUILD)/release/libc.a $(BUILD)/release/crt0.o $(BUILD)/release/crti.o $(BUILD)/release/crtn.o $(BUILD)/include libc: $(BUILD)/release/libc.a $(BUILD)/release/crt0.o $(BUILD)/release/crti.o $(BUILD)/release/crtn.o $(BUILD)/include
......
#define OPENLIBM_USE_HOST_FENV_H 1 #include <openlibm_complex.h>
#include <openlibm.h>
#define OPENLIBM_USE_HOST_FENV_H 1 #include <openlibm_math.h>
#include <openlibm.h>
#undef I
#undef complex
File moved
File moved
File moved
File moved
File moved
File moved
...@@ -5,3 +5,6 @@ style = "Tag" ...@@ -5,3 +5,6 @@ style = "Tag"
[enum] [enum]
prefix_with_name = true prefix_with_name = true
[export.rename]
"in_addr" = "struct in_addr"
sys_includes = [] sys_includes = []
include_guard = "_LIMITS_H" include_guard = "_LIMITS_H"
trailer = "#include <bits/limits.h>"
language = "C" language = "C"
style = "Tag" style = "Tag"
trailer = "#include <bits/limits.h>"
[enum] [enum]
prefix_with_name = true prefix_with_name = true
pub mod aio; pub mod _aio;
pub mod arpa_inet; pub mod arpa_inet;
pub mod assert; pub mod assert;
pub mod ctype; pub mod ctype;
...@@ -9,7 +9,7 @@ pub mod fenv; ...@@ -9,7 +9,7 @@ pub mod fenv;
pub mod float; pub mod float;
pub mod fnmatch; pub mod fnmatch;
pub mod getopt; pub mod getopt;
pub mod grp; pub mod _grp;
pub mod inttypes; pub mod inttypes;
pub mod libgen; pub mod libgen;
pub mod limits; pub mod limits;
...@@ -45,4 +45,4 @@ pub mod time; ...@@ -45,4 +45,4 @@ pub mod time;
pub mod unistd; pub mod unistd;
pub mod utime; pub mod utime;
pub mod wchar; pub mod wchar;
pub mod wctype; pub mod _wctype;
[package]
name = "netinet"
version = "0.1.0"
authors = ["Dan Robertson <danlrobertson89@gmail.com>"]
[dependencies]
in_h = { path = "in" }
sys_includes = ["sys/types.h", "sys/socket.h"] sys_includes = ["sys/types.h", "sys/socket.h"]
include_guard = "_NETINET_IN_H" include_guard = "_NETINET_IN_H"
style = "Both"
language = "C" language = "C"
style = "Tag"
[export] [export]
include = ["sockaddr_in6", "sockaddr_in", "ipv6_mreq"] include = ["sockaddr_in6", "sockaddr_in", "ipv6_mreq"]
......
sys_includes = ["sys/ioctl.h"] sys_includes = ["sys/ioctl.h"]
include_guard = "_SGTTY_H" include_guard = "_SGTTY_H"
style = "Tag"
language = "C" language = "C"
style = "Tag"
[enum] [enum]
prefix_with_name = true prefix_with_name = true
sys_includes = ["stdint.h", "sys/types.h", "bits/signal.h"] sys_includes = ["stdint.h", "sys/types.h", "bits/signal.h"]
include_guard = "_SIGNAL_H" include_guard = "_SIGNAL_H"
style = "Tag"
language = "C" language = "C"
style = "Tag"
[defines] [defines]
"target_os=linux" = "__linux__" "target_os=linux" = "__linux__"
......
include_guard = "_SYS_IOCTL_H" include_guard = "_SYS_IOCTL_H"
language = "C" language = "C"
style = "Tag"
# WORKAROUND:
# sgtty is used by another header, and cbindgen doesn't prefix that with `struct` :|
style = "Both"
[defines] [defines]
"target_os=linux" = "__linux__" "target_os=linux" = "__linux__"
......
...@@ -2,10 +2,10 @@ sys_includes = ["sys/types.h", "stdint.h", "sys/time.h"] ...@@ -2,10 +2,10 @@ sys_includes = ["sys/types.h", "stdint.h", "sys/time.h"]
include_guard = "_SYS_RESOURCE_H" include_guard = "_SYS_RESOURCE_H"
trailer = "#include <bits/sys/resource.h>" trailer = "#include <bits/sys/resource.h>"
language = "C" language = "C"
style = "Tag"
# WORKAROUND:
# Rusage is used by another header, and cbindgen does not prefix that usage with `struct` :|
style = "Both"
[enum] [enum]
prefix_with_name = true prefix_with_name = true
[export.rename]
"timeval" = "struct timeval"
...@@ -8,5 +8,7 @@ prefix_with_name = true ...@@ -8,5 +8,7 @@ prefix_with_name = true
[export] [export]
# fd_set is also defined in C because cbindgen is incompatible with mem::size_of booo # fd_set is also defined in C because cbindgen is incompatible with mem::size_of booo
exclude = ["FD_SETSIZE", "fd_set"] exclude = ["FD_SETSIZE", "fd_set"]
[export.rename]
"timeval" = "struct timeval"
sys_includes = ["stddef.h", "stdint.h", "sys/types.h"] sys_includes = ["stddef.h", "stdint.h", "sys/types.h"]
include_guard = "_SYS_SOCKET_H" include_guard = "_SYS_SOCKET_H"
style = "Both"
language = "C" language = "C"
style = "Tag"
[defines] [defines]
"target_os=linux" = "__linux__" "target_os=linux" = "__linux__"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment