mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-02 00:16:04 +03:00
AC_CHECK_TYPES([mode_t off_t pid_t socklen_t uid_t nlink_t],,,
This commit is contained in:
parent
de5d9b1d40
commit
ecfbe13fa3
@ -1,3 +1,9 @@
|
||||
2005-07-14 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* util.c (get_compression_type): Use an enumeration instead of
|
||||
an int for the return type.
|
||||
* util.h: Likewise.
|
||||
|
||||
2005-07-13 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* view.c: Always call display() before close_error_pipe() to make
|
||||
|
@ -894,11 +894,8 @@ char *get_current_wd (char *buffer, int size)
|
||||
}
|
||||
#endif /* !USE_VFS */
|
||||
|
||||
/* This function returns 0 if the file is not in not compressed by
|
||||
* one of the supported compressors (gzip, bzip, bzip2). Otherwise,
|
||||
* the compression type is returned, as defined in util.h
|
||||
* Warning: this function moves the current file pointer */
|
||||
int get_compression_type (int fd)
|
||||
enum compression_type
|
||||
get_compression_type (int fd)
|
||||
{
|
||||
unsigned char magic[4];
|
||||
|
||||
|
@ -181,14 +181,16 @@ int mc_mkstemps(char **pname, const char *prefix, const char *suffix);
|
||||
|
||||
char *mc_realpath(const char *path, char resolved_path[]);
|
||||
|
||||
enum {
|
||||
enum compression_type {
|
||||
COMPRESSION_NONE,
|
||||
COMPRESSION_GZIP,
|
||||
COMPRESSION_BZIP,
|
||||
COMPRESSION_BZIP2
|
||||
};
|
||||
|
||||
int get_compression_type (int fd);
|
||||
/* Looks for ``magic'' bytes at the start of the VFS file to guess the
|
||||
* compression type. Side effect: modifies the file position. */
|
||||
enum compression_type get_compression_type (int fd);
|
||||
const char *decompress_extension (int type);
|
||||
|
||||
/* Hook functions */
|
||||
|
Loading…
x
Reference in New Issue
Block a user