mariadb/strings
unknown cef1d75249 Updated manual about embedded version.
Speed up column-completion in 'mysql'
Don't use ISAM if HAVE_ISAM is not defined
A lot of fixes for the embedded version.  All libraries are now included in libmysqld.a
Changed arguments to convert_dirname() to make it more general.
Renamed files in the 'merge' directory to all use a common prefix.
Don't compile both assembler and C functions on x86


BitKeeper/deleted/.del-mf_pack2.c~f07795bbcf57be7:
  Delete: mysys/mf_pack2.c
Docs/manual.texi:
  Updated chapter about embedded version
acinclude.m4:
  Fix for using BDB and InnoDB with embedded
client/completion_hash.cc:
  Speed up memory allocation
client/completion_hash.h:
  Speed up memory allocation
client/mysql.cc:
  Speed up memory allocation
client/mysqldump.c:
  Fix to use now convert_dirname
client/mysqltest.c:
  Fixed memory allocation bugs.
  Added --basedir=#, --compress=#, --server-arg, --server-file.
  Fixes for embedded version
  Changed silent mode to -s instead of -q
include/my_global.h:
  Update to use HAVE_ISAM
include/my_sys.h:
  Cleanup of fn_format()
include/mysql.h:
  Prepare FIELD struct for 4.1
include/mysql_embed.h:
  Don't use ISAM in embedded version
innobase/include/srv0srv.h:
  Make InnoDB startup/shutdown silent in embedded version
innobase/log/log0log.c:
  Make InnoDB startup/shutdown silent in embedded version
innobase/srv/srv0srv.c:
  Make InnoDB startup/shutdown silent in embedded version
innobase/srv/srv0start.c:
  Make InnoDB startup/shutdown silent in embedded version
isam/isamlog.c:
  new convert_dirname
libmysql/libmysql.c:
  Prepare for 4.1
libmysqld/Makefile.am:
  Changed to create one libmysqld.a file that includes all other libraries.
libmysqld/examples/Makefile.am:
  Changed to use new libmysqld.a
libmysqld/examples/test-run:
  Lot's of fixes to get new mysqltest with embedded MySQL to work.
libmysqld/lib_sql.cc:
  Changed type of arguments for mysql_server_init() to make code more portable.
libmysqld/libmysqld.c:
  Cleanup
merge/Makefile.am:
  Rename to use common prefix.
merge/mrg_close.c:
  Rename to use common prefix.
merge/mrg_create.c:
  Rename to use common prefix.
merge/mrg_def.h:
  Rename to use common prefix.
merge/mrg_delete.c:
  Rename to use common prefix.
merge/mrg_extra.c:
  Rename to use common prefix.
merge/mrg_info.c:
  Rename to use common prefix.
merge/mrg_locking.c:
  Rename to use common prefix.
merge/mrg_open.c:
  Rename to use common prefix.
merge/mrg_panic.c:
  Rename to use common prefix.
merge/mrg_rrnd.c:
  Rename to use common prefix.
merge/mrg_rsame.c:
  Rename to use common prefix.
merge/mrg_static.c:
  Rename to use common prefix.
merge/mrg_update.c:
  Rename to use common prefix.
myisam/myisamlog.c:
  Use new convert_dirname
myisammrg/Makefile.am:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_close.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_create.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_def.h:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_delete.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_extra.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_info.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_locking.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_open.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_panic.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_queue.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_rfirst.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_rkey.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_rlast.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_rnext.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_rprev.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_rrnd.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_rsame.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_static.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_update.c:
  Renamed mymrgdef.h -> myrg_def.h
myisammrg/myrg_write.c:
  Renamed mymrgdef.h -> myrg_def.h
mysql-test/include/master-slave.inc:
  Use short filenames for sockets (portability problem on Mac OS X)
mysql-test/mysql-test-run.sh:
  cleanup
mysql-test/r/auto_increment.result:
  Cleanup of tests for embedded version
mysql-test/r/func_system.result:
  Cleanup of tests for embedded version
mysql-test/r/isam.result:
  Cleanup of tests for embedded version
mysql-test/r/lock.result:
  Cleanup of tests for embedded version
mysql-test/r/show_check.result:
  Cleanup of tests for embedded version
mysql-test/t/auto_increment.test:
  Cleanup of tests for embedded version
mysql-test/t/backup.test:
  Cleanup of tests for embedded version
mysql-test/t/count_distinct2-master.opt:
  Cleanup of tests for embedded version
mysql-test/t/count_distinct2.test:
  Cleanup of tests for embedded version
mysql-test/t/create.test:
  Cleanup of tests for embedded version
mysql-test/t/flush.test:
  Cleanup of tests for embedded version
mysql-test/t/func_system.test:
  Cleanup of tests for embedded version
mysql-test/t/isam.test:
  Cleanup of tests for embedded version
mysql-test/t/kill.test:
  Cleanup of tests for embedded version
mysql-test/t/lock.test:
  Cleanup of tests for embedded version
mysql-test/t/order_fill_sortbuf-master.opt:
  Cleanup of tests for embedded version
mysql-test/t/rpl000015.test:
  Use short filenames for sockets (portability problem on Mac OS X)
mysql-test/t/rpl000016.test:
  Use short filenames for sockets (portability problem on Mac OS X)
mysql-test/t/rpl000017.test:
  Use short filenames for sockets (portability problem on Mac OS X)
mysql-test/t/rpl000018.test:
  Use short filenames for sockets (portability problem on Mac OS X)
mysql-test/t/show_check.test:
  Move ISAM specific tests to isam.test
mysql-test/t/status.test:
  Cleanup of tests for embedded version
mysql-test/t/tablelock.test:
  Cleanup
mysys/Makefile.am:
  Removed not used mf_pack2.c
mysys/charset.c:
  new convert_dirname
mysys/default.c:
  new convert_dirname
mysys/mf_dirname.c:
  Changed convert_dirname() to be more general
mysys/mf_format.c:
  Changed bit flags to fn_format() to defines.
  Added handling of relative filenames
BitKeeper/etc/ignore:
  Added libmysqld/examples/test-gdbinit scripts/mysql_explain_log to the ignore list
mysys/mf_pack.c:
  new convert_dirname
mysys/mf_tempfile.c:
  new convert_dirname
scripts/Makefile.am:
  Adde mysql_explain_log
scripts/mysql_config.sh:
  Added support of --libmysqld-libs
sql/Makefile.am:
  Fix to use 'innodb_system_libs'
sql/ha_innobase.cc:
  Make InnoDB startup/shutdown silent in embedded version
sql/ha_isam.cc:
  Added handling of HAVE_ISAM
sql/ha_isammrg.cc:
  Added handling of HAVE_ISAM
sql/ha_myisam.cc:
  Handle relative paths;  Needed to support BACKUP TABLE in embedded version
sql/ha_myisammrg.cc:
  Rename of filenames
sql/handler.cc:
  Added handling of HAVE_ISAM
sql/item_func.cc:
  Fix for ecc (Intel Compiler)
sql/mysql_priv.h:
  Added global variable 'mysql_embedded'
sql/mysqld.cc:
  Use HAVE_ISAM
sql/sql_parse.cc:
  Use new convert_dirname
sql/sql_select.cc:
  Fix for ecc (Intel Compiler)
sql/sql_table.cc:
  Added handling of relative filenames
strings/Makefile.am:
  Don't compile both assembler and C functions on x86
strings/bchange.c:
  cleanup
2001-10-08 04:58:07 +03:00
..
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
atof.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
bchange.c Updated manual about embedded version. 2001-10-08 04:58:07 +03:00
bcmp.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
bcopy-duff.c Import changeset 2000-07-31 21:29:14 +02:00
bfill.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
bmove.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
bmove512.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
bmove_upp-sparc.s Import changeset 2000-07-31 21:29:14 +02:00
bmove_upp.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
bzero.c Import changeset 2000-07-31 21:29:14 +02:00
ChangeLog PART I: Keys support for MyMERGE tables 2000-08-14 15:27:19 +04:00
conf_to_src.c Portability fixes 2001-08-30 10:51:36 +03:00
ctype-big5.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
ctype-czech.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
ctype-euc_kr.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
ctype-gb2312.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
ctype-gbk.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
ctype-latin1_de.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
ctype-sjis.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
ctype-tis620.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
ctype-ujis.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
ctype.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
do_ctype.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
int2str.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
is_prefix.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
latin2.def Import changeset 2000-07-31 21:29:14 +02:00
llstr.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
longlong2str-x86.s Portability fixes for OPENBSD, OS2 and Windows 2001-01-27 01:20:56 +02:00
longlong2str.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
macros.asm Import changeset 2000-07-31 21:29:14 +02:00
make-ccc Import changeset 2000-07-31 21:29:14 +02:00
Makefile.am Updated manual about embedded version. 2001-10-08 04:58:07 +03:00
memcmp.c Import changeset 2000-07-31 21:29:14 +02:00
memcpy.c Import changeset 2000-07-31 21:29:14 +02:00
memset.c Import changeset 2000-07-31 21:29:14 +02:00
ptr_cmp.asm Import changeset 2000-07-31 21:29:14 +02:00
r_strinstr.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
README Import changeset 2000-07-31 21:29:14 +02:00
str2int.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
str_test.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strappend-sparc.s Import changeset 2000-07-31 21:29:14 +02:00
strappend.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strcat.c Import changeset 2000-07-31 21:29:14 +02:00
strcend.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strchr.c Import changeset 2000-07-31 21:29:14 +02:00
strcmp.c Import changeset 2000-07-31 21:29:14 +02:00
strcont.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strend-sparc.s Import changeset 2000-07-31 21:29:14 +02:00
strend.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strfill.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
string.doc Import changeset 2000-07-31 21:29:14 +02:00
strings-not-used.h Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strings-x86.s Import changeset 2000-07-31 21:29:14 +02:00
strings.asm Import changeset 2000-07-31 21:29:14 +02:00
strinstr-sparc.s Import changeset 2000-07-31 21:29:14 +02:00
strinstr.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strlen.c Import changeset 2000-07-31 21:29:14 +02:00
strmake-sparc.s Import changeset 2000-07-31 21:29:14 +02:00
strmake.c merge 2001-10-02 21:33:47 +02:00
strmov-sparc.s Import changeset 2000-07-31 21:29:14 +02:00
strmov.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strnlen.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strnmov-sparc.s Import changeset 2000-07-31 21:29:14 +02:00
strnmov.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strrchr.c Import changeset 2000-07-31 21:29:14 +02:00
strstr-sparc.s merge 2000-11-16 00:24:11 +02:00
strstr.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strto.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strtol.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strtoll.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strtoul.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strtoull.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strxmov-sparc.s Import changeset 2000-07-31 21:29:14 +02:00
strxmov.asm Import changeset 2000-07-31 21:29:14 +02:00
strxmov.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
strxnmov.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
t_ctype.h Fixed for Ia64 + delayed key creation + a lot of small bug fixes 2000-08-15 20:09:37 +03:00
udiv.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00

File   : README
Author : Richard A. O'Keefe.
Updated: 30 April 1984
Purpose: Explain the new strings package.

    The UNIX string libraries (described in the string(3) manual page)
differ from UNIX to UNIX (e.g. strtok is not in V7 or 4.1bsd).  Worse,
the sources are not in the public domain, so that if there is a string
routine which is nearly what you want but not quite you can't  take  a
copy  and  modify it.  And of course C programmers on non-UNIX systems
are at the mercy of their supplier.

    This package was designed to let me do reasonable things with  C's
strings  whatever UNIX (V7, PaNiX, UX63, 4.1bsd) I happen to be using.
Everything in the System III manual is here and does just what the  S3
manual  says  it does.  There are also lots of new goodies.  I'm sorry
about the names, but the routines do have to work  on  asphyxiated-at-
birth  systems  which  truncate identifiers.  The convention is that a
routine is called
 str [n] [c] <operation>
If there is an "n", it means that the function takes an (int) "length"
argument, which bounds the number of characters to be moved or  looked
at.  If the function has a "set" argument, a "c" in the name indicates
that  the complement of the set is used.  Functions or variables whose
names start with _ are support routines which aren't really meant  for
general  use.  I don't know what the "p" is doing in "strpbrk", but it
is there in the S3 manual so it's here too.  "istrtok" does not follow
this rule, but with 7 letters what can you do?

    I have included new versions of atoi(3) and atol(3) as well.  They
use a new primitive str2int, which takes a pair of bounds and a radix,
and does much more thorough checking than the normal atoi and atol do.
The result returned by atoi & atol is valid if and only if errno == 0.
There is also an output conversion routine int2str, with itoa and ltoa
as interface macros.  Only after writing int2str did I notice that the
str2int routine has no provision for unsigned numbers.  On reflection,
I don't greatly care.   I'm afraid that int2str may depend on your "C"
compiler in unexpected ways.  Do check the code with -S.

    Several of these routines have "asm" inclusions conditional on the
VaxAsm option.  These insertions can make the routines which have them
quite a bit faster, but there is a snag.  The VAX architects, for some
reason best known to themselves and their therapists, decided that all
"strings" were shorter than 2^16 bytes.  Even when the length operands
are in 32-bit registers, only 16 bits count.  So the "asm" versions do
not work for long strings.  If you can guarantee that all your strings
will be short, define VaxAsm in the makefile, but in general, and when
using other machines, do not define it.

    To use this library, you need the "strings.a" library file and the
"strings.h" and "ctypes.h" header files.  The other header  files  are
for compiling the library itself, though if you are hacking extensions
you  may  find  them useful.  General users really shouldn't see them.
I've defined a few macros I find useful in "strings.h"; if you have no
need for "index", "rindex", "streql", and "beql", just edit them  out.
On the 4.1bsd system I am using declaring all these functions 'extern'
does not mean that they will all be loaded; but only the ones you use.
When using lesser systems you may find it necessary to break strings.h
up, or you could get by with just adding "extern" declarations for the
functions you want as you need them.  Many of these functions have the
same names as functions in the "standard C library", by design as this
is a replacement/reimplementation of part of that library.  So you may
have to talk the loader into loading this library first.   Again, I've
found no problems on 4.1bsd.

    You may wonder at my failure to provide manual pages for this code.
For the things in V7, 4.?, or SIII, you should be able to use whichever
manual page came with that system,  and anything I might write would be
so like it as to raise suspicions of violating AT&T copyrights.  In the
sources you will find comments which provide far more documentation for
these routines than AT&T ever provided for their strings stuff,  I just
don't happen to have put it in nroff -man form.   Had I done so, the .3
files would have outbulked the .c files!

    These files are in the public domain.  This includes getopt.c, which
is the work of Henry Spencer, University of Toronto Zoology, who says of
it "None of this software is derived from Bell software. I had no access
to the source for Bell's versions at the time I wrote it.  This software
is hereby explicitly placed in the public domain.  It may  be  used  for
any purpose on any machine by anyone." I would greatly prefer it if *my*
material received no military use.