Commit f1bb40a
committed
Auto merge of #3046 - siegfried:ctl_info, r=JohnTitor
Add struct ctl_info
Add the struct mentioned in #3045
Not sure if I should add `CTLIOCGINFO ` because it is wrapped in a macro:
```c
#define CTLIOCGINFO _IOWR('N', 3, struct ctl_info) /* get id from name */
```
The C definition of `ctl_info` is:
```c
/*!
* `@defined` MAX_KCTL_NAME
* `@discussion` Kernel control names must be no longer than
* MAX_KCTL_NAME.
*/
#define MAX_KCTL_NAME 96
/*
* Controls destined to the Controller Manager.
*/
/*!
* `@struct` ctl_info
* `@discussion` This structure is used with the CTLIOCGINFO ioctl to
* translate from a kernel control name to a control id.
* `@field` ctl_id The kernel control id, filled out upon return.
* `@field` ctl_name The kernel control name to find.
*/
struct ctl_info {
u_int32_t ctl_id; /* Kernel Controller ID */
char ctl_name[MAX_KCTL_NAME]; /* Kernel Controller Name (a C string) */
};
```File tree
4 files changed
+24
-0
lines changed- libc-test/semver
- src/unix/bsd/apple
4 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
| |||
1844 | 1845 | | |
1845 | 1846 | | |
1846 | 1847 | | |
| 1848 | + | |
1847 | 1849 | | |
1848 | 1850 | | |
1849 | 1851 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3313 | 3313 | | |
3314 | 3314 | | |
3315 | 3315 | | |
| 3316 | + | |
| 3317 | + | |
3316 | 3318 | | |
3317 | 3319 | | |
3318 | 3320 | | |
| |||
5931 | 5933 | | |
5932 | 5934 | | |
5933 | 5935 | | |
| 5936 | + | |
| 5937 | + | |
| 5938 | + | |
| 5939 | + | |
| 5940 | + | |
| 5941 | + | |
| 5942 | + | |
0 commit comments