Rizin
unix-like reverse engineering framework and cli tools
private.h
Go to the documentation of this file.
1 //
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
10 //
12 
13 #include "sysdefs.h"
14 #include "mythread.h"
15 
16 #include "lzma.h"
17 
18 #include <sys/types.h>
19 #include <sys/stat.h>
20 #include <errno.h>
21 #include <signal.h>
22 #include <locale.h>
23 #include <stdio.h>
24 #include <unistd.h>
25 
26 #include "tuklib_gettext.h"
27 #include "tuklib_progname.h"
28 #include "tuklib_exit.h"
29 #include "tuklib_mbstr.h"
30 
31 #if defined(_WIN32) && !defined(__CYGWIN__)
32 # define WIN32_LEAN_AND_MEAN
33 # include <windows.h>
34 #endif
35 
36 #ifndef STDIN_FILENO
37 # define STDIN_FILENO (fileno(stdin))
38 #endif
39 
40 #ifndef STDOUT_FILENO
41 # define STDOUT_FILENO (fileno(stdout))
42 #endif
43 
44 #ifndef STDERR_FILENO
45 # define STDERR_FILENO (fileno(stderr))
46 #endif
47 
48 #ifdef HAVE_CAPSICUM
49 # define ENABLE_SANDBOX 1
50 #endif
51 
52 #include "main.h"
53 #include "mytime.h"
54 #include "coder.h"
55 #include "message.h"
56 #include "args.h"
57 #include "hardware.h"
58 #include "file_io.h"
59 #include "options.h"
60 #include "signals.h"
61 #include "suffix.h"
62 #include "util.h"
63 
64 #ifdef HAVE_DECODERS
65 # include "list.h"
66 #endif
Argument parsing.
Compresses or uncompresses a file.
I/O types and functions.
List information about .xz files.
The public API of liblzma data compression library.
Miscellaneous declarations.
Printing messages to stderr.
Some threading related helper macros and functions.
Time handling functions.
Parser for filter-specific options.
Handling signals to abort operation.
Checks filename suffix and creates the destination filename.
Common includes, definitions, system-specific things etc.
Close stdout and stderr, and exit.
Wrapper for gettext and friends.
Utility functions for handling multibyte strings.
Program name to be displayed in messages.
Miscellaneous utility functions.
Detection of available hardware resources.