1*d64f4044SDag-Erling Smørgrav /*- 2*d64f4044SDag-Erling Smørgrav * Copyright (c) 2011 Dag-Erling Smørgrav 3*d64f4044SDag-Erling Smørgrav * All rights reserved. 4*d64f4044SDag-Erling Smørgrav * 5*d64f4044SDag-Erling Smørgrav * Redistribution and use in source and binary forms, with or without 6*d64f4044SDag-Erling Smørgrav * modification, are permitted provided that the following conditions 7*d64f4044SDag-Erling Smørgrav * are met: 8*d64f4044SDag-Erling Smørgrav * 1. Redistributions of source code must retain the above copyright 9*d64f4044SDag-Erling Smørgrav * notice, this list of conditions and the following disclaimer. 10*d64f4044SDag-Erling Smørgrav * 2. Redistributions in binary form must reproduce the above copyright 11*d64f4044SDag-Erling Smørgrav * notice, this list of conditions and the following disclaimer in the 12*d64f4044SDag-Erling Smørgrav * documentation and/or other materials provided with the distribution. 13*d64f4044SDag-Erling Smørgrav * 3. The name of the author may not be used to endorse or promote 14*d64f4044SDag-Erling Smørgrav * products derived from this software without specific prior written 15*d64f4044SDag-Erling Smørgrav * permission. 16*d64f4044SDag-Erling Smørgrav * 17*d64f4044SDag-Erling Smørgrav * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18*d64f4044SDag-Erling Smørgrav * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19*d64f4044SDag-Erling Smørgrav * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20*d64f4044SDag-Erling Smørgrav * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21*d64f4044SDag-Erling Smørgrav * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22*d64f4044SDag-Erling Smørgrav * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23*d64f4044SDag-Erling Smørgrav * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24*d64f4044SDag-Erling Smørgrav * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25*d64f4044SDag-Erling Smørgrav * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26*d64f4044SDag-Erling Smørgrav * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27*d64f4044SDag-Erling Smørgrav * SUCH DAMAGE. 28*d64f4044SDag-Erling Smørgrav * 29*d64f4044SDag-Erling Smørgrav * $Id: openpam_strlset.h 807 2014-09-09 09:41:32Z des $ 30*d64f4044SDag-Erling Smørgrav */ 31*d64f4044SDag-Erling Smørgrav 32*d64f4044SDag-Erling Smørgrav #ifndef OPENPAM_STRLSET_H_INCLUDED 33*d64f4044SDag-Erling Smørgrav #define OPENPAM_STRLSET_H_INCLUDED 34*d64f4044SDag-Erling Smørgrav 35*d64f4044SDag-Erling Smørgrav #ifndef HAVE_STRLSET 36*d64f4044SDag-Erling Smørgrav size_t openpam_strlset(char *, int, size_t); 37*d64f4044SDag-Erling Smørgrav #undef strlset 38*d64f4044SDag-Erling Smørgrav #define strlset(arg, ...) openpam_strlset(arg, __VA_ARGS__) 39*d64f4044SDag-Erling Smørgrav #endif 40*d64f4044SDag-Erling Smørgrav 41*d64f4044SDag-Erling Smørgrav #endif 42