xref: /dflybsd-src/usr.bin/env/envopts.h (revision 490834b26602383197548b6d42fe2047a451baf2)
1*490834b2SAntonio Huete Jimenez /*-
2*490834b2SAntonio Huete Jimenez  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3*490834b2SAntonio Huete Jimenez  *
4*490834b2SAntonio Huete Jimenez  * Copyright (c) 2005  - Garance Alistair Drosehn <gad@FreeBSD.org>.
5*490834b2SAntonio Huete Jimenez  * All rights reserved.
6*490834b2SAntonio Huete Jimenez  *
7*490834b2SAntonio Huete Jimenez  * Redistribution and use in source and binary forms, with or without
8*490834b2SAntonio Huete Jimenez  * modification, are permitted provided that the following conditions
9*490834b2SAntonio Huete Jimenez  * are met:
10*490834b2SAntonio Huete Jimenez  *   1. Redistributions of source code must retain the above copyright
11*490834b2SAntonio Huete Jimenez  *      notice, this list of conditions and the following disclaimer.
12*490834b2SAntonio Huete Jimenez  *   2. Redistributions in binary form must reproduce the above copyright
13*490834b2SAntonio Huete Jimenez  *      notice, this list of conditions and the following disclaimer in the
14*490834b2SAntonio Huete Jimenez  *      documentation and/or other materials provided with the distribution.
15*490834b2SAntonio Huete Jimenez  *
16*490834b2SAntonio Huete Jimenez  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17*490834b2SAntonio Huete Jimenez  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18*490834b2SAntonio Huete Jimenez  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19*490834b2SAntonio Huete Jimenez  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20*490834b2SAntonio Huete Jimenez  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21*490834b2SAntonio Huete Jimenez  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22*490834b2SAntonio Huete Jimenez  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23*490834b2SAntonio Huete Jimenez  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24*490834b2SAntonio Huete Jimenez  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*490834b2SAntonio Huete Jimenez  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*490834b2SAntonio Huete Jimenez  * SUCH DAMAGE.
27*490834b2SAntonio Huete Jimenez  *
28*490834b2SAntonio Huete Jimenez  * The views and conclusions contained in the software and documentation
29*490834b2SAntonio Huete Jimenez  * are those of the authors and should not be interpreted as representing
30*490834b2SAntonio Huete Jimenez  * official policies, either expressed or implied, of the FreeBSD Project.
31*490834b2SAntonio Huete Jimenez  *
32*490834b2SAntonio Huete Jimenez  */
33*490834b2SAntonio Huete Jimenez 
34*490834b2SAntonio Huete Jimenez void		 search_paths(char *path, char **argv);
35*490834b2SAntonio Huete Jimenez void		 split_spaces(const char *str, int *origind, int *origc,
36*490834b2SAntonio Huete Jimenez 		    char ***origv);
37*490834b2SAntonio Huete Jimenez 
38*490834b2SAntonio Huete Jimenez extern int	 env_verbosity;
39