| ... | @@ -4471,7 +4471,7 @@ pub const rusage = switch (native_os) { | ... | @@ -4471,7 +4471,7 @@ pub const rusage = switch (native_os) { |
| 4471 | pub const SELF = 1; | 4471 | pub const SELF = 1; |
| 4472 | pub const CHILDREN = 2; | 4472 | pub const CHILDREN = 2; |
| 4473 | }, | 4473 | }, |
| 4474 | .freebsd => extern struct { | 4474 | .freebsd, .openbsd => extern struct { |
| 4475 | utime: timeval, | 4475 | utime: timeval, |
| 4476 | stime: timeval, | 4476 | stime: timeval, |
| 4477 | maxrss: c_long, | 4477 | maxrss: c_long, |
| ... | @@ -4493,6 +4493,27 @@ pub const rusage = switch (native_os) { | ... | @@ -4493,6 +4493,27 @@ pub const rusage = switch (native_os) { |
| 4493 | pub const CHILDREN = -1; | 4493 | pub const CHILDREN = -1; |
| 4494 | pub const THREAD = 1; | 4494 | pub const THREAD = 1; |
| 4495 | }, | 4495 | }, |
| | 4496 | .dragonfly, .netbsd => extern struct { |
| | 4497 | utime: timeval, |
| | 4498 | stime: timeval, |
| | 4499 | maxrss: c_long, |
| | 4500 | ixrss: c_long, |
| | 4501 | idrss: c_long, |
| | 4502 | isrss: c_long, |
| | 4503 | minflt: c_long, |
| | 4504 | majflt: c_long, |
| | 4505 | nswap: c_long, |
| | 4506 | inblock: c_long, |
| | 4507 | oublock: c_long, |
| | 4508 | msgsnd: c_long, |
| | 4509 | msgrcv: c_long, |
| | 4510 | nsignals: c_long, |
| | 4511 | nvcsw: c_long, |
| | 4512 | nivcsw: c_long, |
| | 4513 | |
| | 4514 | pub const SELF = 0; |
| | 4515 | pub const CHILDREN = -1; |
| | 4516 | }, |
| 4496 | else => void, | 4517 | else => void, |
| 4497 | }; | 4518 | }; |
| 4498 | | 4519 | |