X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Flib.h;h=dea7c10c8929fa7fe923d24f69bbb78d12204e0a;hb=9fbdf10b4915874aad2eb98087293e5c721d3eb2;hp=0fe45010f2419ad4ba3b03ae74ac030444d2845d;hpb=b53b0576a2325cd6b81625a3b9ad3f91f0b7a249;p=libucw.git diff --git a/lib/lib.h b/lib/lib.h index 0fe45010..dea7c10c 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -33,20 +33,6 @@ #define ABS(x) ((x) < 0 ? -(x) : (x)) #define ARRAY_SIZE(a) (sizeof(a)/sizeof(*(a))) -/* Temporary Files */ - -#define TMP_DIR "tmp" -#define TMP_DIR_LEN 3 - -struct tempfile { - int fh; - byte name[32]; -}; - -void open_temp(struct tempfile *, byte *); -void delete_temp(struct tempfile *); -u32 temprand(uns); - /* Logging */ #define L_DEBUG 'D' /* Debugging messages */ @@ -171,7 +157,7 @@ uns get_timer(void); typedef struct regex regex; -regex *rx_compile(byte *r); +regex *rx_compile(byte *r, int icase); void rx_free(regex *r); int rx_match(regex *r, byte *s); int rx_subst(regex *r, byte *by, byte *src, byte *dest, uns destlen); @@ -190,4 +176,8 @@ void munmap_file(void *start, unsigned len); void setproctitle_init(int argc, char **argv); void setproctitle(char *msg, ...) __attribute__((format(printf,1,2))); +/* randomkey.c */ + +void randomkey(byte *buf, uns size); + #endif