Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: holzschu/ios_system
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: Auxiliary
Choose a base ref
...
head repository: holzschu/ios_system
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 5,149 changed files with 627,598 additions and 209,019 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "wasm3"]
path = wasm3
url = https://github.com/wasm3/wasm3.git
url = git@github.com:holzschu/wasm3.git
48 changes: 24 additions & 24 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -12,43 +12,43 @@ let package = Package(
targets: [
.binaryTarget(
name: "ios_system",
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.0/ios_system.xcframework.zip",
checksum: "635fc346304416f05f94a61ded08a2a5792f5072081eca7c142834326366d4d0"
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.2/ios_system.xcframework.zip",
checksum: "f8e1364037de546809065ecdf804277fa7b95faffc32604e91ecb4de44d6294e"
),
.binaryTarget(
name: "awk",
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.0/awk.xcframework.zip",
checksum: "d8fc59849698f9b0b43b5fa77d7d38410ec95482965e3a11afe03e6bebd06b88"
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.2/awk.xcframework.zip",
checksum: "73abc0d502eab50e6bbdd0e49b0cf592f3a85b3843c43de6d7f42c27cde9b953"
),
.binaryTarget(
name: "curl_ios",
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.0/curl_ios.xcframework.zip",
checksum: "c07f2fca448a1cc23ba98bd979962a44587b4017508e101e1f7dcb4d0ca27b60"
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.2/curl_ios.xcframework.zip",
checksum: "7338fb9ae8094356c8cd523cfda9e4c60b52d710488432eb64cf57731b388dd2"
),
.binaryTarget(
name: "files",
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.0/files.xcframework.zip",
checksum: "c24641cf21f710d6db0832399e261c01b3504caf86ff6d13dcf0dcbaa1dd1172"
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.2/files.xcframework.zip",
checksum: "d0643e2244009fc5279f1f969c6da47ca197b4e7c9dac27dea09ba0a5f1567d7"
),
.binaryTarget(
name: "shell",
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.0/shell.xcframework.zip",
checksum: "cbd1a7675990777cef0d19c85295915f9d5af4430d1c7c631322d6e19495b148"
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.2/shell.xcframework.zip",
checksum: "876b709c1b76cbc1748d434fcbc2cea1aea2e281572e5fadc40244dd8a549757"
),
.binaryTarget(
name: "ssh_cmd",
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.0/ssh_cmd.xcframework.zip",
checksum: "67174120060604888ee15c7b5f71686b671d80224f1cd9576f8d24381ed96759"
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.2/ssh_cmd.xcframework.zip",
checksum: "342065209123f54c92eb78a0fbda579e61948443e5f60e41d8fe356a3fe8f2ff"
),
.binaryTarget(
name: "tar",
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.0/tar.xcframework.zip",
checksum: "e5e1ca866576d291a75b9f8ae18cdf215a6b70efde3144e7a0905488b0d42dc5"
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.2/tar.xcframework.zip",
checksum: "6ffe4ed265060f971df229dd1d2bff90e7bc78c80c50dcc3a0a633face440bc4"
),
.binaryTarget(
name: "text",
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.0/text.xcframework.zip",
checksum: "c832c4e6b234c297526f2e16cfbf197da5be332dc69a3bdf452e135f8c33a77c"
url: "https://github.com/holzschu/ios_system/releases/download/v3.0.2/text.xcframework.zip",
checksum: "697bee697b509d0dc8acc156a7430f453c29878d8af273adfb8902643c70ea0f"
),
// Other frameworks (no auto-build, so still at .../2.7/...)
.binaryTarget(
@@ -79,12 +79,12 @@ let package = Package(
]
)
/* checksums computed by github action, from https://github.com/holzschu/ios_system/releases/tag/v3.0.1
ios_system.xcframework.zip 635fc346304416f05f94a61ded08a2a5792f5072081eca7c142834326366d4d0
awk.xcframework.zip d8fc59849698f9b0b43b5fa77d7d38410ec95482965e3a11afe03e6bebd06b88
curl_ios.xcframework.zip c07f2fca448a1cc23ba98bd979962a44587b4017508e101e1f7dcb4d0ca27b60
files.xcframework.zip c24641cf21f710d6db0832399e261c01b3504caf86ff6d13dcf0dcbaa1dd1172
shell.xcframework.zip cbd1a7675990777cef0d19c85295915f9d5af4430d1c7c631322d6e19495b148
ssh_cmd.xcframework.zip 67174120060604888ee15c7b5f71686b671d80224f1cd9576f8d24381ed96759
tar.xcframework.zip e5e1ca866576d291a75b9f8ae18cdf215a6b70efde3144e7a0905488b0d42dc5
text.xcframework.zip c832c4e6b234c297526f2e16cfbf197da5be332dc69a3bdf452e135f8c33a77c
ios_system.xcframework.zip f8e1364037de546809065ecdf804277fa7b95faffc32604e91ecb4de44d6294e
awk.xcframework.zip 73abc0d502eab50e6bbdd0e49b0cf592f3a85b3843c43de6d7f42c27cde9b953
curl_ios.xcframework.zip 7338fb9ae8094356c8cd523cfda9e4c60b52d710488432eb64cf57731b388dd2
files.xcframework.zip d0643e2244009fc5279f1f969c6da47ca197b4e7c9dac27dea09ba0a5f1567d7
shell.xcframework.zip 876b709c1b76cbc1748d434fcbc2cea1aea2e281572e5fadc40244dd8a549757
ssh_cmd.xcframework.zip 342065209123f54c92eb78a0fbda579e61948443e5f60e41d8fe356a3fe8f2ff
tar.xcframework.zip 6ffe4ed265060f971df229dd1d2bff90e7bc78c80c50dcc3a0a633face440bc4
text.xcframework.zip 697bee697b509d0dc8acc156a7430f453c29878d8af273adfb8902643c70ea0f
*/
148 changes: 148 additions & 0 deletions adv_cmds-adv_cmds-199.0.1/stty/cchar.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/

#ifndef lint
#if 0
static char sccsid[] = "@(#)cchar.c 8.5 (Berkeley) 4/2/94";
#endif
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>

#include <err.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>

#include "stty.h"
#include "extern.h"

static int c_cchar(const void *, const void *);

/*
* Special control characters.
*
* Cchars1 are the standard names, cchars2 are the old aliases.
* The first are displayed, but both are recognized on the
* command line.
*/
struct cchar cchars1[] = {
{ "discard", VDISCARD, CDISCARD },
{ "dsusp", VDSUSP, CDSUSP },
{ "eof", VEOF, CEOF },
{ "eol", VEOL, CEOL },
{ "eol2", VEOL2, CEOL },
{ "erase", VERASE, CERASE },
#ifndef __APPLE__
{ "erase2", VERASE2, CERASE2 },
#endif
{ "intr", VINTR, CINTR },
{ "kill", VKILL, CKILL },
{ "lnext", VLNEXT, CLNEXT },
{ "min", VMIN, CMIN },
{ "quit", VQUIT, CQUIT },
{ "reprint", VREPRINT, CREPRINT },
{ "start", VSTART, CSTART },
{ "status", VSTATUS, CSTATUS },
{ "stop", VSTOP, CSTOP },
{ "susp", VSUSP, CSUSP },
{ "time", VTIME, CTIME },
{ "werase", VWERASE, CWERASE },
{ NULL, 0, 0},
};

struct cchar cchars2[] = {
{ "brk", VEOL, CEOL },
{ "flush", VDISCARD, CDISCARD },
{ "rprnt", VREPRINT, CREPRINT },
{ NULL, 0, 0 },
};

static int
c_cchar(const void *a, const void *b)
{

return (strcmp(((const struct cchar *)a)->name, ((const struct cchar *)b)->name));
}

int
csearch(char ***argvp, struct info *ip)
{
struct cchar *cp, tmp;
long val;
char *arg, *ep, *name;

name = **argvp;

tmp.name = name;
if (!(cp = (struct cchar *)bsearch(&tmp, cchars1,
sizeof(cchars1)/sizeof(struct cchar) - 1, sizeof(struct cchar),
c_cchar)) && !(cp = (struct cchar *)bsearch(&tmp, cchars2,
sizeof(cchars2)/sizeof(struct cchar) - 1, sizeof(struct cchar),
c_cchar)))
return (0);

arg = *++*argvp;
if (!arg) {
warnx("option requires an argument -- %s", name);
stty_usage();
}

#define CHK(s) (*arg == s[0] && !strcmp(arg, s))
if (CHK("undef") || CHK("<undef>"))
ip->t.c_cc[cp->sub] = _POSIX_VDISABLE;
else if (cp->sub == VMIN || cp->sub == VTIME) {
val = strtol(arg, &ep, 10);
#ifdef __APPLE__
if (val == _POSIX_VDISABLE) {
warnx("value of %ld would disable the option -- %s",
val, name);
stty_usage();
}
#endif
if (val > UCHAR_MAX) {
warnx("maximum option value is %d -- %s",
UCHAR_MAX, name);
stty_usage();
}
if (*ep != '\0') {
warnx("option requires a numeric argument -- %s", name);
stty_usage();
}
ip->t.c_cc[cp->sub] = val;
} else if (arg[0] == '^')
ip->t.c_cc[cp->sub] = (arg[1] == '?') ? 0177 :
(arg[1] == '-') ? _POSIX_VDISABLE : arg[1] & 037;
else
ip->t.c_cc[cp->sub] = arg[0];
ip->set = 1;
return (1);
}
45 changes: 45 additions & 0 deletions adv_cmds-adv_cmds-199.0.1/stty/extern.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)extern.h 8.1 (Berkeley) 5/31/93
* $FreeBSD$
*/

int c_cchars(const void *, const void *);
int c_modes(const void *, const void *);
int csearch(char ***, struct info *);
void checkredirect(void);
void gprint(struct termios *, struct winsize *, int);
void gread(struct termios *, char *);
int ksearch(char ***, struct info *);
int msearch(char ***, struct info *);
void optlist(void);
void print(struct termios *, struct winsize *, int, enum FMT);
void stty_usage(void) __dead2;

extern struct cchar cchars1[], cchars2[];
Loading