• unknown's avatar
    Added useful exit error code for programs using my_getopt in case · a90b2f30
    unknown authored
    of an error in option handling. This can sometimes be useful in
    scripts.
    
    Changed some exit code names and corresponding numbers.
    
    Fixed a bug in mysqld.cc, in replication related options.
    
    Added a global flag in my_getopt, which can be set by any program
    that is using my_getopt, which tells whether the client should
    print the error message itself, or whether my_getopt should do it.
    The default is that my_getopt will print the error messages.
    
    
    client/mysql.cc:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    client/mysqladmin.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    client/mysqlbinlog.cc:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    client/mysqlcheck.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    client/mysqldump.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    client/mysqlimport.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    client/mysqlmanager-pwgen.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    client/mysqlmanagerc.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    client/mysqlshow.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    client/mysqltest.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    client/thread_test.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    extra/my_print_defaults.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    extra/mysql_install.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    extra/perror.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    extra/resolve_stack_dump.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    extra/resolveip.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    include/my_getopt.h:
      Added global (flag) variable which tells my_getopt whether to
      print errors or just silently exit with proper error code.
    include/mysys_err.h:
      Changed exit code names and corresponding numbers.
    isam/isamchk.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    isam/pack_isam.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    myisam/ft_dump.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    myisam/ft_eval.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    myisam/ft_test1.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    myisam/mi_test1.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    myisam/myisamchk.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    myisam/myisampack.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    mysys/my_getopt.c:
      Changed exit code names and corresponding numbers. Added a flag
      for checking whether my_getopt should print the error message,
      or whether it should be printed by the client itself.
    sql/gen_lex_hash.cc:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    sql/mysqld.cc:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
      
      Fixed a bug when compiling in non-debug mode, some replication
      related options were not enabled while they should be. This made
      'make test' to fail in rpl000010 when --with-debug was not used.
    tools/mysqlmanager.c:
      Added useful exit error code for programs using my_getopt in case
      of an error in option handling. This can sometimes be useful in
      scripts.
    a90b2f30
mysys_err.h 2.16 KB