-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit on 20180422 branch master 035498827
- Loading branch information
Showing
13 changed files
with
88 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash -e | ||
# Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 | ||
# Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com | ||
# https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. | ||
# https://sdrausty.github.io/TermuxArch/README has information about TermuxArch. | ||
################################################################################ | ||
clangif () { | ||
if [ ! -x $PREFIX/bin/clang ];then | ||
printf "\n\033[1;34mInstalling \033[0;32mclang\033[1;34m…\n\n\033[1;32m" | ||
pkg install clang --yes | ||
printf "\n\033[1;34mInstalling \033[0;32mclang\033[1;34m: \033[1;32mDONE\n\n\033[0m" | ||
fi | ||
if [ ! -x $PREFIX/bin/clang ];then | ||
pe | ||
fi | ||
} | ||
|
||
addtestapp () { | ||
cat > testapp.c <<- EOM | ||
#include <stdio.h> | ||
#include <errno.h> | ||
#include <fcntl.h> | ||
int main() { | ||
int a = open("nonexistent-test-file-a", O_RDONLY); | ||
int ae = errno; | ||
int b = open("nonexistent-test-dir/nonexistent-test-file-b", O_RDONLY); | ||
int be = errno; | ||
int c = open("nonexistent-test-file-c", O_RDONLY); | ||
int ce = errno; | ||
printf("[%d %d %d %d %d %d]\n", a, ae, b, be, c, ce); | ||
} | ||
EOM | ||
chmod 770 testapp.c | ||
} | ||
|
||
clangif | ||
addtestapp | ||
|
||
printf "\n\033[1;32mPRoot test results:\n\n\033[0m" | ||
clang testapp.c -o testapp | ||
PROOT_NO_SECCOMP=1 proot ./testapp | ||
printf "\n\033[0m" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <stdio.h> | ||
#include <errno.h> | ||
#include <fcntl.h> | ||
int main() { | ||
int a = open("nonexistent-test-file-a", O_RDONLY); | ||
int ae = errno; | ||
int b = open("nonexistent-test-dir/nonexistent-test-file-b", O_RDONLY); | ||
int be = errno; | ||
int c = open("nonexistent-test-file-c", O_RDONLY); | ||
int ce = errno; | ||
printf("[%d %d %d %d %d %d]\n", a, ae, b, be, c, ce); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9f95f99a045a552d4c37f5167180df6050ab4408ea36587bf6746eaf4a569c6e754c1dc60aeca5456fd5d092354500f7c68f665cf82d983a42292c14f3a42df7 setupTermuxArch.tar.gz | ||
85b96c61b1685307905574a3bfd1031d8cb14e65d85cd0e1c9072b885faaf785dbc57b648b9bcea28b88f49aaf19fd5077f6377bb32225231fc80314da689b61 setupTermuxArch.tar.gz |
Binary file not shown.