Deleted Added
full compact
environment.c (218909) environment.c (221358)
1/*
2 * Copyright (c) 1998 Michael Smith.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1998 Michael Smith.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libstand/environment.c 218909 2011-02-21 09:01:34Z brucec $");
28__FBSDID("$FreeBSD: head/lib/libstand/environment.c 221358 2011-05-03 04:44:50Z rodrigc $");
29
30/*
31 * Manage an environment-like space in which string variables may be stored.
32 * Provide support for some method-like operations for setting/retrieving
33 * variables in order to allow some type strength.
34 */
35
36#include "stand.h"

--- 165 unchanged lines hidden (view full) ---

202 environ = ev->ev_next;
203 free(ev->ev_name);
204 if (ev->ev_flags & EV_DYNAMIC)
205 free(ev->ev_value);
206 free(ev);
207}
208
209int
29
30/*
31 * Manage an environment-like space in which string variables may be stored.
32 * Provide support for some method-like operations for setting/retrieving
33 * variables in order to allow some type strength.
34 */
35
36#include "stand.h"

--- 165 unchanged lines hidden (view full) ---

202 environ = ev->ev_next;
203 free(ev->ev_name);
204 if (ev->ev_flags & EV_DYNAMIC)
205 free(ev->ev_value);
206 free(ev);
207}
208
209int
210env_noset(struct env_var *ev, int flags, const void *value)
210env_noset(struct env_var *ev __unused, int flags __unused,
211 const void *value __unused)
211{
212 return(EPERM);
213}
214
215int
212{
213 return(EPERM);
214}
215
216int
216env_nounset(struct env_var *ev)
217env_nounset(struct env_var *ev __unused)
217{
218 return(EPERM);
219}
218{
219 return(EPERM);
220}