Changeset 20 for trunk/include


Ignore:
Timestamp:
Feb 13, 2006, 11:54:42 PM (19 years ago)
Author:
rainer
Message:

Enable command-line parsing for prelude, and make prelude regression test safer.

Location:
trunk/include
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/samhain.h

    r19 r20  
    252252extern long int eintr__result;
    253253
     254extern int     sh_argc_store;
     255extern char ** sh_argv_store;
     256
    254257#include "sh_calls.h"
    255258
  • trunk/include/sh_calls.h

    r1 r20  
    5353                         struct sigaction *oldact);
    5454
    55 int      sh_calls_set_bind_addr (char *);
     55int      sh_calls_set_bind_addr (const char *);
    5656long int retry_connect(char * file, int line,
    5757                       int fd, struct sockaddr *serv_addr, int addrlen);
  • trunk/include/sh_error.h

    r1 r20  
    9191
    9292
    93 int sh_error_verify (char * s);
    94 int sh_error_logverify_mod (char * s); /* just list, don't verify */
    95 int sh_error_logverify (char * s);
     93int sh_error_verify (const char * s);
     94int sh_error_logverify_mod (const char * s); /* just list, don't verify */
     95int sh_error_logverify (const char * s);
    9696
    9797void sh_error_dbg_switch(void);
     
    124124/* set level for error logging
    125125 */
    126 int sh_error_setlog(char * str_s);
     126int sh_error_setlog(const char * str_s);
    127127
    128128/* set severity levels
     
    132132/* set priorities
    133133 */
    134 int sh_error_set_level(char * str_s, int *facility);
     134int sh_error_set_level(const char * str_s, int *facility);
    135135
    136136/* set level for TCP export
    137137 */
    138 int sh_error_setexport(char *  str_s);
     138int sh_error_setexport(const char *  str_s);
    139139
    140140/* set level for syslog
    141141 */
    142 int sh_error_set_syslog (char * flag_s);
     142int sh_error_set_syslog (const char * flag_s);
    143143
    144144/* set level for printing
    145145 */
    146 int sh_error_setprint(char *  flag_s);
     146int sh_error_setprint(const char *  flag_s);
    147147
    148148/* set severity for external
    149149 */
    150 int sh_error_set_external (char * str_s);
     150int sh_error_set_external (const char * str_s);
    151151
    152152/* set severity for external
    153153 */
    154 int sh_error_set_database (char * str_s);
     154int sh_error_set_database (const char * str_s);
    155155
    156156/* set severity for external
    157157 */
    158 int sh_error_set_prelude (char * str_s);
     158int sh_error_set_prelude (const char * str_s);
    159159
    160160
    161161/* set level for mailing
    162162 */
    163 int sh_error_setseverity (char * flag);
     163int sh_error_setseverity (const char * flag);
    164164
    165165/* set debug level
  • trunk/include/sh_files.h

    r1 r20  
    5959/* set maximum recursion level
    6060 */
    61 int sh_files_setrecursion (char * flag_s);
     61int sh_files_setrecursion (const char * flag_s);
    6262
    6363/* select a directory stack 2=Two, else One (standard)
  • trunk/include/sh_forward.h

    r1 r20  
    2222
    2323#ifndef SH_STANDALONE
    24 int sh_forward_set_strip (char * str);
     24int sh_forward_set_strip (const char * str);
    2525
    2626#endif
     
    2828/* generate a random password
    2929 */
    30 int sh_forward_create_password (char * dummy);
     30int sh_forward_create_password (const char * dummy);
    3131
    3232/* set time limit
     
    4040/* create client entry for given password
    4141 */
    42 int sh_forward_make_client (char * str);
     42int sh_forward_make_client (const char * str);
    4343
    4444#ifdef SH_WITH_SERVER
  • trunk/include/sh_hash.h

    r1 r20  
    3838/* write database to stdout
    3939 */
    40 int sh_hash_pushdata_stdout (char * str);
     40int sh_hash_pushdata_stdout (const char * str);
    4141
    4242/* version string for database
     
    4646/* List database content
    4747 */
    48 int sh_hash_list_db (char * db_file);
     48int sh_hash_list_db (const char * db_file);
    4949
    5050/* List database content with full detail
    5151 */
    52 int set_full_detail (char * c);
     52int set_full_detail (const char * c);
    5353
    5454/* List database content with full detail, comma delimited
    5555 */
    56 int set_list_delimited (char * c);
     56int set_list_delimited (const char * c);
    5757
    5858/* Read the database from disk.
  • trunk/include/sh_mail.h

    r1 r20  
    3838/* test mailbox
    3939 */
    40 int sh_mail_sigverify (char * s);
     40int sh_mail_sigverify (const char * s);
    4141
    4242/* maximum number of mail attempts
  • trunk/include/sh_tiger.h

    r19 r20  
    1717/* the checksum function
    1818 */
    19 /*@owned@*/ char * sh_tiger_hash (char * filename, TigerType what,
     19/*@owned@*/ char * sh_tiger_hash (const char * filename, TigerType what,
    2020                                  UINT64 Length);
    2121
     
    3737/* GnuPG-like format
    3838 */
    39 /*@owned@*/ char * sh_tiger_hash_gpg (char * filename, TigerType what,
     39/*@owned@*/ char * sh_tiger_hash_gpg (const char * filename, TigerType what,
    4040                                      UINT64 Length);
    4141#endif
  • trunk/include/sh_unix.h

    r19 r20  
    144144/* chroot directory
    145145 */
    146 int sh_unix_set_chroot(char * str);
     146int sh_unix_set_chroot(const char * str);
    147147
    148148/* whether to use localtime for file timesatams in logs
     
    233233/* deamon mode
    234234 */
    235 int sh_unix_setdeamon  (char * dummy);
    236 int sh_unix_setnodeamon(char * dummy);
     235int sh_unix_setdeamon  (const char * dummy);
     236int sh_unix_setnodeamon(const char * dummy);
    237237
    238238/* Test whether file exists
  • trunk/include/sh_utils.h

    r1 r20  
    7474/* eval boolean input
    7575 */
    76 int sh_util_flagval(char * c, int * fval);
     76int sh_util_flagval(const char * c, int * fval);
    7777
    7878/* ask if a file should be updated (returns S_TRUE/S_FALSE)
    7979 */
    8080int sh_util_ask_update(char * path);
    81 int sh_util_set_interactive(char * str);
     81int sh_util_set_interactive(const char * str);
    8282
    8383/* don't log output files
     
    9595/* change verifier
    9696 */
    97 int sh_util_set_newkey (char * str);
     97int sh_util_set_newkey (const char * str);
    9898
    9999/* server mode
    100100 */
    101 int sh_util_setserver (char * dummy);
     101int sh_util_setserver (const char * dummy);
    102102
    103103/* a simple compressor
     
    116116/* set timer for main loop
    117117 */
    118 int sh_util_setlooptime (char * str);
     118int sh_util_setlooptime (const char * str);
    119119
    120120/* whether init or check the database
    121121 */
    122 int  sh_util_setchecksum (char * str);
     122int  sh_util_setchecksum (const char * str);
    123123
    124124/* compare an in_string against a regular expression regex_str
  • trunk/include/slib.h

    r11 r20  
    297297  /* Open for writing.
    298298   */
    299   SL_TICKET  sl_open_write       (char * fname, int priviledge_mode);
     299  SL_TICKET  sl_open_write       (const char * fname, int priviledge_mode);
    300300
    301301  /* Open for reading.
    302302   */
    303   SL_TICKET  sl_open_read        (char * fname, int priviledge_mode);
     303  SL_TICKET  sl_open_read        (const char * fname, int priviledge_mode);
    304304
    305305  /* Open for reading w/minimum checking.
    306306   */
    307   SL_TICKET  sl_open_fastread    (char * fname, int priviledge_mode);
     307  SL_TICKET  sl_open_fastread    (const char * fname, int priviledge_mode);
    308308
    309309  /* Open for read and write.
    310310   */
    311   SL_TICKET  sl_open_rdwr        (char * fname, int priviledge_mode);
     311  SL_TICKET  sl_open_rdwr        (const char * fname, int priviledge_mode);
    312312
    313313  /* Open for read and write, fail if file exists.
    314314   */
    315   SL_TICKET sl_open_safe_rdwr    (char * fname, int priv);
     315  SL_TICKET sl_open_safe_rdwr    (const char * fname, int priv);
    316316
    317317  /* Open for write, truncate.
    318318   */
    319   SL_TICKET  sl_open_write_trunc (char * fname, int priviledge_mode);
     319  SL_TICKET  sl_open_write_trunc (const char * fname, int priviledge_mode);
    320320
    321321  /* Open for read and write, truncate.
    322322   */
    323   SL_TICKET  sl_open_rdwr_trunc  (char * fname, int priviledge_mode);
     323  SL_TICKET  sl_open_rdwr_trunc  (const char * fname, int priviledge_mode);
    324324
    325325  /* Close file.
     
    394394  char * sl_trust_errfile(void);
    395395
     396  /* Overflow tests
     397   */
     398  int sl_ok_muli (int a, int b);
     399  int sl_ok_divi (int a, int b);
     400  int sl_ok_addi (int a, int b);
     401  int sl_ok_subi (int a, int b);
    396402
    397403#ifdef  __cplusplus
     
    500506void sl_trace_in   (char * str, char * file, int line);
    501507void sl_trace_out  (char * str, char * file, int line);
    502 int  sl_trace_file (char * str);
    503 int  sl_trace_use  (char * str);
     508int  sl_trace_file (const char * str);
     509int  sl_trace_use  (const char * str);
    504510
    505511
Note: See TracChangeset for help on using the changeset viewer.