|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 24.01 GB of 70.42 GB (34.1%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
share/
doc/
libinnodb-dev/
examples/
- drwxr-xr-x
|
Viewing file: test0aux.h (3.44 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
#ifndef _TEST0AUX_H #define TEST0AUX_H
#include <stdio.h> #include <stdlib.h>
#include "innodb.h"
#define USER_OPT 1000
#define OK(expr) \ do { \ ib_err_t ok_ib_err; \ ok_ib_err = expr; \ if (ok_ib_err != DB_SUCCESS) { \ fprintf(stderr, "%s: %s\n", #expr, \ ib_strerror(ok_ib_err)); \ exit(EXIT_FAILURE); \ } \ } while (0)
#ifndef __WIN__ #include <getopt.h> /* For getopt_long() and struct option. */ /* InnoDB command line parameters */ extern struct option ib_longopts[]; #endif /* __WIN__ */
/* Arbitrary string */ typedef struct ib_string { ib_byte_t* ptr; int len; } ib_string_t;
/* Config variable name=value pair. */ typedef struct ib_var { ib_string_t name; ib_string_t value; } ib_var_t;
/* Memory representation of the config file. */ typedef struct ib_config { ib_var_t* elems; ib_ulint_t n_elems; ib_ulint_t n_count; } ib_config_t;
/********************************************************************* Read a value from an integer column in an InnoDB tuple. @return column value */
ib_u64_t read_int_from_tuple( /*================*/ ib_tpl_t tpl, /*!< in: InnoDB tuple */ const ib_col_meta_t* col_meta, /*!< in: col meta data */ int i); /*!< in: column number */
/********************************************************************* Print all columns in a tuple. */
void print_tuple( /*========*/ FILE* stream, /*!< in: Output stream */ const ib_tpl_t tpl); /*!< in: Tuple to print */
/********************************************************************* Setup the InnoDB configuration parameters. */
void test_configure(void); /*================*/
/********************************************************************* Generate random text upto max size. */
int gen_rand_text( /*==========*/ char* ptr, /*!< in,out: output text */ int max_size); /*!< in: max size of ptr */
/********************************************************************* Set the runtime global options. @return DB_SUCCESS on success. */
ib_err_t set_global_option( /*==============*/ int opt, /*!< in: option index */ const char* arg); /*!< in: option value */
/********************************************************************* Print usage. */
void print_usage( /*========*/ const char* progname); /*!< in: name of application */
/********************************************************************* Print API version to stdout. */
void print_version(void); /*===============*/
/********************************************************************* Free the the elements. */
void config_free( /*=========*/ ib_config_t* config); /*!< in, own: config values */
/********************************************************************* Print the elements. */
void config_print( /*=========*/ const ib_config_t* config); /*!< in: config values */
/********************************************************************* Parse a config file, the file has a very simply format: Lines beginning with '#' are ignored. Characters after '#' (inclusive) are also ignored. Empty lines are also ignored. Variable syntax is: \s*var_name\s*=\s*value\s*\n */
int config_parse_file( /*==============*/ const char* filename, /*!< in: config file name */ ib_config_t* config); /*!< out: config values */
/********************************************************************* Drop the table. */
ib_err_t drop_table( /*=======*/ const char* dbname, /*!< in: database name */ const char* name); /*!< in: table to drop */
#endif /* _TEST0AUX_H */
|