Package org.gnome.glib
Enum Class SpawnFlags
- All Implemented Interfaces:
Serializable,Comparable<SpawnFlags>,Constable,Enumeration
@Generated("io.github.jwharm.JavaGI")
public enum SpawnFlags
extends Enum<SpawnFlags>
implements Enumeration
Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe child will inherit the parent's standard error.the child will inherit the parent's standard input (by default, the child's standard input is attached to/dev/null).The child will inherit the parent's standard output.create all pipes with theO_CLOEXECflag set.no flags, default behaviourthe child will not be automatically reaped; you must use g_child_watch_add() yourself (or call waitpid() or handleSIGCHLDyourself), or the child will become a zombie.the first element ofargvis the file to execute, while the remaining elements are the actual argument vector to pass to the file.the parent's open file descriptors will be inherited by the child; otherwise all descriptors except stdin, stdout and stderr will be closed before calling exec() in the child.argv[0]need not be an absolute path, it will be looked for in the user'sPATH.ifargv[0]is not an absolute path, it will be looked for in thePATHfrom the passed child environment.the child's standard error will be discarded.The child's standard input is attached to/dev/null.the child's standard output will be discarded, instead of going to the same location as the parent's standard output. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Get the numeric value of this enumstatic Set<SpawnFlags> of(int flags) Create a newEnumSet<SpawnFlags>for the provided bitfieldstatic Set<SpawnFlags> of(MemorySegment address) Create a newEnumSet<SpawnFlags>for the bitfield in the provided memory address.static SpawnFlagsReturns the enum constant of this class with the specified name.static SpawnFlags[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
no flags, default behaviour -
LEAVE_DESCRIPTORS_OPEN
the parent's open file descriptors will be inherited by the child; otherwise all descriptors except stdin, stdout and stderr will be closed before calling exec() in the child. -
DO_NOT_REAP_CHILD
the child will not be automatically reaped; you must use g_child_watch_add() yourself (or call waitpid() or handleSIGCHLDyourself), or the child will become a zombie. -
SEARCH_PATH
argv[0]need not be an absolute path, it will be looked for in the user'sPATH. -
STDOUT_TO_DEV_NULL
the child's standard output will be discarded, instead of going to the same location as the parent's standard output. -
STDERR_TO_DEV_NULL
the child's standard error will be discarded. -
CHILD_INHERITS_STDIN
the child will inherit the parent's standard input (by default, the child's standard input is attached to/dev/null). -
FILE_AND_ARGV_ZERO
the first element ofargvis the file to execute, while the remaining elements are the actual argument vector to pass to the file. Normally g_spawn_async_with_pipes() usesargv[0]as the file to execute, and passes all ofargvto the child. -
SEARCH_PATH_FROM_ENVP
ifargv[0]is not an absolute path, it will be looked for in thePATHfrom the passed child environment. Since: 2.34 -
CLOEXEC_PIPES
create all pipes with theO_CLOEXECflag set. Since: 2.40 -
CHILD_INHERITS_STDOUT
The child will inherit the parent's standard output.- Since:
- 2.74
-
CHILD_INHERITS_STDERR
The child will inherit the parent's standard error.- Since:
- 2.74
-
STDIN_FROM_DEV_NULL
The child's standard input is attached to/dev/null.- Since:
- 2.74
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a newEnumSet<SpawnFlags>for the provided bitfield- Parameters:
flags- the SpawnFlags bitfield- Returns:
- the EnumSet for the provided bitfield
-
of
Create a newEnumSet<SpawnFlags>for the bitfield in the provided memory address.- Parameters:
address- the memory address holding a bitfield value- Returns:
- the EnumSet for the bitfield in the provided memory address
-