summaryrefslogtreecommitdiffstats
path: root/drivers/unix
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #84469 from time-killer-games/patch-1Rémi Verschelde2024-01-041-1/+16
|\ \ | | | | | | | | | Fix NetBSD executable path
| * | Fix NetBSD Executable PathSamuel Venable2023-11-061-1/+16
| | |
* | | Distinguishs between dynamic library not found and can't be opened.Daylily-Zeleen2024-01-011-0/+2
|/ /
* / Linux: Disable RTLD_DEEPBIND mode for dlopen() in sanitizer buildsDavid Snopek2023-10-301-1/+7
|/
* [Linux] Implement DirAccess.is_case_sensitive for EXT4 and F2FS.bruvzg2023-10-132-0/+25
|
* Merge pull request #82973 from dsnopek/gdextension-linux-favor-local-symbolsRémi Verschelde2023-10-101-1/+5
|\ | | | | | | On Linux, favor local symbols when loading a shared library
| * On Linux, favor local symbols when loading a shared libraryDavid Snopek2023-10-071-1/+5
| |
* | Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-10-081-3/+3
|/
* check_c_headers from tuple array to dictionaryThaddeus Crews2023-10-011-1/+1
|
* Windows: Remove `MSVC` define redundant with `_MSC_VER`Rémi Verschelde2023-09-261-17/+0
| | | | Cleanup unused MSVC code in FileAccessUnix.
* [Drivers,Platform] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-122-12/+12
|
* UWP: Remove platform port, needs to be redone from scratch for 4.xRémi Verschelde2023-09-071-47/+18
| | | | | | | | | | | The UWP platform port was never ported to the Godot 4.0+ API, and it's now accumulating bitrot as it doesn't compile, and thus we no longer propagate platform changes in it. So we finally remove to acknowledge this state. There's still some interest in reviving the UWP port eventually, especially as support for Direct3D 12 will soon be merged, but when that happens it will be easiest to redo it from scratch.
* [FileAccess] Add methods to get/set "hidden" and "read-only" attributes on ↵bruvzg2023-08-082-5/+78
| | | | macOS/BSD and Windows.
* Fix file permissions for the web platformAdam Scott2023-07-251-4/+1
|
* [Net] Explicitly handle buffer errors in send/recvFabio Alessandrelli2023-07-192-0/+21
|
* Fix formatting of dlopen error message on WindowsKamil Brzoskowski2023-07-091-1/+1
| | | | | | And harmonize the format for all platforms. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Remove uses of `vformat()` with no placeholdersHugo Locurcio2023-06-281-1/+1
| | | | This is identical to passing the string directly.
* [Unix] Fix temporary file permissions.bruvzg2023-06-161-0/+4
|
* Enable shadow warnings and fix raised errorsNinni Pipping2023-05-111-6/+6
|
* [OS] Implement and expose to scripting APIs `get_memory_info` method instead ↵bruvzg2023-04-242-1/+206
| | | | of old `get_free_static_memory`.
* Fix Unix temp file creations when using is_backup_save_enabled.bruvzg2023-03-181-5/+17
|
* Merge pull request #73156 from gw2cc/safe_saveYuri Sizov2023-03-161-1/+6
|\ | | | | Create a safe temporary file with is_backup_save_enabled
| * Create a safe temporary file with is_backup_save_enabledACB2023-03-151-1/+6
| |
* | Restore FileAccess.close method.bruvzg2023-02-162-0/+6
|/
* Merge pull request #71514 from akien-mga/os-unset_environmentRémi Verschelde2023-01-182-7/+16
|\ | | | | | | OS: Add `unset_environment`, better validate input
| * OS: Add `unset_environment`, better validate inputRémi Verschelde2023-01-162-7/+16
| | | | | | | | | | | | | | | | | | Instead of returning an undocumented boolean error code, we do the validation checks that should ensure a successful result. Based on: - https://linux.die.net/man/3/setenv - https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setenvironmentvariable
* | Linux/BSD: Add LINUXBSD_ENABLED define for non X11-related checksRémi Verschelde2023-01-161-2/+2
|/
* Merge pull request #70714 from Calinou/doc-os-stdinRémi Verschelde2023-01-122-8/+4
|\ | | | | Improve documentation for `OS.read_string_from_stdin()`
| * Improve documentation for `OS.read_string_from_stdin()`Hugo Locurcio2023-01-112-8/+4
| | | | | | | | | | | | This makes it clearer that calls to this method are blocking. The unused method parameter was also removed.
* | One Copyright Update to rule them allRémi Verschelde2023-01-0514-406/+406
|/ | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Fix reading Unicode from stdio.bruvzg2022-12-212-6/+2
|
* [iOS] Fix getting Unicode executable path, fix "!configured" and ↵bruvzg2022-11-161-1/+1
| | | | "!classes.has(ti.inherits)" error spam on start.
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-3/+3
|
* Merge pull request #66102 from MJacred/feature/getvideoadapterdriverinfoRémi Verschelde2022-10-112-0/+6
|\ | | | | | | Fetch video adapter driver name and version from OS
| * Fetch video adapter driver name and version from OS on Linux/*BSD and WindowsMJacred2022-10-112-0/+6
| |
* | Cleanup unused defines in platform codeRémi Verschelde2022-10-111-2/+2
| |
* | SCons: Cleanup GCC warnings configurationRémi Verschelde2022-10-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Outright disable spammy warnings due to past or present GCC bugs: * `-Wno-strict-overflow` for GCC 7. * `-Wno-type-limits` for GCC before 11 (regressed in 9/10, might work in earlier releases but at this stage we don't care). * `-Wno-return-type` for GCC 12/13 (regression, still not fixed). - Enable extra warnings conditionally when broken on earlier GCC: * `-Wnoexcept` was removed due to an upstream regression in GCC 9, could be re-enabled (but commented out for now as we actually have `-Wnoexcept` warnings to fix. * `-Wlogical-op` was broken on our variadic templates before GCC 11, now seems fine.
* | Merge pull request #64815 from RandomShaper/default_cpu_countRémi Verschelde2022-10-062-6/+0
|\ \ | | | | | | | | | Improve default `OS`'s CPU count getter
| * | Keep a single, portable implementation of `OS::get_processor_count()`Pedro J. Estébanez2022-10-052-6/+0
| | |
* | | Merge pull request #66720 from qarmin/unintialized_memoryRémi Verschelde2022-10-052-10/+10
|\ \ \ | | | | | | | | | | | | Remove usage of unitialized variables
| * | | Remove usage of unitialized variablesRafał Mikrut2022-10-012-10/+10
| | |/ | |/|
* | | Merge pull request #64819 from RandomShaper/enhance_thread_funcsRémi Verschelde2022-10-051-1/+1
|\ \ \ | | | | | | | | | | | | Enhance portability of threading
| * | | Enhance portability of threadingPedro J. Estébanez2022-10-041-1/+1
| | | |
* | | | Merge pull request #66807 from ↵Rémi Verschelde2022-10-047-53/+23
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | akien-mga/core-unix-remove-NO_FCNTL-and-NO_STATVFS Unix: Remove now unnecessary I/O defines, cleanup
| * | | Unix: Remove now unnecessary I/O defines, cleanupRémi Verschelde2022-10-037-53/+23
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - `LIBC_FILEIO_ENABLED` wasn't defined anywhere, even in _other platforms_. - `NO_NETWORK` is also never defined. It probably isn't enough anyway to disable network APIs in the current codebase. - `UNIX_SOCKET_UNAVAILABLE` is never defined in this code but used by some other platforms, clarify that. - `NO_STATVFS` can be removed as Android supports it since API level 19, which is our current min SDK level. It's also only used for `DirAccessUnix::get_space_left()` which is anyway overridden by `DirAccessJAndroid::get_space_left()` so it shouldn't make a difference. * Fixed documentation for `DirAccess.get_space_left()`. - `NO_FCNTL` is likely also a remnant of early Android days, in current NDK r23 it seems to be available. Also cleaned up unused `fcntl.h` includes. - `NO_ALLOCA` is never defined, and we use alloca in many places now.
* / | Remove NO_THREADS fallback code, Godot 4 requires thread supportRémi Verschelde2022-10-033-6/+2
|/ / | | | | | | | | This also removes `OS::can_use_threads` from the public API since it's always true.
* | SCons: Cleanup `DEBUG`, `_DEBUG` and `NDEBUG` definesRémi Verschelde2022-09-232-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - `_DEBUG` is MSVC specific so it didn't make much sense to define for Android and iOS builds. - iOS was the only platform to define `DEBUG`. We don't use it anywhere outside thirdparty code, which we usually don't intend to debug, so it seems better to be consistent with other platforms. - Consistently define `NDEBUG` to disable assert behavior in both `release` and `release_debug` targets. This used to be set for `release` for all platforms, and `release_debug` for Android and iOS only. - Due to the above, I removed the only use we made of `assert()` in Godot code, which was only implemented for Unix anyway, should have been `DEV_ENABLED`, and is in PoolAllocator which we don't actually use. - The denoise and recast modules keep defining `NDEBUG` even for the `debug` target as we don't want OIDN and Embree asserting all over the place.
* | Replace File/Directory with FileAccess/DirAccesskobewi2022-09-192-2/+2
|/
* Add get_distribution_name() and get_version() to OSMJacred2022-09-162-0/+10
| | | | | | supports: LinuxBSD, Windows, macOS, iOS, Android, UWP Co-authored-by: bruvzg
* Fixes #65377: get_datetime_* functions can return wrong valuesJames2022-09-102-19/+5
|