summaryrefslogtreecommitdiffstats
path: root/drivers/unix
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-2716-32/+32
|
* Rebrand preambles to RedotSpartan3222024-10-1316-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084) Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Rebrand Godot 4.3 to RedotTrashguy2024-10-131-1/+1
|
* Fix reload of GDExtension libraries in framework package on macosJoel Croteau2024-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | `GDExtension::open_library` has a check in it to see if the library was loaded from a temp file, and if it was to restore the original name as that is the one we actually care about. This check is breaking extension reloading on Mac when the library path is to a framework folder, as the file inside the framework will not generally be the same name as the folder. This check also shouldn't be necessary even on Windows, which is the only platform that uses `generate_temp_files`, since disposal of the created temp file is handled within `OS_Windows::open_dynamic_library`, and `GDExtension::open_library` (which is the only function to call `open_dynamic_library` with a `p_data` argument) only cares about the original library file path and has to do extra work to remove the name of the temp file. Instead, I have removed that check and set `OS_Windows::open_dynamic_library` to return the name of the original file and not the name of the copy. This fixes GDExtension reloading on macOS. I do not have a Windows machine available to test that it still works properly on Windows, so someone should check that before merging this. (cherry picked from commit f44d6a235f198e3f8c5189161840315f43cfdd2e)
* 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.