Commit Graph

48 Commits

Author SHA1 Message Date
LegionMammal978
6a58758d5f Add ISO C functions atof, atol, atoll, strtoll, strtoull 2022-12-14 10:09:03 -05:00
David Carlier
27cc898f59 adding getopt_long for unixes. 2022-12-01 12:34:38 +00:00
Steve Lau
5ffdbc6847 expose dirname and basename 2022-10-25 08:04:54 +08:00
Alan Somers
8acaac5ddf Add new definitions to libc-test/semver 2022-10-22 19:54:28 -06:00
Sébastien Marie
21f11f3507 add new constants to openbsd.txt 2022-10-18 04:45:05 +00:00
Sébastien Marie
236fe11e9c openbsd: add getmntinfo(3) and getfsstat(2) support 2022-09-13 18:24:41 +00:00
i509VCB
bdd3baa875
add BUS_ si_code constants 2022-07-31 18:33:26 -05:00
Thomas Hurst
ae7a8f8b7a Add OpenBSD kinfo_proc struct 2022-05-10 17:02:11 +00:00
Mara Bos
311c7d9e3b Add OpenBSD's futex.h. 2022-04-19 14:00:31 +02:00
Victor Polevoy
cdba825048
Add SCHED constants for OpenBSD.
The constants are defined for improving the user experience when calling
the libc functions related to scheduling policies. Also helps with
unifiying the code as all these constants are already defined for other
operating systems.
2022-04-09 21:53:47 +02:00
bors
02bdb0a39f Auto merge of #2733 - vityafx:add-pthread-functions-to-bsd, r=Amanieu
Expose more thread bindings for BSD-like OSes.

Fixes https://github.com/rust-lang/libc/issues/2721
2022-04-02 23:14:55 +00:00
Victor Polevoy
576f86d26f
Expose more thread bindings for NetBSD-like OSes. 2022-04-01 17:21:23 +02:00
David Carlier
5fbf1bd7c7 following up on openbsd's kinfo_vmentry flags 2022-03-31 18:15:50 +01:00
David Carlier
587230ad49 openbsd kinfo_vmentry protection flags 2022-03-30 21:55:48 +01:00
David Carlier
365ffa80e8 openbsd hash search api 2022-03-05 08:12:51 +00:00
David Carlier
13eda020dc openbsd add lsearch/lfind fn. 2022-03-03 08:17:18 +00:00
David Carlier
0a0158947b BSD add deterministic rand api 2022-02-14 20:23:23 +00:00
Charlie Root
2cfa3e949f Define ip_mreqn on OpenBSD 2022-01-24 10:22:33 -07:00
David Carlier
372c051029 openbsd adding splice struct for SO_SPLICE sock opt 2021-12-30 10:23:26 +00:00
David Carlier
cd79a4af0a couple of ptrace query for openbsd 2021-11-19 18:12:08 +00:00
David Carlier
c42379d669 netbsd/openbsd ftok addition. 2021-11-16 17:49:34 +00:00
David Carlier
2676fd3ea8 openbsd backtrace api addition 2021-11-10 17:54:01 +00:00
bors
0e32674d0c Auto merge of #2505 - rtzoeller:bsd_getsetresuid, r=Amanieu
Add getresgid and getresuid to DragonFly, FreeBSD and OpenBSD

The functions have the same signatures as on Linux.
2021-11-04 16:01:03 +00:00
Ryan Zoeller
804f4bfd4b Add getresgid and getresuid to DragonFly, FreeBSD and OpenBSD 2021-11-02 22:17:48 -05:00
David Carlier
319aed005b netbsd/openbsd add AI_* constants 2021-10-31 08:52:37 +00:00
David Carlier
aa81e1098d openbsd add getthrid fn. 2021-10-05 20:26:46 +01:00
David Carlier
8971f45812 netbsd/openbsd add get thread name api. 2021-09-25 20:33:04 +01:00
David Carlier
2cb8a4395d BSD add utrace calls 2021-09-19 14:57:43 +01:00
David Carlier
5de2655bfa openbsd add secure alloc fn. 2021-08-31 19:46:50 +01:00
Niels Sascha Reedijk
098cb7e2e7 Haiku: fix tests 2021-08-19 20:59:27 +00:00
bors
10761b1cd6 Auto merge of #2329 - devnexen:getsethostid_unix, r=JohnTitor
adding gethostid/sethostid to most unixes (redox still unimplemented at

the moment).
2021-08-15 23:39:53 +00:00
David CARLIER
43c316e287 adding gethostid/sethostid to most unixes (redox still unimplemented at
the moment).
2021-08-13 22:15:22 +01:00
Ryan Zoeller
b68bd77e31 sched_get_priority_max/min apply to all BSDs and Solaris 2021-08-12 11:58:10 -05:00
David Carlier
dcdd33223d netbsd/openbsd adding more IPC_* flags.
SHM flags, albeit obsolete, are used in couple of crates.
2021-08-08 16:29:56 +01:00
David Carlier
399d798929 openbsd adding kinfo_vmentry 2021-07-25 17:03:51 +01:00
David CARLIER
8d282670cb bsd/apple adding arc4 api 2021-07-02 13:07:23 +01:00
David Carlier
3f52f57bf4 bsd reallocarray and reallocarr for netbsd. 2021-06-27 08:41:38 +01:00
David Carlier
7250a68be7 pthread_spinlock api remaining bsd systems 2021-06-17 10:44:01 +01:00
David Carlier
07e489a39d bsd adding setproctitle (setproctitle_fast for FreeBSD too).
addresses #2197
2021-06-01 05:59:08 +01:00
bors
de9842278f Auto merge of #2176 - devnexen:netdb_constants, r=Amanieu
openbsd adding few more netdb constants
2021-05-16 18:24:33 +00:00
David Carlier
0866ed992e openbsd adding few more netdb constants 2021-05-16 07:11:25 +01:00
Vincent Lee
b7b574a201 Add unveil(2) to OpenBSD semver list 2021-05-15 19:52:03 -05:00
bors
d3468b2dbf Auto merge of #2156 - niluxv:add_explicit_memset_functions, r=JohnTitor
Add explicit/volatile memset/memzero functions

Adds the following functions to platforms that support them:
* `explicit_bzero` (de facto standard): Glibc, MUSL, FreeBSD, DragonFly BSD, OpenBSD
* `explicit_memset`: NetBSD
* `memset_s` (C11 standard): FreeBSD, DragonFly BSD, Apple OSX

These functions are useful for zeroing secret memory.

Closes #2009
2021-05-11 18:27:41 +00:00
David Carlier
36f2fe5ad5 openbsd adding mmap MAP_CONCEAL flag. 2021-05-08 08:11:04 +01:00
niluxv
e0adeabc99 Add explicit/volatile memset/memzero functions
Adds the following functions to platforms that support them:
* `explicit_bzero` (de facto standard): Glibc, MUSL, FreeBSD, DragonFly BSD, OpenBSD
* `explicit_memset`: NetBSD
* `memset_s` (C11 standard): FreeBSD, DragonFly BSD

These functions are useful for zeroing secret memory.
2021-05-02 12:02:15 +02:00
Yuki Okushi
5e6915bcd5 Add some functions added by #2153 to the semver list 2021-05-02 17:30:59 +09:00
Thomas de Zeeuw
f8ba06be3a Add Fuchsia semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw
e0c8a6a69d Add OpenBSD semver list 2021-03-27 10:27:17 +01:00