1*192095f7Smpi /* $OpenBSD: xmalloc.h,v 1.1 2017/08/11 14:21:24 mpi Exp $ */ 2*192095f7Smpi 3*192095f7Smpi /* 4*192095f7Smpi * Author: Tatu Ylonen <ylo@cs.hut.fi> 5*192095f7Smpi * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6*192095f7Smpi * All rights reserved 7*192095f7Smpi * Created: Mon Mar 20 22:09:17 1995 ylo 8*192095f7Smpi * 9*192095f7Smpi * Versions of malloc and friends that check their results, and never return 10*192095f7Smpi * failure (they call fatal if they encounter an error). 11*192095f7Smpi * 12*192095f7Smpi * As far as I am concerned, the code I have written for this software 13*192095f7Smpi * can be used freely for any purpose. Any derived versions of this 14*192095f7Smpi * software must be clearly marked as such, and if the derived work is 15*192095f7Smpi * incompatible with the protocol description in the RFC file, it must be 16*192095f7Smpi * called by a name other than "ssh" or "Secure Shell". 17*192095f7Smpi */ 18*192095f7Smpi 19*192095f7Smpi #ifndef XMALLOC_H 20*192095f7Smpi #define XMALLOC_H 21*192095f7Smpi 22*192095f7Smpi void *xmalloc(size_t); 23*192095f7Smpi void *xcalloc(size_t, size_t); 24*192095f7Smpi void *xrealloc(void *, size_t); 25*192095f7Smpi void *xreallocarray(void *, size_t, size_t); 26*192095f7Smpi char *xstrdup(const char *); 27*192095f7Smpi 28*192095f7Smpi #endif /* XMALLOC_H */ 29