Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bed1668e
Commit
bed1668e
authored
Dec 16, 2000
by
monty@donna.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backed out the new LARGEFILE patch as it broked several things
parent
f9dcc709
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
60 deletions
+118
-60
acinclude.m4
acinclude.m4
+111
-57
configure.in
configure.in
+2
-1
include/my_sys.h
include/my_sys.h
+4
-1
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
acinclude.m4
View file @
bed1668e
...
@@ -836,7 +836,10 @@ dnl ---------------------------------------------------------------------------
...
@@ -836,7 +836,10 @@ dnl ---------------------------------------------------------------------------
dnl END OF MYSQL_CHECK_BDB SECTION
dnl END OF MYSQL_CHECK_BDB SECTION
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
#serial 12
dnl ---------------------------------------------------------------------------
dnl Got this from the GNU tar 1.13.11 distribution
dnl by Paul Eggert <eggert@twinsun.com>
dnl ---------------------------------------------------------------------------
dnl By default, many hosts won't let programs access large files;
dnl By default, many hosts won't let programs access large files;
dnl one must use special compiler options to get large-file access to work.
dnl one must use special compiler options to get large-file access to work.
...
@@ -846,71 +849,122 @@ dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
...
@@ -846,71 +849,122 @@ dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
dnl Written by Paul Eggert <eggert@twinsun.com>.
dnl Written by Paul Eggert <eggert@twinsun.com>.
dnl Internal subroutine of AC_SYS_LARGEFILE.
dnl Internal subroutine of AC_SYS_LARGEFILE.
dnl AC_SYS_LARGEFILE_TEST_INCLUDES
dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME)
AC_DEFUN(AC_SYS_LARGEFILE_TEST_INCLUDES,
AC_DEFUN(AC_SYS_LARGEFILE_FLAGS,
[[#include <sys/types.h>
[AC_CACHE_CHECK([for $1 value to request large file support],
int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
ac_cv_sys_largefile_$1,
]])
[if ($GETCONF LFS_$1) >conftest.1 2>conftest.2 && test ! -s conftest.2
then
ac_cv_sys_largefile_$1=`cat conftest.1`
else
ac_cv_sys_largefile_$1=no
ifelse($1, CFLAGS,
[case "$host_os" in
# HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
changequote(, )dnl
hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
changequote([, ])dnl
if test "$GCC" = yes; then
ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__
fi
;;
# IRIX 6.2 and later require cc -n32.
changequote(, )dnl
irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
changequote([, ])dnl
if test "$GCC" != yes; then
ac_cv_sys_largefile_CFLAGS=-n32
fi
esac
if test "$ac_cv_sys_largefile_CFLAGS" != no; then
ac_save_CC="$CC"
CC="$CC $ac_cv_sys_largefile_CFLAGS"
AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no)
CC="$ac_save_CC"
fi])
fi
rm -f conftest*])])
dnl Internal subroutine of AC_SYS_LARGEFILE.
dnl Internal subroutine of AC_SYS_LARGEFILE.
dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, CACHE-VAR, COMMENT, INCLUDES, FUNCTION-BODY)
dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL)
AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND,
[case $2 in
no) ;;
?*)
case "[$]$1" in
'') $1=$2 ;;
*) $1=[$]$1' '$2 ;;
esac ;;
esac])
dnl Internal subroutine of AC_SYS_LARGEFILE.
dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT)
AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
[AC_CACHE_CHECK([for $1 value needed for large files], $3,
[AC_CACHE_CHECK([for $1], $2,
[$3=no
[$2=no
AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES
changequote(, )dnl
$5
$4
,
for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
[$6],
case "$ac_flag" in
,
-D$1)
[AC_TRY_COMPILE([#define $1 $2]
$2=1 ;;
AC_SYS_LARGEFILE_TEST_INCLUDES
-D$1=*)
$5
$2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
,
esac
[$6],
done
[$3=$2])])])
changequote([, ])dnl
if test "[$]$3" != no; then
])
AC_DEFINE_UNQUOTED([$1], [$]$3, [$4])
if test "[$]$2" != no; then
AC_DEFINE_UNQUOTED([$1], [$]$2, [$3])
fi])
fi])
AC_DEFUN(AC_SYS_LARGEFILE,
AC_DEFUN(AC_SYS_LARGEFILE,
[AC_ARG_ENABLE(largefile,
[AC_REQUIRE([AC_CANONICAL_HOST])
[ --disable-largefile omit support for large files])
AC_ARG_ENABLE(largefile,
[ --disable-large-files Omit support for large files])
if test "$enable_largefile" != no; then
if test "$enable_largefile" != no; then
AC_CHECK_TOOL(GETCONF, getconf)
AC_CACHE_CHECK([for special C compiler options needed for large files],
AC_SYS_LARGEFILE_FLAGS(CFLAGS)
ac_cv_sys_largefile_CC,
AC_SYS_LARGEFILE_FLAGS(LDFLAGS)
[ac_cv_sys_largefile_CC=no
AC_SYS_LARGEFILE_FLAGS(LIBS)
if test "$GCC" != yes; then
# IRIX 6.2 and later do not support large files by default,
for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
# so use the C compiler's -n32 option if that helps.
case "$ac_flag" in
AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, , ,
no) ;;
[ac_save_CC="$CC"
-D_FILE_OFFSET_BITS=*) ;;
CC="$CC -n32"
-D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, ,
-D_LARGE_FILES | -D_LARGE_FILES=*) ;;
ac_cv_sys_largefile_CC=' -n32')
-D?* | -I?*)
CC="$ac_save_CC"])
AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;;
fi])
*)
if test "$ac_cv_sys_largefile_CC" != no; then
AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;;
CC="$CC$ac_cv_sys_largefile_CC"
esac
fi
done
AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS")
AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64,
AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS")
AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS,
ac_cv_sys_file_offset_bits,
ac_cv_sys_file_offset_bits,
[Number of bits in a file offset, on hosts where this is settable.])
[Number of bits in a file offset, on hosts where this is settable.],
AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1,
[case "$host_os" in
# HP-UX 10.20 and later
hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
ac_cv_sys_file_offset_bits=64 ;;
esac])
AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE,
ac_cv_sys_largefile_source,
ac_cv_sys_largefile_source,
[Define to make ftello visible on some hosts (e.g. HP-UX 10.20).],
[Define to make fseeko etc. visible, on some hosts.],
[#include <stdio.h>], [return !ftello;])
[case "$host_os" in
AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1,
# HP-UX 10.20 and later
hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
ac_cv_sys_largefile_source=1 ;;
esac])
AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES,
ac_cv_sys_large_files,
ac_cv_sys_large_files,
[Define for large files, on AIX-style hosts.])
[Define for large files, on AIX-style hosts.],
if test "$IS_LINUX" = "true"; then
[case "$host_os" in
AC_DEFINE(_GNU_SOURCE)
# AIX 4.2 and later
else
aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
AC_SYS_LARGEFILE_MACRO_VALUE(_XOPEN_SOURCE, 500,
ac_cv_sys_large_files=1 ;;
ac_cv_sys_xopen_source,
esac])
[Define to make ftello visible on some hosts (e.g. glibc 2.1.3).],
[#include <stdio.h>], [return !ftello;])
fi
fi
fi
])
])
configure.in
View file @
bed1668e
...
@@ -470,7 +470,8 @@ AC_ARG_WITH(mysqld-user,
...
@@ -470,7 +470,8 @@ AC_ARG_WITH(mysqld-user,
)
)
AC_SUBST
(
MYSQLD_USER
)
AC_SUBST
(
MYSQLD_USER
)
# Use Paul Eggert's macros to check for large file support
# Use Paul Eggerts macros from GNU tar to check for large file
# support.
AC_SYS_LARGEFILE
AC_SYS_LARGEFILE
# Types that must be checked AFTER large file support is checked
# Types that must be checked AFTER large file support is checked
...
...
include/my_sys.h
View file @
bed1668e
...
@@ -250,7 +250,7 @@ typedef struct st_record_cache /* Used when cacheing records */
...
@@ -250,7 +250,7 @@ typedef struct st_record_cache /* Used when cacheing records */
}
RECORD_CACHE
;
}
RECORD_CACHE
;
enum
file_type
{
UNOPEN
=
0
,
FILE_BY_OPEN
,
FILE_BY_CREATE
,
enum
file_type
{
UNOPEN
=
0
,
FILE_BY_OPEN
,
FILE_BY_CREATE
,
STREAM_BY_FOPEN
,
STREAM_BY_FDOPEN
};
STREAM_BY_FOPEN
,
STREAM_BY_FDOPEN
,
FILE_BY_MKSTEMP
};
extern
struct
my_file_info
extern
struct
my_file_info
{
{
...
@@ -378,6 +378,9 @@ extern gptr my_once_alloc(uint Size,myf MyFlags);
...
@@ -378,6 +378,9 @@ extern gptr my_once_alloc(uint Size,myf MyFlags);
extern
void
my_once_free
(
void
);
extern
void
my_once_free
(
void
);
extern
my_string
my_tempnam
(
const
char
*
dir
,
const
char
*
pfx
,
myf
MyFlags
);
extern
my_string
my_tempnam
(
const
char
*
dir
,
const
char
*
pfx
,
myf
MyFlags
);
extern
File
my_open
(
const
char
*
FileName
,
int
Flags
,
myf
MyFlags
);
extern
File
my_open
(
const
char
*
FileName
,
int
Flags
,
myf
MyFlags
);
extern
File
my_register_filename
(
File
fd
,
const
char
*
FileName
,
uint
type_of_open
,
uint
error_message_number
,
myf
MyFlags
);
extern
File
my_create
(
const
char
*
FileName
,
int
CreateFlags
,
extern
File
my_create
(
const
char
*
FileName
,
int
CreateFlags
,
int
AccsesFlags
,
myf
MyFlags
);
int
AccsesFlags
,
myf
MyFlags
);
extern
int
my_close
(
File
Filedes
,
myf
MyFlags
);
extern
int
my_close
(
File
Filedes
,
myf
MyFlags
);
...
...
sql/mysqld.cc
View file @
bed1668e
...
@@ -1158,7 +1158,7 @@ static void *signal_hand(void *arg __attribute__((unused)))
...
@@ -1158,7 +1158,7 @@ static void *signal_hand(void *arg __attribute__((unused)))
{
{
char
buff
[
21
];
char
buff
[
21
];
sprintf
(
buff
,
"%lu"
,(
ulong
)
getpid
());
sprintf
(
buff
,
"%lu"
,(
ulong
)
getpid
());
(
void
)
my_write
(
pidFile
,
buff
,
s
izeof
(
buff
),
MYF
(
MY_WME
));
(
void
)
my_write
(
pidFile
,
buff
,
s
trlen
(
buff
),
MYF
(
MY_WME
));
(
void
)
my_close
(
pidFile
,
MYF
(
0
));
(
void
)
my_close
(
pidFile
,
MYF
(
0
));
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment