Skip to content

Commit 1ac780a

Browse files
committed
Auto merge of #2408 - devnexen:netbsd_flags_string, r=Amanieu
netbsd add string_to_flags api
2 parents a50d9e8 + f21b394 commit 1ac780a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

libc-test/semver/netbsd.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,7 @@ fchdir
11461146
fchflags
11471147
fdatasync
11481148
fdopendir
1149+
flags_to_string
11491150
fmemopen
11501151
forkpty
11511152
freeifaddrs
@@ -1367,6 +1368,7 @@ srand
13671368
stack_t
13681369
strcasecmp
13691370
strcasestr
1371+
string_to_flags
13701372
strncasecmp
13711373
strndup
13721374
strpct

src/unix/bsd/netbsdlike/netbsd/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -2388,6 +2388,13 @@ extern "C" {
23882388
tpe: ::c_int,
23892389
);
23902390

2391+
pub fn string_to_flags(
2392+
string_p: *mut *mut ::c_char,
2393+
setp: *mut ::c_ulong,
2394+
clrp: *mut ::c_ulong,
2395+
) -> ::c_int;
2396+
pub fn flags_to_string(flags: ::c_ulong, def: *const ::c_char) -> ::c_int;
2397+
23912398
pub fn kinfo_getvmmap(pid: ::pid_t, cntp: *mut ::size_t) -> *mut kinfo_vmentry;
23922399
}
23932400

0 commit comments

Comments
 (0)