home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 June
/
ccd0605.iso
/
LINUX
/
gopchop-1.1.7.tar.tar
/
gopchop-1.1.7.tar
/
gopchop-1.1.7
/
include
/
GOPchop.h
< prev
next >
Wrap
C/C++ Source or Header
|
2005-04-30
|
2KB
|
72 lines
/*
#
# Common definitions for the entire project.
#
# $Id: GOPchop.h,v 1.4 2005/04/30 20:22:37 keescook Exp $
#
# Copyright (C) 2003 Kees Cook
# kees@outflux.net, http://outflux.net/
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# http://www.gnu.org/copyleft/gpl.html
#
*/
#ifndef _GOPCHOP_H_
#define _GOPCHOP_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
/* get the cool numbers */
#include <stdint.h>
/* import locale functions */
#include "gettext.h"
/* figure out which fseek/ftell we need */
#ifdef HAVE_FSEEKO
# define FSEEK fseeko
# define FSEEK_NAME "fseeko"
# define FTELL ftello
# define FTELL_NAME "ftello"
#else
# define FSEEK fseek
# define FSEEK_NAME "fseek"
# define FTELL ftell
# define FTELL_NAME "ftell"
#endif
/* figure out off_t formatting */
#if _FILE_OFFSET_BITS==64 || defined(__NetBSD__)
# define OFF_T_FORMAT "llu"
#else
# warning "Not compiling for large file (>2G) support!"
# define OFF_T_FORMAT "lu"
#endif
/* define a string length used for short reports */
#define REPORT_LENGTH 128
/* standard boolean */
#ifndef TRUE
# define TRUE 1
#endif
#ifndef FALSE
# define FALSE 0
#endif
#endif /* _GOPCHOP_H_ */