"Fossies" - the Fresh Open Source Software Archive

Member "libsafe-2.0-16/src/util.h" (30 May 2002, 1924 Bytes) of package /linux/misc/old/libsafe-2.0-16.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  * $Name: release2_0-16 $
    3  * $Id: util.h,v 1.16 2002/05/30 14:13:08 ttsai Exp $
    4  *
    5  * Copyright (C) 2002 Avaya Labs, Avaya Inc.
    6  * Copyright (C) 1999 Bell Labs, Lucent Technologies.
    7  * Copyright (C) Arash Baratloo, Timothy Tsai, and Navjot Singh.
    8  *
    9  * This file is part of the Libsafe library.
   10  * Libsafe version 2.x: protecting against stack smashing attacks.
   11  *
   12  * This library is free software; you can redistribute it and/or
   13  * modify it under the terms of the GNU Lesser General Public
   14  * License as published by the Free Software Foundation; either
   15  * version 2.1 of the License, or (at your option) any later version.
   16  *
   17  * This library is distributed in the hope that it will be useful,
   18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   20  * Lesser General Public License for more details.
   21  *
   22  * You should have received a copy of the GNU Lesser General Public
   23  * License along with this library; if not, write to the Free Software
   24  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   25  *
   26  * For more information, 
   27  *   visit http://www.research.avayalabs.com/project/libsafe/index.html
   28  *   or email libsafe@research.avayalabs.com
   29  */
   30 
   31 #ifndef _UTIL_H
   32 #define _UTIL_H
   33 
   34 #include <unistd.h>
   35 #include <sys/param.h>
   36 
   37 #ifdef  __cplusplus
   38 extern "C" {
   39 #endif
   40 
   41 #define LIBNAME  "libsafe.so"
   42 #define VERSION  LIBSAFE_VERSION
   43 
   44 extern uint _libsafe_stackVariableP(void *addr);
   45 extern uint _libsafe_raVariableP(void *addr);
   46 extern uint _libsafe_span_stack_frames(void *start_addr, void *end_addr);
   47 extern void _libsafe_die(char *format, ...);
   48 extern void _libsafe_warn(char *format, ...);
   49 extern int _libsafe_save_ra_fp(int maxcount, caddr_t *ra_array, caddr_t
   50     *fp_array);
   51 extern int _libsafe_verify_ra_fp(int maxcount, caddr_t *ra_array, caddr_t
   52     *fp_array);
   53 
   54 #ifdef  __cplusplus
   55 }
   56 #endif
   57 
   58 #endif              /* _UTIL_H */