Jonathan Flat
b1f3496e31
Move table to doc comment, other comment updates
2026-10-21 13:49:53 -06:00
Jonathan Flat
15479b53b9
Merge branch 'main' into statfs-implementation
2026-10-21 13:07:09 -06:00
Jonathan Flat
4179b2cce5
Remove CSystemFreeBSD.h, too
2026-10-12 19:39:54 -06:00
Jonathan Flat
f5fe750a57
Improve CSystem import handling
2026-10-12 19:39:51 -06:00
Jonathan Flat
cf36a2fe7b
v2: Use statfs on Linux and Android, make StatFS unavailable on WASI, omit Linux flags the kernel never reports, add descriptions for MountFlags and FileSystemID, and back-deploy CInterop.StatFS with CInterop.statfs(_:_:) for migration
2026-10-01 10:30:50 -06:00
Jonathan Flat
9a9b78e4e9
Include statvfs.h in CSystemWASI
2026-09-30 15:30:38 -06:00
Jonathan Flat
b2237390d8
Define ST_NOSYMFOLLOW for older Linux versions
2026-09-30 15:30:37 -06:00
Jonathan Flat
671a219316
StatFS implementation
2026-09-30 15:30:36 -06:00
Guillaume Lessard
6a63f086f6
Merge branch 'release/1.7.0' into main
...
# Conflicts:
# Tests/SystemTests/FileOperationsTest.swift
2026-07-29 18:12:22 -07:00
Guillaume Lessard
cd18a372c0
Implement dup3/pipe2 wrappers and types for Darwin
2026-07-22 11:10:19 -07:00
Guillaume Lessard
d3c632e868
Merge branch 'release/1.7.0'
2026-07-07 11:26:07 -07:00
Guillaume Lessard
76a2dc6162
Improve _blockingConsumeCompletionGuts
2026-06-27 11:24:37 -07:00
Guillaume Lessard
1494bb89fc
Change the io_uring existence macros to integer values
...
`true` and `false` import differently with C23 than before, so the swift-side test `(__SWIFT_IORING_SUPPORTED != 0)` became dependent on the toolchain. Integer constants are more reliable for this.
2026-06-26 17:10:10 -07:00
Guillaume Lessard
e7723528a1
Apply suggestions from code review
...
Refactor conditional compilation blocks
Co-authored-by: Guillaume Lessard <glessard@tffenterprises.com >
2026-06-26 16:15:53 -07:00
Minh Vu
58bce128ce
Forward io_uring_enter2 size argument ( #326 )
2026-06-25 19:54:56 -07:00
3405691582
5b670937e3
Don't define __BSD_VISIBLE on OpenBSD.
...
This causes a compilation error because OpenBSD headers that refer to
this aren't `#ifdef` but `#if`, so the define must have a value.
This doesn't actually seem to be necessary on OpenBSD, so let's just
remove it on OpenBSD.
2026-06-25 20:44:48 -04:00
Minh Vu
776989a955
Install missing CSystem headers ( #323 )
2026-06-13 09:09:41 -07:00
Jonathan Flat
0a3460f369
[1.7.0] Fix Stat MemberImportVisibility regression and add test ( #320 )
...
* Fix Stat MemberImportVisibility regression and add test
* Remove Android from the MIV test
2026-06-12 18:21:14 -04:00
Kenta Kubo
360e6f70f0
Fix missing O_CLOFORK on older FreeBSD
2026-06-12 22:31:04 +09:00
Guillaume Lessard
e59002fa14
Add option-taking pipe() implementation for Windows
2026-06-09 16:27:18 -07:00
Jonathan Flat
34f4970c1c
Build CSystem as a static library in CMake so shims.c is compiled
2026-05-29 12:48:43 -06:00
Guillaume Lessard
de8779fb3d
Update copyright headers
2026-05-26 16:21:28 -07:00
Jake Petroules
348b497836
Add overloads to cover dup3 and pipe2 POSIX APIs
...
This follows the existing pattern of wrapping dup/dup2 and pipe with FileDescriptor.duplicate and FileDescriptor.pipe, with additional overloads for passing the O_CLOEXEC and similar flags.
2026-05-20 09:58:46 -07:00
Jonathan Flat
a5f13c77b8
Fix typedef errors on platforms with _ASM_GENERIC_INT headers
2025-08-03 11:24:24 -06:00
Jonathan Flat
5fedb102b5
Fix IORing build for older Linux kernel versions
2025-07-29 14:24:17 -06:00
Jonathan Flat
a067a0751a
Merge pull request #242 from jrflat/fix-ioring-static-linux-sdk
...
Fix IORing static Linux SDK
2025-07-28 14:31:18 -06:00
Jonathan Flat
4f5b5fb40d
Fix IORing static Linux SDK
2025-07-28 12:08:37 -06:00
Jonathan Flat
8de80270cb
Fix WASI build (dirent, umask, errno and open flag tests)
2025-07-25 14:03:59 -06:00
David Smith
4b70ffe375
Fix short submits and also fix the registration ops enum, which somehow stopped compiling overnight
2025-07-09 20:53:23 +00:00
David Smith
d2b78f801b
Remove unneeded defines
2025-07-08 23:53:50 +00:00
David Smith
d6687d2bbb
Add deleted file back
2025-07-08 16:51:24 -07:00
David Smith
f9c2a2b8e7
Work around io_uring.h in ways that will work on both versions
2025-06-18 23:08:45 +00:00
David Smith
f5b8e02ba7
Merge remote-tracking branch 'origin/main' into david/ioring
2025-04-28 22:33:21 +00:00
David Smith
05eac87c08
It compiles again!
2025-04-18 23:38:43 +00:00
David Smith
fdbcecab0b
Eliminate internal locking and add multiple consume support
2025-02-06 00:42:21 +00:00
Andrew Kaster
f1393b76f3
CSystem: Set build and install interfaces on included headers
2024-11-21 14:48:57 -07:00
David Smith
f369347b73
Fix mismerge
2024-10-28 17:25:31 -07:00
David Smith
1a3e37d791
Fix mismerge
2024-10-28 17:24:46 -07:00
David Smith
fcb0b69df6
Merge branch 'main' into david/ioring
2024-10-28 17:20:36 -07:00
Max Desiatov and Guillaume Lessard
40b6b0ef8c
Add support for WASILibc module ( #159 )
...
Quoting the [wasi.dev landing page](https://wasi.dev ):
> The WebAssembly System Interface (WASI) is a group of standard API specifications for software compiled to the W3C WebAssembly (Wasm) standard. WASI is designed to provide a secure standard interface for applications that can be compiled to Wasm from any language, and that may run anywhere—from browsers to clouds to embedded devices.
Currently support for WASI in Swift is based on [`wasi-libc`](https://github.com/WebAssembly/wasi-libc ).
Adding support for `wasi-libc` mostly amounted to excluding unsupported errnos, adding TLS dictionary storage shim for single-threaded environment, and adding constants in C headers for macros that Clang importer currently doesn't support.
Co-authored-by: Guillaume Lessard <guillaume.lessard@apple.com >
2024-04-30 17:11:39 +01:00
Lucy Satheesan
0762f57d80
migrate CSystem to systemLibrary
...
for some reason, the linker on my linux machine fails
to link the tests otherwise. investigate / fix before merging.
2023-08-10 16:03:21 -07:00
Lucy Satheesan
15794f5cad
ioring pitch: first steps
2023-07-18 21:04:39 -07:00
Saleem Abdulrasool
5d68cf0eca
build: install CSystem into the system
...
CSystem is a leaky library dependency from System and must be
distributed. Install the files and make the dependency public so that
it is emitted into the clients.
2021-12-02 09:19:43 -08:00
Saleem Abdulrasool
b614185c90
build: add a CMake based build system ( #38 )
...
This will allow using Swift System in the toolchain stack, allowing us
to bootstrap a toolchain.
2021-03-18 16:18:24 -06:00
Saleem Abdulrasool
4ffcc62e9b
Initial port to Windows
...
This adds enough shims and tweaks the types sufficiently to allow
building System on Windows.
2020-11-03 15:03:51 -08:00
Michael Ilseman
8ffa04c0a0
Initial version of Swift System
2020-09-25 08:20:58 -07:00