OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [language/] [c/] [libc/] [string/] [v2_0/] [include/] [bsdstring.h] - Blame information for rev 249

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#ifndef CYGONCE_LIBC_BSDSTRING_H
2
#define CYGONCE_LIBC_BSDSTRING_H
3
/*===========================================================================
4
//
5
//      bsdstring.h
6
//
7
//      BSD standard string and memory area manipulation routines
8
//
9
//===========================================================================
10
//####ECOSGPLCOPYRIGHTBEGIN####
11
// -------------------------------------------
12
// This file is part of eCos, the Embedded Configurable Operating System.
13
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
14
//
15
// eCos is free software; you can redistribute it and/or modify it under
16
// the terms of the GNU General Public License as published by the Free
17
// Software Foundation; either version 2 or (at your option) any later version.
18
//
19
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
20
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
22
// for more details.
23
//
24
// You should have received a copy of the GNU General Public License along
25
// with eCos; if not, write to the Free Software Foundation, Inc.,
26
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27
//
28
// As a special exception, if other files instantiate templates or use macros
29
// or inline functions from this file, or you compile this file and link it
30
// with other works to produce a work based on this file, this file does not
31
// by itself cause the resulting work to be covered by the GNU General Public
32
// License. However the source code for this file must still be made available
33
// in accordance with section (3) of the GNU General Public License.
34
//
35
// This exception does not invalidate any other reasons why a work based on
36
// this file might be covered by the GNU General Public License.
37
//
38
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
39
// at http://sources.redhat.com/ecos/ecos-license/
40
// -------------------------------------------
41
//####ECOSGPLCOPYRIGHTEND####
42
//===========================================================================
43
//#####DESCRIPTIONBEGIN####
44
//
45
// Author(s):     jlarmour
46
// Contributors:
47
// Date:          2001-11-27
48
// Purpose:       This file provides various string functions normally
49
//                provided in the BSD UNIX operating system.
50
// Description:
51
// Usage:         Do not include this file directly - use #include <string.h>
52
//
53
//####DESCRIPTIONEND####
54
//
55
//=========================================================================*/
56
 
57
/* CONFIGURATION */
58
 
59
#include <pkgconf/libc_string.h>   /* Configuration header */
60
 
61
#ifdef CYGFUN_LIBC_STRING_BSD_FUNCS
62
 
63
#define __need_size_t
64
#include <stddef.h>
65
 
66
#ifdef __cplusplus
67
extern "C" {
68
#endif
69
 
70
/*=========================================================================*/
71
 
72
/* FUNCTION PROTOTYPES */
73
 
74
 
75
extern int
76
strcasecmp( const char * /* s1 */, const char * /* s2 */ );
77
 
78
extern int
79
strncasecmp( const char * /* s1 */, const char * /* s2 */, size_t /* n */ );
80
 
81
extern int
82
bcmp( const void * /* s1 */, const void * /* s2 */, size_t /* n */ );
83
 
84
extern void
85
bcopy( const void * /* src */, void * /* dest */, size_t /* n */ );
86
 
87
extern void
88
bzero( void * /* s */, size_t /* n */ );
89
 
90
extern char *
91
index( const char * /* s */, int /* c */ );
92
 
93
extern char *
94
rindex( const char * /* s */, int /* c */ );
95
 
96
extern void
97
swab( const void * /* from */, void * /* to */, size_t /* n */ );
98
 
99
/*=========================================================================*/
100
 
101
#ifdef __cplusplus
102
}   /* extern "C" */
103
#endif
104
 
105
#endif /* ifdef CYGFUN_LIBC_STRING_BSD_FUNCS */
106
 
107
#endif /* CYGONCE_LIBC_BSDSTRING_H multiple inclusion protection */
108
 
109
/* EOF bsdstring.h */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.