Skip to content

Commit

Permalink
Merge branch 'master' into blink_master
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cabanero committed Mar 28, 2024
2 parents 61f51be + cb41911 commit 4181c97
Show file tree
Hide file tree
Showing 5,147 changed files with 627,690 additions and 209,101 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 .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2

- name: xcode-select
run: sudo xcode-select -s /Applications/Xcode_12.3.app
run: sudo xcode-select -s /Applications/Xcode.app

- name: build-ios_system
run: swift run --package-path xcfs build
Expand Down
50 changes: 25 additions & 25 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: "66f4a5e696e29f3c70e8bab3a3e8c5f5a0bda48ab102e9db98a90db93b0981ea"
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: "d0ac9d6d98b8129c8b392a337c7d5e8289cdbdf9be3d5e6a5376891489c520a1"
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: "8281e5b74ce6c4f6132415172cc806d097ba283048eb0882d14e1485ec49dade"
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: "8296849e51ee9ddbb3796a1a87bb3a411cfdabd827d48bd5713fbfb3333d9862"
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: "846651a205e9d781f1f71d3124b5cfca3edfa7722a6c11977ab9c6c73049a810"
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: "9b57b07d4e552f30f7127843860defe4e8edbad8c0b5f2e4c7e99399713b87e6"
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: "f5769e81aa15730cc041a7d95a8a8b549888633b2649b4f0adc20b437c25fb4d"
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: "bd594ed4bbc67cf9c9393e360a35a35dd9674a4be0d460622221935ea7c76eb2"
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(
Expand Down Expand Up @@ -78,13 +78,13 @@ let package = Package(
)
]
)
/* checksums computed by github action, from https://github.com/holzschu/ios_system/releases/tag/v3.0.0
ios_system.xcframework.zip 66f4a5e696e29f3c70e8bab3a3e8c5f5a0bda48ab102e9db98a90db93b0981ea
awk.xcframework.zip d0ac9d6d98b8129c8b392a337c7d5e8289cdbdf9be3d5e6a5376891489c520a1
curl_ios.xcframework.zip 8281e5b74ce6c4f6132415172cc806d097ba283048eb0882d14e1485ec49dade
files.xcframework.zip 8296849e51ee9ddbb3796a1a87bb3a411cfdabd827d48bd5713fbfb3333d9862
shell.xcframework.zip 846651a205e9d781f1f71d3124b5cfca3edfa7722a6c11977ab9c6c73049a810
ssh_cmd.xcframework.zip 9b57b07d4e552f30f7127843860defe4e8edbad8c0b5f2e4c7e99399713b87e6
tar.xcframework.zip f5769e81aa15730cc041a7d95a8a8b549888633b2649b4f0adc20b437c25fb4d
text.xcframework.zip bd594ed4bbc67cf9c9393e360a35a35dd9674a4be0d460622221935ea7c76eb2
/* checksums computed by github action, from https://github.com/holzschu/ios_system/releases/tag/v3.0.1
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

0 comments on commit 4181c97

Please sign in to comment.