Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
bstring.h
Go to the documentation of this file.
00001 
00002 /*
00003 
00004   Copyright (C) 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
00005 
00006   This program is free software; you can redistribute it and/or modify it
00007   under the terms of version 2 of the GNU General Public License as
00008   published by the Free Software Foundation.
00009 
00010   This program is distributed in the hope that it would be useful, but
00011   WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00013 
00014   Further, this software is distributed without any warranty that it is
00015   free of the rightful claim of any third person regarding infringement 
00016   or the like.  Any license provided herein, whether implied or 
00017   otherwise, applies only to this software file.  Patent licenses, if 
00018   any, provided herein do not apply to combinations of this program with 
00019   other software, or any other product whatsoever.  
00020 
00021   You should have received a copy of the GNU General Public License along
00022   with this program; if not, write the Free Software Foundation, Inc., 59
00023   Temple Place - Suite 330, Boston MA 02111-1307, USA.
00024 
00025   Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pky,
00026   Mountain View, CA 94043, or:
00027 
00028   http://www.sgi.com
00029 
00030   For further information regarding this notice, see:
00031 
00032   http://oss.sgi.com/projects/GenInfo/NoticeExplan
00033 
00034 */
00035 
00036 #ifdef __linux__
00037 
00038 /* 
00039  * On linux these functions are already declared in string.h, and we
00040  * want to avoid conflicting declarations.
00041  */ 
00042 #include <string.h>
00043 
00044 #else /* __linux__ */
00045 
00046 #ifndef __BSTRING_H__
00047 #define __BSTRING_H__
00048 #ifdef __cplusplus
00049 extern "C" {
00050 #endif
00051 
00052 
00053 
00054 #if !defined(_SIZE_T) && !defined(_SIZE_T_)
00055 #define _SIZE_T
00056 #if (_MIPS_SZLONG == 32)
00057 typedef unsigned int    size_t;
00058 #endif
00059 #if (_MIPS_SZLONG == 64)
00060 typedef unsigned long   size_t;
00061 #endif
00062 #endif
00063 
00064 extern void     bcopy(const void *, void *, size_t);
00065 extern int      bcmp(const void *, const void *, size_t);
00066 extern void     bzero(void *, size_t);
00067 extern void     blkclr(void *, size_t);
00068 
00069 #ifdef __cplusplus
00070 }
00071 #endif
00072 #endif /* !__BSTRING_H__ */
00073 
00074 #endif /* __linux__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines