Changeset 20 for trunk/include
- Timestamp:
- Feb 13, 2006, 11:54:42 PM (19 years ago)
- Location:
- trunk/include
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/samhain.h
r19 r20 252 252 extern long int eintr__result; 253 253 254 extern int sh_argc_store; 255 extern char ** sh_argv_store; 256 254 257 #include "sh_calls.h" 255 258 -
trunk/include/sh_calls.h
r1 r20 53 53 struct sigaction *oldact); 54 54 55 int sh_calls_set_bind_addr (c har *);55 int sh_calls_set_bind_addr (const char *); 56 56 long int retry_connect(char * file, int line, 57 57 int fd, struct sockaddr *serv_addr, int addrlen); -
trunk/include/sh_error.h
r1 r20 91 91 92 92 93 int sh_error_verify (c har * s);94 int sh_error_logverify_mod (c har * s); /* just list, don't verify */95 int sh_error_logverify (c har * s);93 int sh_error_verify (const char * s); 94 int sh_error_logverify_mod (const char * s); /* just list, don't verify */ 95 int sh_error_logverify (const char * s); 96 96 97 97 void sh_error_dbg_switch(void); … … 124 124 /* set level for error logging 125 125 */ 126 int sh_error_setlog(c har * str_s);126 int sh_error_setlog(const char * str_s); 127 127 128 128 /* set severity levels … … 132 132 /* set priorities 133 133 */ 134 int sh_error_set_level(c har * str_s, int *facility);134 int sh_error_set_level(const char * str_s, int *facility); 135 135 136 136 /* set level for TCP export 137 137 */ 138 int sh_error_setexport(c har * str_s);138 int sh_error_setexport(const char * str_s); 139 139 140 140 /* set level for syslog 141 141 */ 142 int sh_error_set_syslog (c har * flag_s);142 int sh_error_set_syslog (const char * flag_s); 143 143 144 144 /* set level for printing 145 145 */ 146 int sh_error_setprint(c har * flag_s);146 int sh_error_setprint(const char * flag_s); 147 147 148 148 /* set severity for external 149 149 */ 150 int sh_error_set_external (c har * str_s);150 int sh_error_set_external (const char * str_s); 151 151 152 152 /* set severity for external 153 153 */ 154 int sh_error_set_database (c har * str_s);154 int sh_error_set_database (const char * str_s); 155 155 156 156 /* set severity for external 157 157 */ 158 int sh_error_set_prelude (c har * str_s);158 int sh_error_set_prelude (const char * str_s); 159 159 160 160 161 161 /* set level for mailing 162 162 */ 163 int sh_error_setseverity (c har * flag);163 int sh_error_setseverity (const char * flag); 164 164 165 165 /* set debug level -
trunk/include/sh_files.h
r1 r20 59 59 /* set maximum recursion level 60 60 */ 61 int sh_files_setrecursion (c har * flag_s);61 int sh_files_setrecursion (const char * flag_s); 62 62 63 63 /* select a directory stack 2=Two, else One (standard) -
trunk/include/sh_forward.h
r1 r20 22 22 23 23 #ifndef SH_STANDALONE 24 int sh_forward_set_strip (c har * str);24 int sh_forward_set_strip (const char * str); 25 25 26 26 #endif … … 28 28 /* generate a random password 29 29 */ 30 int sh_forward_create_password (c har * dummy);30 int sh_forward_create_password (const char * dummy); 31 31 32 32 /* set time limit … … 40 40 /* create client entry for given password 41 41 */ 42 int sh_forward_make_client (c har * str);42 int sh_forward_make_client (const char * str); 43 43 44 44 #ifdef SH_WITH_SERVER -
trunk/include/sh_hash.h
r1 r20 38 38 /* write database to stdout 39 39 */ 40 int sh_hash_pushdata_stdout (c har * str);40 int sh_hash_pushdata_stdout (const char * str); 41 41 42 42 /* version string for database … … 46 46 /* List database content 47 47 */ 48 int sh_hash_list_db (c har * db_file);48 int sh_hash_list_db (const char * db_file); 49 49 50 50 /* List database content with full detail 51 51 */ 52 int set_full_detail (c har * c);52 int set_full_detail (const char * c); 53 53 54 54 /* List database content with full detail, comma delimited 55 55 */ 56 int set_list_delimited (c har * c);56 int set_list_delimited (const char * c); 57 57 58 58 /* Read the database from disk. -
trunk/include/sh_mail.h
r1 r20 38 38 /* test mailbox 39 39 */ 40 int sh_mail_sigverify (c har * s);40 int sh_mail_sigverify (const char * s); 41 41 42 42 /* maximum number of mail attempts -
trunk/include/sh_tiger.h
r19 r20 17 17 /* the checksum function 18 18 */ 19 /*@owned@*/ char * sh_tiger_hash (c har * filename, TigerType what,19 /*@owned@*/ char * sh_tiger_hash (const char * filename, TigerType what, 20 20 UINT64 Length); 21 21 … … 37 37 /* GnuPG-like format 38 38 */ 39 /*@owned@*/ char * sh_tiger_hash_gpg (c har * filename, TigerType what,39 /*@owned@*/ char * sh_tiger_hash_gpg (const char * filename, TigerType what, 40 40 UINT64 Length); 41 41 #endif -
trunk/include/sh_unix.h
r19 r20 144 144 /* chroot directory 145 145 */ 146 int sh_unix_set_chroot(c har * str);146 int sh_unix_set_chroot(const char * str); 147 147 148 148 /* whether to use localtime for file timesatams in logs … … 233 233 /* deamon mode 234 234 */ 235 int sh_unix_setdeamon (c har * dummy);236 int sh_unix_setnodeamon(c har * dummy);235 int sh_unix_setdeamon (const char * dummy); 236 int sh_unix_setnodeamon(const char * dummy); 237 237 238 238 /* Test whether file exists -
trunk/include/sh_utils.h
r1 r20 74 74 /* eval boolean input 75 75 */ 76 int sh_util_flagval(c har * c, int * fval);76 int sh_util_flagval(const char * c, int * fval); 77 77 78 78 /* ask if a file should be updated (returns S_TRUE/S_FALSE) 79 79 */ 80 80 int sh_util_ask_update(char * path); 81 int sh_util_set_interactive(c har * str);81 int sh_util_set_interactive(const char * str); 82 82 83 83 /* don't log output files … … 95 95 /* change verifier 96 96 */ 97 int sh_util_set_newkey (c har * str);97 int sh_util_set_newkey (const char * str); 98 98 99 99 /* server mode 100 100 */ 101 int sh_util_setserver (c har * dummy);101 int sh_util_setserver (const char * dummy); 102 102 103 103 /* a simple compressor … … 116 116 /* set timer for main loop 117 117 */ 118 int sh_util_setlooptime (c har * str);118 int sh_util_setlooptime (const char * str); 119 119 120 120 /* whether init or check the database 121 121 */ 122 int sh_util_setchecksum (c har * str);122 int sh_util_setchecksum (const char * str); 123 123 124 124 /* compare an in_string against a regular expression regex_str -
trunk/include/slib.h
r11 r20 297 297 /* Open for writing. 298 298 */ 299 SL_TICKET sl_open_write (c har * fname, int priviledge_mode);299 SL_TICKET sl_open_write (const char * fname, int priviledge_mode); 300 300 301 301 /* Open for reading. 302 302 */ 303 SL_TICKET sl_open_read (c har * fname, int priviledge_mode);303 SL_TICKET sl_open_read (const char * fname, int priviledge_mode); 304 304 305 305 /* Open for reading w/minimum checking. 306 306 */ 307 SL_TICKET sl_open_fastread (c har * fname, int priviledge_mode);307 SL_TICKET sl_open_fastread (const char * fname, int priviledge_mode); 308 308 309 309 /* Open for read and write. 310 310 */ 311 SL_TICKET sl_open_rdwr (c har * fname, int priviledge_mode);311 SL_TICKET sl_open_rdwr (const char * fname, int priviledge_mode); 312 312 313 313 /* Open for read and write, fail if file exists. 314 314 */ 315 SL_TICKET sl_open_safe_rdwr (c har * fname, int priv);315 SL_TICKET sl_open_safe_rdwr (const char * fname, int priv); 316 316 317 317 /* Open for write, truncate. 318 318 */ 319 SL_TICKET sl_open_write_trunc (c har * fname, int priviledge_mode);319 SL_TICKET sl_open_write_trunc (const char * fname, int priviledge_mode); 320 320 321 321 /* Open for read and write, truncate. 322 322 */ 323 SL_TICKET sl_open_rdwr_trunc (c har * fname, int priviledge_mode);323 SL_TICKET sl_open_rdwr_trunc (const char * fname, int priviledge_mode); 324 324 325 325 /* Close file. … … 394 394 char * sl_trust_errfile(void); 395 395 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); 396 402 397 403 #ifdef __cplusplus … … 500 506 void sl_trace_in (char * str, char * file, int line); 501 507 void sl_trace_out (char * str, char * file, int line); 502 int sl_trace_file (c har * str);503 int sl_trace_use (c har * str);508 int sl_trace_file (const char * str); 509 int sl_trace_use (const char * str); 504 510 505 511
Note:
See TracChangeset
for help on using the changeset viewer.