1*017500beSchristos /*- 2*017500beSchristos * Copyright (c) 2014 The NetBSD Foundation, Inc. 3*017500beSchristos * All rights reserved. 4*017500beSchristos * 5*017500beSchristos * Redistribution and use in source and binary forms, with or without 6*017500beSchristos * modification, are permitted provided that the following conditions 7*017500beSchristos * are met: 8*017500beSchristos * 1. Redistributions of source code must retain the above copyright 9*017500beSchristos * notice, this list of conditions and the following disclaimer. 10*017500beSchristos * 2. Redistributions in binary form must reproduce the above copyright 11*017500beSchristos * notice, this list of conditions and the following disclaimer in the 12*017500beSchristos * documentation and/or other materials provided with the distribution. 13*017500beSchristos * 14*017500beSchristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 15*017500beSchristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 16*017500beSchristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17*017500beSchristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 18*017500beSchristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19*017500beSchristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20*017500beSchristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21*017500beSchristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22*017500beSchristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23*017500beSchristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24*017500beSchristos * POSSIBILITY OF SUCH DAMAGE. 25*017500beSchristos */ 26*017500beSchristos #ifndef _GETTEMP_H_ 27*017500beSchristos #define _GETTEMP_H_ 28*017500beSchristos 29*017500beSchristos #include "namespace.h" 30*017500beSchristos 31*017500beSchristos #if HAVE_NBTOOL_CONFIG_H 32*017500beSchristos # include "nbtool_config.h" 33*017500beSchristos # define GETTEMP __nbcompat_gettemp 34*017500beSchristos #else 35*017500beSchristos # include <assert.h> 36*017500beSchristos # include <errno.h> 37*017500beSchristos # include <stdio.h> 38*017500beSchristos # include <stdlib.h> 39*017500beSchristos # include <unistd.h> 40*017500beSchristos # include "reentrant.h" 41*017500beSchristos # define GETTEMP __gettemp 42*017500beSchristos #endif 43*017500beSchristos 44*017500beSchristos __BEGIN_DECLS 45*017500beSchristos int GETTEMP(char *, int *, int, int, int); 46*017500beSchristos __END_DECLS 47*017500beSchristos 48*017500beSchristos #endif /* _GETTEMP_H_ */ 49