~ubuntu-branches/ubuntu/utopic/cdrdao/utopic

« back to all changes in this revision

Viewing changes to scsilib/include/strdefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Suffield
  • Date: 2004-06-24 22:33:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040624223316-534onzugaeeyq61j
Tags: upstream-1.1.9
ImportĀ upstreamĀ versionĀ 1.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* @(#)strdefs.h        1.8 03/03/09 Copyright 1996 J. Schilling */
 
2
/*
 
3
 *      Definitions for strings
 
4
 *
 
5
 *      Copyright (c) 1996 J. Schilling
 
6
 */
 
7
/*
 
8
 * This program is free software; you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation; either version 2, or (at your option)
 
11
 * any later version.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License along with
 
19
 * this program; see the file COPYING.  If not, write to the Free Software
 
20
 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
21
 */
 
22
 
 
23
#ifndef _STRDEFS_H
 
24
#define _STRDEFS_H
 
25
 
 
26
#ifndef _MCONFIG_H
 
27
#include <mconfig.h>
 
28
#endif
 
29
#ifndef _PROTOTYP_H
 
30
#include <prototyp.h>
 
31
#endif
 
32
 
 
33
/*
 
34
 * It may be that IBM's AIX has problems when doing
 
35
 * #include <string.h>
 
36
 * #include <strings.h>
 
37
 * So I moved the #include <strings.h> to the top. As the file strings.h
 
38
 * defines strcasecmp() we may need it...
 
39
 *
 
40
 * Note that the only real problem appears if we use rubbish FSF based code that
 
41
 * #defines _NO_PROTO
 
42
 */
 
43
#ifdef  HAVE_STRINGS_H
 
44
#ifndef _INCL_STRINGS_H
 
45
#include <strings.h>
 
46
#define _INCL_STRINGS_H
 
47
#endif
 
48
#endif  /* HAVE_STRINGS_H */
 
49
 
 
50
 
 
51
#ifdef  HAVE_STRING_H
 
52
#ifndef _INCL_STRING_H
 
53
#include <string.h>
 
54
#define _INCL_STRING_H
 
55
#endif
 
56
#else   /* HAVE_STRING_H */
 
57
 
 
58
#ifdef  __cplusplus
 
59
extern "C" {
 
60
#endif
 
61
 
 
62
#ifndef NULL
 
63
#define NULL    0
 
64
#endif
 
65
 
 
66
extern void *memcpy     __PR((void *, const void *, int));
 
67
extern void *memmove    __PR((void *, const void *, int));
 
68
extern char *strcpy     __PR((char *, const char *));
 
69
extern char *strncpy    __PR((char *, const char *, int));
 
70
 
 
71
extern char *strcat     __PR((char *, const char *));
 
72
extern char *strncat    __PR((char *, const char *, int));
 
73
 
 
74
extern int memcmp       __PR((const void *, const void *, int));
 
75
extern int strcmp       __PR((const char *, const char *));
 
76
extern int strcoll      __PR((const char *, const char *));
 
77
extern int strncmp      __PR((const char *, const char *, int));
 
78
extern int strxfrm      __PR((char *, const char *, int));
 
79
 
 
80
extern void *memchr     __PR((const void *, int, int));
 
81
extern char *strchr     __PR((const char *, int));
 
82
 
 
83
extern int strcspn      __PR((const char *, const char *));
 
84
/*#pragma int_to_unsigned strcspn*/
 
85
 
 
86
extern char *strpbrk    __PR((const char *, const char *));
 
87
extern char *strrchr    __PR((const char *, int));
 
88
 
 
89
extern int strspn       __PR((const char *, const char *));
 
90
/*#pragma int_to_unsigned strspn*/
 
91
 
 
92
extern char *strstr     __PR((const char *, const char *));
 
93
extern char *strtok     __PR((char *, const char *));
 
94
extern void *memset     __PR((void *, int, int));
 
95
extern char *strerror   __PR((int));
 
96
 
 
97
extern int strlen       __PR((const char *));
 
98
/*#pragma int_to_unsigned strlen*/
 
99
 
 
100
extern void *memccpy    __PR((void *, const void *, int, int));
 
101
 
 
102
extern int strcasecmp   __PR((const char *, const char *));
 
103
extern int strncasecmp  __PR((const char *, const char *, int));
 
104
 
 
105
/*#define       index   strchr*/
 
106
/*#define       rindex  strrchr*/
 
107
 
 
108
#ifdef  __cplusplus
 
109
}
 
110
#endif
 
111
 
 
112
#endif  /* HAVE_STRING_H */
 
113
 
 
114
#endif  /* _STRDEFS_H */