X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=lib.h;h=c38f2435ad8608c6ca7151baf347d8c6c2a40de4;hp=fc9d01604a596e0dd1dde1522a2bbba3960c36b0;hb=3d807a2dbb651589be1aaea2646cd624bb03b599;hpb=9f56f874416db295bdb50d448bd99cdd34db969d diff --git a/lib.h b/lib.h index fc9d016..c38f243 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 @@ -30,7 +30,8 @@ void miscerror(const char *what) NONRETURNING; void syscallerror(const char *what) NONRETURNING; void *xmalloc(size_t s); void *xrealloc(void *p, size_t s); -void makeroom(char **buffer, int *size, int needed); +int makeroom(char **buffer, int *size, int needed); +/* makeroom returns -1 if needed was far too large; otherwise returns 0. */ /* It doesn't appear to be documented whether [v]snprintf put a null * in if they overrun. GNU libc does, but I don't want to rely on