Deleted Added
full compact
file.h (191736) file.h (192348)
1/*
2 * Copyright (c) Ian F. Darwin 1986-1995.
3 * Software written by Ian F. Darwin and others;
4 * maintained 1995-present by Christos Zoulas and others.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 13 unchanged lines hidden (view full) ---

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28/*
29 * file.h - definitions for file(1) program
1/*
2 * Copyright (c) Ian F. Darwin 1986-1995.
3 * Software written by Ian F. Darwin and others;
4 * maintained 1995-present by Christos Zoulas and others.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 13 unchanged lines hidden (view full) ---

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28/*
29 * file.h - definitions for file(1) program
30 * @(#)$File: file.h,v 1.118 2009/02/03 20:27:51 christos Exp $
30 * @(#)$File: file.h,v 1.119 2009/02/04 18:24:32 christos Exp $
31 */
32
33#ifndef __file_h__
34#define __file_h__
35
36#ifdef HAVE_CONFIG_H
37#include <config.h>
38#endif

--- 343 unchanged lines hidden (view full) ---

382protected void file_magwarn(struct magic_set *, const char *, ...)
383 __attribute__((__format__(__printf__, 2, 3)));
384protected void file_mdump(struct magic *);
385protected void file_showstr(FILE *, const char *, size_t);
386protected size_t file_mbswidth(const char *);
387protected const char *file_getbuffer(struct magic_set *);
388protected ssize_t sread(int, void *, size_t, int);
389protected int file_check_mem(struct magic_set *, unsigned int);
31 */
32
33#ifndef __file_h__
34#define __file_h__
35
36#ifdef HAVE_CONFIG_H
37#include <config.h>
38#endif

--- 343 unchanged lines hidden (view full) ---

382protected void file_magwarn(struct magic_set *, const char *, ...)
383 __attribute__((__format__(__printf__, 2, 3)));
384protected void file_mdump(struct magic *);
385protected void file_showstr(FILE *, const char *, size_t);
386protected size_t file_mbswidth(const char *);
387protected const char *file_getbuffer(struct magic_set *);
388protected ssize_t sread(int, void *, size_t, int);
389protected int file_check_mem(struct magic_set *, unsigned int);
390protected int file_looks_utf8(const unsigned char *, size_t, unichar *, size_t *);
390protected int file_looks_utf8(const unsigned char *, size_t, unichar *,
391 size_t *);
392#ifdef __EMX__
393protected int file_os2_apptype(struct magic_set *, const char *, const void *,
394 size_t);
395#endif /* __EMX__ */
391
396
397
392#ifndef COMPILE_ONLY
393extern const char *file_names[];
394extern const size_t file_nnames;
395#endif
396
397#ifndef HAVE_STRERROR
398extern int sys_nerr;
399extern char *sys_errlist[];

--- 45 unchanged lines hidden ---
398#ifndef COMPILE_ONLY
399extern const char *file_names[];
400extern const size_t file_nnames;
401#endif
402
403#ifndef HAVE_STRERROR
404extern int sys_nerr;
405extern char *sys_errlist[];

--- 45 unchanged lines hidden ---