Deleted Added
full compact
exec.c (229403) exec.c (288029)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. 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

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

26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#if defined(LIBC_SCCS) && !defined(lint)
31static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 6/4/93";
32#endif /* LIBC_SCCS and not lint */
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. 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

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

26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#if defined(LIBC_SCCS) && !defined(lint)
31static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 6/4/93";
32#endif /* LIBC_SCCS and not lint */
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/lib/libc/gen/exec.c 229403 2012-01-03 18:51:58Z ed $");
34__FBSDID("$FreeBSD: head/lib/libc/gen/exec.c 288029 2015-09-20 20:23:16Z rodrigc $");
35
36#include "namespace.h"
37#include <sys/param.h>
38#include <sys/types.h>
39#include <sys/stat.h>
40#include <errno.h>
41#include <unistd.h>
42#include <stdlib.h>

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

126 argv[0] = arg;
127 while ((argv[n] = va_arg(ap, char *)) != NULL)
128 n++;
129 va_end(ap);
130 return (execvp(name, __DECONST(char **, argv)));
131}
132
133int
35
36#include "namespace.h"
37#include <sys/param.h>
38#include <sys/types.h>
39#include <sys/stat.h>
40#include <errno.h>
41#include <unistd.h>
42#include <stdlib.h>

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

126 argv[0] = arg;
127 while ((argv[n] = va_arg(ap, char *)) != NULL)
128 n++;
129 va_end(ap);
130 return (execvp(name, __DECONST(char **, argv)));
131}
132
133int
134execv(name, argv)
135 const char *name;
136 char * const *argv;
134execv(const char *name, char * const *argv)
137{
138 (void)_execve(name, argv, environ);
139 return (-1);
140}
141
142int
143execvp(const char *name, char * const *argv)
144{

--- 140 unchanged lines hidden ---
135{
136 (void)_execve(name, argv, environ);
137 return (-1);
138}
139
140int
141execvp(const char *name, char * const *argv)
142{

--- 140 unchanged lines hidden ---