lithdew
98706c9686
x: fmt source code
2021-04-25 21:15:02 +09:00
LemonBoy
e4f9a3041a
std: Use stat definition with 32bit *time fields
...
We're not ready for Y38K yet.
2021-04-21 16:31:30 +02:00
Benjamin Feng
2e85eb2bf8
Rename time32 syscalls to match rest of stdlib
2021-04-10 22:47:22 -05:00
Benjamin Feng
df910b33f4
Add ppc Linux bits
2021-04-10 22:47:22 -05:00
Michael Dusan
341dc03b63
netbsd: minor fixes to allow stage1 to build
2021-04-07 16:26:21 -07:00
Vincent Rischmann
5ce4524027
os/bits/linux: add IPv6 socket options
2021-04-04 20:43:41 +03:00
Vincent Rischmann
3dd8396a55
os/linux: fix IO_Uring.timeout
...
According to the io_uring PDF (https://kernel.dk/io_uring.pdf ) the
timeout struct must be 64 bits on both 32 and 64 bit architectures.
2021-03-02 14:13:11 +02:00
Andrew Kelley
a20169a610
zig fmt the std lib
2021-03-01 20:04:28 -07:00
daurnimator
1f17221bc4
std: add sendmsg
2021-02-28 21:57:43 +02:00
Al Hoang
c17396691c
initial support for haiku sync update
...
* add cpu count
* use haiku find_directory
* add definitions and exports for building in haiku
2021-02-25 16:41:42 -07:00
Al Hoang
6b0372229d
initial support for haiku continue clean up
...
* remove unused definitions
* setup os specific blocks
2021-02-25 16:41:42 -07:00
Al Hoang
025635c3f8
initial support for haiku past stage0
2021-02-25 16:41:42 -07:00
Andrew Kelley
5f35dc0c0d
zig fmt the std lib
2021-02-24 21:29:23 -07:00
data-man
340825a7af
Add epoll_pwait2 Linux syscall
2021-02-21 11:47:13 +02:00
Tadeo Kondrak
5dfe0e7e8f
Convert inline fn to callconv(.Inline) everywhere
2021-02-10 20:06:12 -07:00
Bill Nagel
1e2be14b6b
define nfds_t for windows
2021-01-12 16:37:58 -08:00
Vincent Rischmann
3468872d83
os/bits/linux: add the termios cc bits
2021-01-11 15:39:36 -08:00
Andrew Kelley
73b17474d7
Merge pull request #7134 from alexnask/fix_std_fs_watch
...
The std.fs.Watch rewrite PR
2021-01-11 12:45:36 -08:00
Robin Voetter
83fad7d4f7
Add IP_ constants
2021-01-08 01:35:52 +01:00
xackus
1640c357f4
freebsd, netbsd, dragonfly: add struct timeval
2021-01-05 13:07:25 -08:00
daurnimator
e4c4a0a5f6
Improve uring definitions
2021-01-03 19:52:20 -08:00
Sébastien Marie
a9c75a2b48
openbsd: add pollfd interface
2021-01-01 20:05:19 -08:00
Frank Denis
6c2e0c2046
Year++
2020-12-31 15:45:24 -08:00
LemonBoy
daed2ba2a0
std: Add more standard type definitions for FreeBSD
...
Closes #7550
2020-12-30 10:25:43 -08:00
LemonBoy
b297c2eae9
std: Fix compilation on FreeBSD/Darwin
2020-12-29 10:40:26 -07:00
LemonBoy
2c16a96686
std: Fix poll definitions for FreeBSD/Darwin
2020-12-29 10:40:00 -07:00
Andrew Kelley
8fc765387f
Merge pull request #7449 from kristoff-it/macos-termios
...
add termios bits for darwin
2020-12-26 17:13:17 -08:00
Sébastien Marie
6e2622661c
openbsd: implement segfault handling on openbsd x86_64
2020-12-23 20:47:06 +02:00
Loris Cro
9bb0da6100
added comments, removed useless comptime keywords
2020-12-23 17:28:59 +01:00
Loris Cro
8c00c7473c
add termios bits for darwin
2020-12-23 17:28:59 +01:00
Sébastien Marie
4420dabdf5
openbsd: fix siginfo_t struct definition
...
`_proc` struct part contains an union for kill/cld parts.
see [siginfo_t](77c6c13150/sys/sys/siginfo.h (L132) )
2020-12-23 11:08:55 +02:00
Alex Cameron
60020fd545
Enable segfault handling on FreeBSD.
2020-12-23 11:02:05 +02:00
Andrew Kelley
53987c932c
std.crypto.random: introduce fork safety
...
Everybody gets what they want!
* AT_RANDOM is completely ignored.
* On Linux, MADV_WIPEONFORK is used to provide fork safety.
* On pthread systems, `pthread_atfork` is used to provide fork safety.
* For systems that do not have the capability to provide fork safety,
the implementation falls back to calling getrandom() every time.
* If madvise is unavailable or returns an error, or pthread_atfork
fails for whatever reason, it falls back to calling getrandom() every
time.
* Applications may choose to opt-out of fork safety.
* Applications may choose to opt-in to unconditionally calling
getrandom() for every call to std.crypto.random.fillFn.
* Added `std.meta.globalOption`.
* Added `std.os.madvise` and related bits.
* Bumped up the size of the main thread TLS buffer. See the comment
there for justification.
* Simpler hot path in TLS initialization.
2020-12-18 15:54:01 -07:00
Alexandros Naskos
16144a7a37
Add EV_ERROR to FreeBSD bits
2020-12-17 22:58:05 +02:00
Tau
9b86dde7b9
Add baudrate constants
...
This adds the missing baudrate constants for linux where I've used them
directly.
2020-12-17 19:17:10 +02:00
Dmitry Atamanov
e16997a66c
Add process_madvise to Linux syscalls ( #7450 )
2020-12-17 18:58:09 +02:00
Sébastien Marie
8bf5a3a5c1
openbsd: correct few structs
...
- addrinfo: addr and canonname are switched (wrong layout)
- addrinfo, Flock, msghdr struct: use proper c_xxx type instead of fixed size. it should help using struct on all architectures supported by openbsd
2020-12-15 14:49:42 -05:00
data-man
8591f30b0d
Add missed Linux syscalls
2020-12-14 18:22:28 +02:00
LemonBoy
d9e9390550
Fix compilation error on OpenBSD
2020-12-13 20:36:47 +01:00
LemonBoy
bb72b0e800
Fix compilation error on FreeBSD
2020-12-13 20:36:34 +01:00
LemonBoy
97ba3d9a66
std: Drop struct prefixes in FreeBSD siginfo
...
I'm not sure this prefix-free style is a good idea, but let's roll with
it for the moment.
2020-12-13 19:45:11 +01:00
Alex Cameron
7515922907
Fix Sigaction struct on FreeBSD.
2020-12-13 19:37:13 +01:00
LemonBoy
3375a580be
std: Update more siginfo bits for BSDs
2020-12-13 19:28:38 +01:00
LemonBoy
fc70db5ab5
std: Fixes for siginfo test on macos
...
Xnu's sigaction() only supports fetching a limited set of sa_flags, test
SA_SIGINFO instead of SA_RESETHAND as that's supported everywhere.
Add another check to make sure SA_RESETHAND works.
Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
2020-12-13 19:17:04 +01:00
LemonBoy
629cc6cf28
std: Further siginfo refinements
...
* Define siginfo and sigaction for Darwin
* Define sigaction/handler union for maximum libc compatibility
* Minor correction to some type definitions
2020-12-12 16:44:10 +01:00
LemonBoy
beae3cea17
std: Improve sigaction interface
...
Add a smoke test to prevent regressions.
2020-12-12 13:57:25 +01:00
Jonathan Marler
b587a42233
add std.os.shutdown function for sockets
2020-11-30 11:25:03 -08:00
Isaac Freund
58365c4e79
std/os: fix prctl constants
2020-11-25 15:45:55 -08:00
Isaac Freund
8cf319d206
std/os: define and use dev_t for linux x86_64
2020-11-20 17:35:52 -08:00
Isaac Freund
f473b3e87c
std/os: add time_t definiton for x86_64 linux
2020-11-20 17:23:43 -08:00