~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to server-tools/instance-manager/exit_codes.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_EXIT_CODES_H
 
2
#define INCLUDES_MYSQL_INSTANCE_MANAGER_EXIT_CODES_H
 
3
 
 
4
/*
 
5
   Copyright (C) 2006 MySQL AB
 
6
 
 
7
   This program is free software; you can redistribute it and/or modify
 
8
   it under the terms of the GNU General Public License as published by
 
9
   the Free Software Foundation; version 2 of the License.
 
10
 
 
11
   This program is distributed in the hope that it will be useful,
 
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
   GNU General Public License for more details.
 
15
 
 
16
   You should have received a copy of the GNU General Public License
 
17
   along with this program; if not, write to the Free Software
 
18
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
19
*/
 
20
 
 
21
/*
 
22
  This file contains a list of exit codes, which are used when Instance
 
23
  Manager is working in user-management mode.
 
24
*/
 
25
 
 
26
const int ERR_OK = 0;
 
27
 
 
28
const int ERR_OUT_OF_MEMORY = 1;
 
29
const int ERR_INVALID_USAGE = 2;
 
30
const int ERR_INTERNAL_ERROR = 3;
 
31
const int ERR_IO_ERROR = 4;
 
32
const int ERR_PASSWORD_FILE_CORRUPTED = 5;
 
33
const int ERR_PASSWORD_FILE_DOES_NOT_EXIST = 6;
 
34
 
 
35
const int ERR_CAN_NOT_READ_USER_NAME = 10;
 
36
const int ERR_CAN_NOT_READ_PASSWORD = 11;
 
37
const int ERR_USER_ALREADY_EXISTS = 12;
 
38
const int ERR_USER_NOT_FOUND = 13;
 
39
 
 
40
#endif // INCLUDES_MYSQL_INSTANCE_MANAGER_EXIT_CODES_H