| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: spawn.h,v 1.5 2014/09/05 05:46:54 matt Exp $ */ | | 1 | /* $NetBSD: spawn.h,v 1.6 2017/11/29 20:15:21 snj Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org> | | 4 | * Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org> |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -80,26 +80,26 @@ typedef struct posix_spawn_file_actions | | | @@ -80,26 +80,26 @@ typedef struct posix_spawn_file_actions |
80 | #define POSIX_SPAWN_RESETIDS 0x01 | | 80 | #define POSIX_SPAWN_RESETIDS 0x01 |
81 | #define POSIX_SPAWN_SETPGROUP 0x02 | | 81 | #define POSIX_SPAWN_SETPGROUP 0x02 |
82 | #define POSIX_SPAWN_SETSCHEDPARAM 0x04 | | 82 | #define POSIX_SPAWN_SETSCHEDPARAM 0x04 |
83 | #define POSIX_SPAWN_SETSCHEDULER 0x08 | | 83 | #define POSIX_SPAWN_SETSCHEDULER 0x08 |
84 | #define POSIX_SPAWN_SETSIGDEF 0x10 | | 84 | #define POSIX_SPAWN_SETSIGDEF 0x10 |
85 | #define POSIX_SPAWN_SETSIGMASK 0x20 | | 85 | #define POSIX_SPAWN_SETSIGMASK 0x20 |
86 | | | 86 | |
87 | #ifdef _NETBSD_SOURCE | | 87 | #ifdef _NETBSD_SOURCE |
88 | /* | | 88 | /* |
89 | * With this flag set, the kernel part of posix_spawn will not try to | | 89 | * With this flag set, the kernel part of posix_spawn will not try to |
90 | * maximize parallelism, but instead the parent will wait for the child | | 90 | * maximize parallelism, but instead the parent will wait for the child |
91 | * process to complete all file/scheduler actions and report back errors | | 91 | * process to complete all file/scheduler actions and report back errors |
92 | * from that via the return value of the posix_spawn syscall. This is | | 92 | * from that via the return value of the posix_spawn syscall. This is |
93 | * usefull for testing, as it can verify the generated error codes and | | 93 | * useful for testing, as it can verify the generated error codes and |
94 | * match to the supposedly triggered failures. | | 94 | * match to the supposedly triggered failures. |
95 | * In general, the kernel will return from the posix_spawn syscall as | | 95 | * In general, the kernel will return from the posix_spawn syscall as |
96 | * early as possible, as soon as creating the new process is known to | | 96 | * early as possible, as soon as creating the new process is known to |
97 | * work. Errors might either be reported back via the return value in | | 97 | * work. Errors might either be reported back via the return value in |
98 | * the parent, or (less explicit) by an error exit of the child | | 98 | * the parent, or (less explicit) by an error exit of the child |
99 | * process. Our test cases deal with both behaviours in the general | | 99 | * process. Our test cases deal with both behaviours in the general |
100 | * case, but request the POSIX_SPAWN_RETURNERROR for some tests. | | 100 | * case, but request the POSIX_SPAWN_RETURNERROR for some tests. |
101 | */ | | 101 | */ |
102 | #define POSIX_SPAWN_RETURNERROR 0x40 | | 102 | #define POSIX_SPAWN_RETURNERROR 0x40 |
103 | #endif | | 103 | #endif |
104 | | | 104 | |
105 | #endif /* !_SYS_SPAWN_H_ */ | | 105 | #endif /* !_SYS_SPAWN_H_ */ |