source: azure_iot_hub/trunk/musl-1.1.18/include/spawn.h@ 388

Last change on this file since 388 was 388, checked in by coas-nagasima, 5 years ago

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 2.6 KB
Line 
1#ifndef _SPAWN_H
2#define _SPAWN_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <features.h>
9
10#define __NEED_mode_t
11#define __NEED_pid_t
12#define __NEED_sigset_t
13
14#include <bits/alltypes.h>
15
16struct sched_param;
17
18#define POSIX_SPAWN_RESETIDS 1
19#define POSIX_SPAWN_SETPGROUP 2
20#define POSIX_SPAWN_SETSIGDEF 4
21#define POSIX_SPAWN_SETSIGMASK 8
22#define POSIX_SPAWN_SETSCHEDPARAM 16
23#define POSIX_SPAWN_SETSCHEDULER 32
24#define POSIX_SPAWN_USEVFORK 64
25#define POSIX_SPAWN_SETSID 128
26
27typedef struct {
28 int __flags;
29 pid_t __pgrp;
30 sigset_t __def, __mask;
31 int __prio, __pol, __pad[16];
32} posix_spawnattr_t;
33
34typedef struct {
35 int __pad0[2];
36 void *__actions;
37 int __pad[16];
38} posix_spawn_file_actions_t;
39
40int posix_spawn(pid_t *__restrict, const char *__restrict, const posix_spawn_file_actions_t *,
41 const posix_spawnattr_t *__restrict, char *const *__restrict, char *const *__restrict);
42int posix_spawnp(pid_t *__restrict, const char *__restrict, const posix_spawn_file_actions_t *,
43 const posix_spawnattr_t *__restrict, char *const *__restrict, char *const *__restrict);
44
45int posix_spawnattr_init(posix_spawnattr_t *);
46int posix_spawnattr_destroy(posix_spawnattr_t *);
47
48int posix_spawnattr_setflags(posix_spawnattr_t *, short);
49int posix_spawnattr_getflags(const posix_spawnattr_t *__restrict, short *__restrict);
50
51int posix_spawnattr_setpgroup(posix_spawnattr_t *, pid_t);
52int posix_spawnattr_getpgroup(const posix_spawnattr_t *__restrict, pid_t *__restrict);
53
54int posix_spawnattr_setsigmask(posix_spawnattr_t *__restrict, const sigset_t *__restrict);
55int posix_spawnattr_getsigmask(const posix_spawnattr_t *__restrict, sigset_t *__restrict);
56
57int posix_spawnattr_setsigdefault(posix_spawnattr_t *__restrict, const sigset_t *__restrict);
58int posix_spawnattr_getsigdefault(const posix_spawnattr_t *__restrict, sigset_t *__restrict);
59
60int posix_spawnattr_setschedparam(posix_spawnattr_t *__restrict, const struct sched_param *__restrict);
61int posix_spawnattr_getschedparam(const posix_spawnattr_t *__restrict, struct sched_param *__restrict);
62int posix_spawnattr_setschedpolicy(posix_spawnattr_t *, int);
63int posix_spawnattr_getschedpolicy(const posix_spawnattr_t *__restrict, int *__restrict);
64
65int posix_spawn_file_actions_init(posix_spawn_file_actions_t *);
66int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *);
67
68int posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *__restrict, int, const char *__restrict, int, mode_t);
69int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *, int);
70int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *, int, int);
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif
Note: See TracBrowser for help on using the repository browser.