summaryrefslogtreecommitdiffstats
path: root/drivers/unix
Commit message (Collapse)AuthorAgeFilesLines
* Reduce and prevent unnecessary random-access to `List`A Thousand Ships2024-05-042-9/+9
| | | | | | | | | Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when accessing a single element) * Removed subscript operator, in favor of a more explicit `get` * Added conversion from `Iterator` to `ConstIterator` * Remade existing operations into other solutions when applicable
* Merge pull request #90403 from bruvzg/file_resizeRémi Verschelde2024-04-223-0/+19
|\ | | | | | | [FileAccess] Implement `resize` method.
| * [FileAccess] Implement `resize` method.bruvzg2024-04-123-0/+19
| |
* | Collapse the gdextension arguments into the `GDExtensionData` structFredia Huya-Kouadio2024-04-192-4/+4
| | | | | | | | This is used to reduce the number of arguments to `OS::open_dynamic_library(...)`.
* | Fix loading GDExtension dependencies on AndroidFredia Huya-Kouadio2024-04-192-2/+2
| |
* | Merge pull request #90358 from KoBeWi/finding_errors_in_other_appsRémi Verschelde2024-04-162-0/+51
|\ \ | | | | | | | | | Add `OS.get_process_exit_code()` method
| * | Add get_process_exit_code() methodkobewi2024-04-162-0/+51
| |/
* / [Unix / DirAccess] Fix removing directory symlinks with `remove`, ensure ↵bruvzg2024-04-121-2/+2
|/ | | | `erase_contents_recursive` is not following directory symlinks.
* Add renaming of PDB files to avoid blocking themDmitriySalnikov2024-04-052-2/+2
|
* Implement `OS.execute_with_pipe` method to run process with redirected stdio.bruvzg2024-03-274-0/+384
| | | | Implement `pipe://*` path handling for creation of named pipes.
* Merge pull request #86936 from akx/env-utf-8Rémi Verschelde2024-03-111-3/+8
|\ | | | | | | Attempt parsing environment variables as UTF-8
| * Attempt to parse environment variables as UTF-8Aarni Koskela2024-01-071-3/+8
| |
* | fix FileAccessUnix on OpenBSD: there is no UF_HIDDENOmar Polo2024-03-011-2/+2
| | | | | | | | Part of the joint effort with @rfht to port Godot 4 on OpenBSD.
* | Add const lvalue ref to core/* container parametersMuller-Castro2024-02-144-8/+8
| |
* | Add THREADS_ENABLED macro in order to compile Godot to run on the main threadAdam Scott2024-01-171-0/+2
|/
* Merge pull request #84107 from BlueCube3310/file-access-optimizationRémi Verschelde2024-01-042-0/+81
|\ | | | | | | Use platform-specific methods for FileAccess reading and writing
| * Use platform-specific methods for FileAccess reading and writingBlueCube33102023-10-292-0/+81
| |
* | 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
|