diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbbsutil.h | 14 | ||||
-rw-r--r-- | include/osdep.h | 2 | ||||
-rw-r--r-- | include/proto.h | 10 |
3 files changed, 14 insertions, 12 deletions
diff --git a/include/libbbsutil.h b/include/libbbsutil.h index 3acebdfc..aa892beb 100644 --- a/include/libbbsutil.h +++ b/include/libbbsutil.h @@ -30,10 +30,13 @@ typedef int32_t time4_t; typedef time_t time4_t; #endif +/* crypt.c */ +char *fcrypt(const char *key, const char *salt); + /* file.c */ extern off_t dashs(const char *fname); -time4_t dasht(const char *fname); -time4_t dashc(const char *fname); +extern time4_t dasht(const char *fname); +extern time4_t dashc(const char *fname); extern int dashl(const char *fname); extern int dashf(const char *fname); extern int dashd(const char *fname); @@ -46,6 +49,13 @@ extern int Copy(const char *src, const char *dst); extern int CopyN(const char *src, const char *dst, int n); extern int AppendTail(const char *src, const char *dst, int off); extern int Link(const char *src, const char *dst); +extern int file_count_line(const char *file); +extern int file_append_line(const char *file, const char *string); // does not append "\n" +extern int file_append_record(const char *file, const char *key); // will append "\n" +extern int file_exist_record(const char *file, const char *key); +extern int file_find_record(const char *file, const char *key); +extern int file_delete_record(const char *file, const char *key, int case_sensitive); + /* lock.c */ extern void PttLock(int fd, int start, int size, int mode); diff --git a/include/osdep.h b/include/osdep.h index 3aa93e7b..351d55af 100644 --- a/include/osdep.h +++ b/include/osdep.h @@ -16,7 +16,9 @@ #elif defined(__linux__) +#ifndef _GNU_SOURCE #define _GNU_SOURCE /* for strcasestr */ +#endif #include <sys/ioctl.h> #include <sys/file.h> /* for flock() */ #include <strings.h> /* for strcasecmp() */ diff --git a/include/proto.h b/include/proto.h index a69288f4..c51afb43 100644 --- a/include/proto.h +++ b/include/proto.h @@ -46,8 +46,6 @@ int Announce(void); void BlogMain(int); #endif -/* args */ - /* assess */ int inc_goodpost(const char *, int num); int inc_badpost(const char *, int num); @@ -284,14 +282,6 @@ int updatenewfav(int mode); void subscribe_newfav(void); void reginit_fav(void); -/* file */ -int file_count_line(const char *file); -int file_append_line(const char *file, const char *string); // does not append "\n" -int file_append_record(const char *file, const char *key); // will append "\n" -int file_exist_record(const char *file, const char *key); -int file_find_record(const char *file, const char *key); -int file_delete_record(const char *file, const char *key, int case_sensitive); - /* friend */ void friend_edit(int type); void friend_load(int); |