mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
ba6c1738ce
Rename "port.h" to "portability.h" to avoid conflict with system header file name, and include the file in "Makefile.am". server-tools/instance-manager/Makefile.am: Ensure that the (recently added) header "portability.h" (renamed from "port.h") gets included in the source packages. server-tools/instance-manager/guardian.cc: Rename "port.h" to "portability.h" to avoid conflict with system header file name. server-tools/instance-manager/instance.cc: Rename "port.h" to "portability.h" to avoid conflict with system header file name. server-tools/instance-manager/instance_options.h: Rename "port.h" to "portability.h" to avoid conflict with system header file name. server-tools/instance-manager/listener.cc: Rename "port.h" to "portability.h" to avoid conflict with system header file name. server-tools/instance-manager/log.cc: Rename "port.h" to "portability.h" to avoid conflict with system header file name. server-tools/instance-manager/mysqlmanager.vcproj: Rename "port.h" to "portability.h" to avoid conflict with system header file name. server-tools/instance-manager/options.cc: Rename "port.h" to "portability.h" to avoid conflict with system header file name. server-tools/instance-manager/parse_output.cc: Rename "port.h" to "portability.h" to avoid conflict with system header file name. server-tools/instance-manager/portability.h: Adapt the protective CPP symbol to the changed file name. server-tools/instance-manager/priv.cc: Rename "port.h" to "portability.h" to avoid conflict with system header file name. server-tools/instance-manager/priv.h: Rename "port.h" to "portability.h" to avoid conflict with system header file name.
54 lines
1.8 KiB
C++
54 lines
1.8 KiB
C++
/* Copyright (C) 2003 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
#include <my_global.h>
|
|
#include "priv.h"
|
|
#include "portability.h"
|
|
|
|
/* the pid of the manager process (of the signal thread on the LinuxThreads) */
|
|
pid_t manager_pid;
|
|
|
|
/*
|
|
This flag is set if mysqlmanager has detected that it is running on the
|
|
system using LinuxThreads
|
|
*/
|
|
bool linuxthreads;
|
|
|
|
/*
|
|
The following string must be less then 80 characters, as
|
|
mysql_connection.cc relies on it
|
|
*/
|
|
const char mysqlmanager_version[] = "0.2-alpha";
|
|
|
|
const int mysqlmanager_version_length= sizeof(mysqlmanager_version) - 1;
|
|
|
|
const unsigned char protocol_version= PROTOCOL_VERSION;
|
|
|
|
unsigned long net_buffer_length= 16384;
|
|
|
|
unsigned long max_allowed_packet= 16384;
|
|
|
|
unsigned long net_read_timeout= 30; // same as in mysqld
|
|
|
|
unsigned long net_write_timeout= 60; // same as in mysqld
|
|
|
|
unsigned long net_retry_count= 10; // same as in mysqld
|
|
|
|
/* needed by net_serv.cc */
|
|
unsigned int test_flags= 0;
|
|
unsigned long bytes_sent = 0L, bytes_received = 0L;
|
|
unsigned long mysqld_net_retry_count = 10L;
|
|
unsigned long open_files_limit;
|