X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=lib.h;h=701201695275b5eaeccc20becde5aede0e2803d1;hp=81ff9fcec04fdcd18ad7da34f5c89ed91632a67f;hb=6096be0f6c9252541e9478bf397330bec73f2024;hpb=db59ee1476515a65cfcca10a3059d8ccb2d24d32 diff --git a/lib.h b/lib.h index 81ff9fc..7012016 100644 --- a/lib.h +++ b/lib.h @@ -2,7 +2,7 @@ * userv - lib.c * useful utility routines' imports and exports, used in daemon * - * Copyright (C)1996-1997 Ian Jackson + * Copyright (C)1996-1997,1999 Ian Jackson * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by @@ -23,13 +23,9 @@ #define LIB_H char *xstrcat3save(const char *a, const char *b, const char *c); -char *xstrsave(const char *s); char *xstrsubsave(const char *begin, int len); void miscerror(const char *what) NONRETURNING; -void syscallerror(const char *what) NONRETURNING; -void *xmalloc(size_t s); -void *xrealloc(void *p, size_t s); int makeroom(char **buffer, int *size, int needed); /* makeroom returns -1 if needed was far too large; otherwise returns 0. */ @@ -56,4 +52,8 @@ void vsnytprintfcat(char *buffer, size_t size, const char *fmt, va_list al); void snytprintfcat(char *buffer, size_t size, const char *fmt, ...) PRINTFFORMAT(3,4); void strnytcat(char *dest, const char *src, size_t size); +#ifndef HAVE_SETENV +int setenv(const char *name, const char *value, int overwrite); +#endif /* HAVE_SETENV */ + #endif /* LIB_H */