~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/init.cc

  • Committer: Brian Aker
  • Date: 2008-07-01 20:14:24 UTC
  • Revision ID: brian@tangent.org-20080701201424-rsof5enxl7gkr50p
More cleanup on pread()

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
  Init and dummy functions for interface with unireg
22
22
*/
23
23
 
24
 
#include <drizzled/server_includes.h>
 
24
#include "mysql_priv.h"
 
25
#include <m_ctype.h>
25
26
 
26
 
void unireg_init(ulong options __attribute__((unused)))
 
27
void unireg_init(ulong options)
27
28
{
 
29
  DBUG_ENTER("unireg_init");
 
30
 
 
31
  MYSYS_PROGRAM_DONT_USE_CURSES();
28
32
  abort_loop=0;
29
33
 
30
34
  my_disable_async_io=1;                /* aioread is only in shared library */
34
38
  init_time();                          /* Init time-functions (read zone) */
35
39
  my_abort_hook=unireg_abort;           /* Abort with close of databases */
36
40
 
37
 
  my_stpcpy(reg_ext,".frm");
 
41
  VOID(strmov(reg_ext,".frm"));
38
42
  reg_ext_length= 4;
39
 
 
40
 
  return;
 
43
  specialflag=SPECIAL_SAME_DB_NAME | options;  /* Set options from argv */
 
44
  DBUG_VOID_RETURN;
41
45
}