~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

Viewing changes to cmd-line-utils/libedit/sys.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $NetBSD: sys.h,v 1.9 2004/01/17 17:57:40 christos Exp $ */
 
1
/*      $NetBSD: sys.h,v 1.17 2011/09/28 14:08:04 christos Exp $        */
2
2
 
3
3
/*-
4
4
 * Copyright (c) 1992, 1993
48
48
# define __attribute__(A)
49
49
#endif
50
50
 
51
 
#ifndef _DIAGASSERT
52
 
# define _DIAGASSERT(x)
53
 
#endif
54
 
 
55
 
#ifndef SIZE_T_MAX
56
 
# define SIZE_T_MAX UINT_MAX
57
 
#endif
58
 
 
59
51
#ifndef __BEGIN_DECLS
60
52
# ifdef  __cplusplus
61
53
#  define __BEGIN_DECLS  extern "C" {
79
71
                        /* When we want to hide everything      */
80
72
#endif
81
73
 
82
 
#ifndef HAVE_U_INT32_T
83
 
typedef unsigned int  u_int32_t;
84
 
#endif
85
 
 
86
 
#ifndef _PTR_T
87
 
# define _PTR_T
88
 
typedef void    *ptr_t;
89
 
#endif
90
 
 
91
 
#ifndef _IOCTL_T
92
 
# define _IOCTL_T
93
 
typedef void    *ioctl_t;
 
74
#ifndef __arraycount
 
75
# define __arraycount(a) (sizeof(a) / sizeof(*(a)))
94
76
#endif
95
77
 
96
78
#include <stdio.h>
110
92
char    *fgetln(FILE *fp, size_t *len);
111
93
#endif
112
94
 
 
95
#ifdef __linux__
 
96
/* Apparently we need _GNU_SOURCE defined to get access to wcsdup on Linux */
 
97
#ifndef _GNU_SOURCE
 
98
#define _GNU_SOURCE
 
99
#endif
 
100
#endif
 
101
 
 
102
#ifndef __USE_XOPEN
 
103
#define __USE_XOPEN
 
104
#endif
 
105
 
 
106
#include <wchar.h>
 
107
#include <wctype.h>
 
108
 
 
109
#ifndef HAVE_WCSDUP
 
110
wchar_t *wcsdup(const wchar_t *);
 
111
#endif
 
112
 
 
113
#ifndef _DIAGASSERT
 
114
#define _DIAGASSERT(x)
 
115
#endif
 
116
 
 
117
#ifndef __RCSID
 
118
#define __RCSID(x)
 
119
#endif
 
120
 
 
121
#ifndef HAVE_U_INT32_T
 
122
typedef unsigned int    u_int32_t;
 
123
#endif
 
124
 
 
125
#ifndef SIZE_T_MAX
 
126
#define SIZE_T_MAX      ((size_t)-1)
 
127
#endif
 
128
 
113
129
#define REGEX           /* Use POSIX.2 regular expression functions */
114
130
#undef  REGEXP          /* Use UNIX V8 regular expression functions */
115
131
 
116
 
#ifdef __SunOS
 
132
#if defined(__sun)
117
133
extern int tgetent(char *, const char *);
118
134
extern int tgetflag(char *);
119
135
extern int tgetnum(char *);
162
178
#  define strerror(e)   sys_errlist[e]
163
179
# endif
164
180
# ifdef SABER
165
 
extern ptr_t    memcpy(ptr_t, const ptr_t, size_t);
166
 
extern ptr_t    memset(ptr_t, int, size_t);
 
181
extern void *   memcpy(void *, const void *, size_t);
 
182
extern void *   memset(void *, int, size_t);
167
183
# endif
168
184
extern char    *fgetline(FILE *, int *);
169
185
#endif