mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Reimport zip into third party
This commit is contained in:
parent
60cb435cb4
commit
648bf6555c
22 changed files with 1555 additions and 569 deletions
19
third_party/zip/zipsplit.c
vendored
19
third_party/zip/zipsplit.c
vendored
|
@ -1,4 +1,4 @@
|
|||
/* clang-format off */
|
||||
// clang-format off
|
||||
/*
|
||||
zipsplit.c - Zip 3
|
||||
|
||||
|
@ -21,12 +21,12 @@
|
|||
#define DEFCPYRT /* main module: enable copyright string defines! */
|
||||
#include "third_party/zip/revision.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/mem/alg.h"
|
||||
#include "libc/calls/sigtimedwait.h"
|
||||
#include "libc/calls/struct/sigaction.h"
|
||||
#include "libc/sysv/consts/sig.h"
|
||||
#include "libc/log/log.h"
|
||||
#include "libc/calls/struct/siginfo.h"
|
||||
#include "libc/sysv/consts/sa.h"
|
||||
#include "libc/sysv/consts/sicode.h"
|
||||
#include "libc/sysv/consts/ss.h"
|
||||
|
||||
#define DEFSIZ 36000L /* Default split size (change in help() too) */
|
||||
#ifdef MSDOS
|
||||
|
@ -41,6 +41,11 @@
|
|||
# define ZPATH_SEP '.'
|
||||
#else
|
||||
#ifdef QDOS
|
||||
# define ZPATH_SEP '_'
|
||||
# define INDEX "zipsplit_idx" /* Name of index file */
|
||||
# define TEMPL_FMT "%%0%dld_zip"
|
||||
# define TEMPL_SIZ 17
|
||||
# define exit(p1) QDOSexit()
|
||||
#else
|
||||
#ifdef VM_CMS
|
||||
# define INDEX "zipsplit.idx" /* Name of index file */
|
||||
|
@ -586,6 +591,8 @@ char **argv; /* command line tokens */
|
|||
/* Informational messages are written to stdout. */
|
||||
mesg = stdout;
|
||||
|
||||
init_upper(); /* build case map table */
|
||||
|
||||
/* Go through args */
|
||||
signal(SIGINT, handler);
|
||||
#ifdef SIGTERM /* Amiga has no SIGTERM */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue