1*2b395c3cSAndy Fiddaman /* 2*2b395c3cSAndy Fiddaman * This file and its contents are supplied under the terms of the 3*2b395c3cSAndy Fiddaman * Common Development and Distribution License ("CDDL"), version 1.0. 4*2b395c3cSAndy Fiddaman * You may only use this file in accordance with the terms of version 5*2b395c3cSAndy Fiddaman * 1.0 of the CDDL. 6*2b395c3cSAndy Fiddaman * 7*2b395c3cSAndy Fiddaman * A full copy of the text of the CDDL should have accompanied this 8*2b395c3cSAndy Fiddaman * source. A copy of the CDDL is also available via the Internet at 9*2b395c3cSAndy Fiddaman * http://www.illumos.org/license/CDDL. 10*2b395c3cSAndy Fiddaman */ 11*2b395c3cSAndy Fiddaman 12*2b395c3cSAndy Fiddaman /* 13*2b395c3cSAndy Fiddaman * Copyright 2024 Oxide Computer Company 14*2b395c3cSAndy Fiddaman */ 15*2b395c3cSAndy Fiddaman 16*2b395c3cSAndy Fiddaman #ifndef _SYS_EXECX_H 17*2b395c3cSAndy Fiddaman #define _SYS_EXECX_H 18*2b395c3cSAndy Fiddaman 19*2b395c3cSAndy Fiddaman #ifdef __cplusplus 20*2b395c3cSAndy Fiddaman extern "C" { 21*2b395c3cSAndy Fiddaman #endif 22*2b395c3cSAndy Fiddaman 23*2b395c3cSAndy Fiddaman /* 24*2b395c3cSAndy Fiddaman * If this flag is set then the first argument to execvex() is interpreted as 25*2b395c3cSAndy Fiddaman * a file descriptor that is open in the calling process rather than the name 26*2b395c3cSAndy Fiddaman * of a program to be executed. 27*2b395c3cSAndy Fiddaman */ 28*2b395c3cSAndy Fiddaman #define EXEC_DESCRIPTOR 0x1 29*2b395c3cSAndy Fiddaman 30*2b395c3cSAndy Fiddaman #ifndef _KERNEL 31*2b395c3cSAndy Fiddaman extern int execvex(uintptr_t, char *const *, char *const *, int); 32*2b395c3cSAndy Fiddaman #endif 33*2b395c3cSAndy Fiddaman 34*2b395c3cSAndy Fiddaman #ifdef __cplusplus 35*2b395c3cSAndy Fiddaman } 36*2b395c3cSAndy Fiddaman #endif 37*2b395c3cSAndy Fiddaman 38*2b395c3cSAndy Fiddaman #endif /* _SYS_EXECX_H */ 39