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