Parolin
0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
val
xcx_xz
xz-5.6.2
xz-5.6.2
src
xz
private.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: 0BSD
2
4
//
7
//
8
// Author: Lasse Collin
9
//
11
12
#include "sysdefs.h"
13
#include "mythread.h"
14
15
#include "lzma.h"
16
17
#include <sys/types.h>
18
#include <sys/stat.h>
19
#include <errno.h>
20
#include <signal.h>
21
#include <locale.h>
22
#include <stdio.h>
23
24
#ifndef _MSC_VER
25
# include <unistd.h>
26
#endif
27
28
#include "tuklib_gettext.h"
29
#include "tuklib_progname.h"
30
#include "tuklib_exit.h"
31
#include "tuklib_mbstr.h"
32
33
#if defined(_WIN32) && !defined(__CYGWIN__)
34
# define WIN32_LEAN_AND_MEAN
35
# include <windows.h>
36
#endif
37
38
#ifdef _MSC_VER
39
# define fileno _fileno
40
#endif
41
42
#ifndef STDIN_FILENO
43
# define STDIN_FILENO (fileno(stdin))
44
#endif
45
46
#ifndef STDOUT_FILENO
47
# define STDOUT_FILENO (fileno(stdout))
48
#endif
49
50
#ifndef STDERR_FILENO
51
# define STDERR_FILENO (fileno(stderr))
52
#endif
53
54
// Handling SIGTSTP keeps time-keeping for progress indicator correct
55
// if xz is stopped. It requires use of clock_gettime() as that is
56
// async-signal safe in POSIX. Require also SIGALRM support since
57
// on systems where SIGALRM isn't available, progress indicator code
58
// polls the time and the SIGTSTP handling adds slight overhead to
59
// that code. Most (all?) systems that have SIGTSTP also have SIGALRM
60
// so this requirement won't exclude many systems.
61
#if defined(HAVE_CLOCK_GETTIME) && defined(SIGTSTP) && defined(SIGALRM)
62
# define USE_SIGTSTP_HANDLER 1
63
#endif
64
65
#include "
main.h
"
66
#include "
mytime.h
"
67
#include "
coder.h
"
68
#include "
message.h
"
69
#include "
args.h
"
70
#include "
hardware.h
"
71
#include "
file_io.h
"
72
#include "
options.h
"
73
#include "
sandbox.h
"
74
#include "
signals.h
"
75
#include "
suffix.h
"
76
#include "
util.h
"
77
78
#ifdef HAVE_DECODERS
79
# include "
list.h
"
80
#endif
sandbox.h
Sandbox support.
options.h
Parser for filter-specific options.
util.h
Miscellaneous utility functions.
args.h
Argument parsing.
coder.h
Compresses or uncompresses a file.
file_io.h
I/O types and functions.
hardware.h
Detection of available hardware resources.
list.h
List information about .xz files.
main.h
Miscellaneous declarations.
message.h
Printing messages to stderr.
mytime.h
Time handling functions.
signals.h
Handling signals to abort operation.
suffix.h
Checks filename suffix and creates the destination filename.
Generated by
1.12.0