~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

Viewing changes to cmd-line-utils/libedit/np/vis.h

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $NetBSD: vis.h,v 1.16 2005/09/13 01:44:32 christos Exp $        */
 
1
/*      $NetBSD: vis.h,v 1.19 2011/03/12 19:52:45 christos Exp $        */
2
2
 
3
3
/*-
4
4
 * Copyright (c) 1990, 1993
39
39
/*
40
40
 * to select alternate encoding format
41
41
 */
42
 
#define VIS_OCTAL       0x01    /* use octal \ddd format */
43
 
#define VIS_CSTYLE      0x02    /* use \[nrft0..] where appropiate */
 
42
#define VIS_OCTAL       0x001   /* use octal \ddd format */
 
43
#define VIS_CSTYLE      0x002   /* use \[nrft0..] where appropiate */
44
44
 
45
45
/*
46
46
 * to alter set of characters encoded (default is to encode all
47
47
 * non-graphic except space, tab, and newline).
48
48
 */
49
 
#define VIS_SP          0x04    /* also encode space */
50
 
#define VIS_TAB         0x08    /* also encode tab */
51
 
#define VIS_NL          0x10    /* also encode newline */
 
49
#define VIS_SP          0x004   /* also encode space */
 
50
#define VIS_TAB         0x008   /* also encode tab */
 
51
#define VIS_NL          0x010   /* also encode newline */
52
52
#define VIS_WHITE       (VIS_SP | VIS_TAB | VIS_NL)
53
 
#define VIS_SAFE        0x20    /* only encode "unsafe" characters */
 
53
#define VIS_SAFE        0x020   /* only encode "unsafe" characters */
54
54
 
55
55
/*
56
56
 * other
57
57
 */
58
 
#define VIS_NOSLASH     0x40    /* inhibit printing '\' */
59
 
#define VIS_HTTPSTYLE   0x80    /* http-style escape % HEX HEX */
 
58
#define VIS_NOSLASH     0x040   /* inhibit printing '\' */
 
59
#define VIS_HTTP1808    0x080   /* http-style escape % hex hex */
 
60
#define VIS_HTTPSTYLE   0x080   /* http-style escape % hex hex */
 
61
#define VIS_MIMESTYLE   0x100   /* mime-style escape = HEX HEX */
 
62
#define VIS_HTTP1866    0x200   /* http-style &#num; or &string; */
 
63
#define VIS_NOESCAPE    0x400   /* don't decode `\' */
 
64
#define _VIS_END        0x800   /* for unvis */
60
65
 
61
66
/*
62
67
 * unvis return codes
70
75
/*
71
76
 * unvis flags
72
77
 */
73
 
#define UNVIS_END       1       /* no more characters */
 
78
#define UNVIS_END       _VIS_END        /* no more characters */
 
79
/* XXXMYSQL */
 
80
#ifndef __RENAME
 
81
#define __RENAME(x)
 
82
#endif
74
83
 
75
84
__BEGIN_DECLS
76
85
char    *vis(char *, int, int, int);
 
86
char    *nvis(char *, size_t, int, int, int);
 
87
 
77
88
char    *svis(char *, int, int, int, const char *);
 
89
char    *snvis(char *, size_t, int, int, int, const char *);
 
90
 
78
91
int     strvis(char *, const char *, int);
 
92
int     strnvis(char *, size_t, const char *, int);
 
93
 
79
94
int     strsvis(char *, const char *, int, const char *);
 
95
int     strsnvis(char *, size_t, const char *, int, const char *);
 
96
 
80
97
int     strvisx(char *, const char *, size_t, int);
 
98
int     strnvisx(char *, size_t, const char *, size_t, int);
 
99
 
81
100
int     strsvisx(char *, const char *, size_t, int, const char *);
 
101
int     strsnvisx(char *, size_t, const char *, size_t, int, const char *);
 
102
 
82
103
int     strunvis(char *, const char *);
 
104
int     strnunvis(char *, size_t, const char *);
 
105
 
83
106
int     strunvisx(char *, const char *, int);
84
 
int     unvis(char *, int, int *, int);
 
107
int     strnunvisx(char *, size_t, const char *, int);
 
108
 
 
109
#ifndef __LIBC12_SOURCE__
 
110
int     unvis(char *, int, int *, int) __RENAME(__unvis50);
 
111
#endif
85
112
__END_DECLS
86
113
 
87
114
#endif /* !_VIS_H_ */