9 Commits

Author SHA1 Message Date
Saleem Abdulrasool
a7692238a8
FoundationEssentials: initial pass to add Android support (#704)
This adds the necessary guards and includes for the Android modules.
While the module does not compile currently due to nullability
differences (and in some cases missing declarations), this at least
brings the module to a point where we can start working on the errors
and differences to create a maintainable codebase for Android.
2024-06-26 16:00:37 -07:00
Jeremy Schonfeld
db2fb923e6
(129785296) Ensure EOPNOTSUPP thrown via Data reading from a socket does not crash (#695) 2024-06-21 16:06:41 -07:00
Saleem Abdulrasool
21ed596f06
FoundationEssentials: adjust error code thrown (#671)
Rather than relaying the underlying system error, replace the error with
the expected error code. This repairs the test case expectation of the
thrown error.
2024-06-12 08:37:16 -07:00
Jeremy Schonfeld
762698ea5e
(128609033) Avoid crashing due to malformed paths creating URLs (#646) 2024-05-31 13:50:26 -07:00
Saleem Abdulrasool
b80fb683b6
FoundationEssentials: provide typed overloads for constants from WinSDK
This allows for us to use the constants without explicitly casting the
type to `DWORD` on each site of use. By providing the shadowing
overload we can simply use the constants without impacting the
readability of the surrounding code.
2024-04-11 15:53:31 -07:00
Saleem Abdulrasool
059d1abb27
FoundationEssentials: introduce a new error domain for Windows (#528)
Introduce the new Win32 error domain and error type to allow us to
represent the underlying OS error for file system operations. This
prepares us for the necessary support in `FileManager`.
2024-04-04 18:24:24 -07:00
Jeremy Schonfeld
872c7e7fd2
(124302607) Path-based CocoaErrors should use both NSFilePathErrorKey and NSURLErrorKey 2024-03-13 10:50:02 -07:00
Jeremy Schonfeld
e5211f2926
(122981400) Standardize on using internal import 2024-03-06 13:42:02 -08:00
Jeremy Schonfeld
12d6069721
(123104044) Consolidate/standardize file-based error reporting
* Consolidate/standardize file-based error reporting

* Fix build failures

* Fix test failures
2024-02-16 16:50:16 -08:00