summaryrefslogtreecommitdiffstats
path: root/drivers/unix/os_unix.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve the console error logging appearanceHugo Locurcio2020-01-191-13/+13
| | | | | | | This makes secondary information less visually prominent to improve overall readability. Various loggers were also tweaked for consistency.
* Disable colored console output when standard output isn't a TTYHugo Locurcio2020-01-041-8/+24
| | | | | This prevents Godot from writing ANSI escape codes when redirecting stdout and stderr to a file.
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Fix compilation warnings in macOS build, enable `warnings=extra werror=yes` ↵bruvzg2019-10-241-0/+2
| | | | for macOS CI.
* Fix casting to uint64_t when returning unix system timeKanabenki2019-10-011-1/+1
|
* Added an exit code to the blocking mode of OS::executeRuslan Mullayanov2019-09-261-1/+1
| | | | | | Updated documentation accordingly. Fixes #31881.
* Added some obvious errors explanationsqarmin2019-09-251-1/+1
|
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'Braden Bodily2019-08-171-14/+6
| | | | | | | | | Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
* Fixes minor issues found by static analyzerqarmin2019-07-071-1/+1
|
* added a const keyword for a methods that return constant literal...hbina0852019-05-211-1/+1
|
* Add FileAccess::set_unix_permissions for Unix platformsJuan Linietsky2019-04-071-2/+16
|
* Remove SIGCHILD handle in OS_Unix, interferes with pclose()Juan Linietsky2019-04-071-17/+0
|
* Fix jump over uninitialized value in OS Unix/X11Fabio Alessandrelli2019-04-091-0/+1
|
* Revert accidental commitsPedro J. Estébanez2019-03-201-2/+0
| | | | | This reverts commit fb37284c027b494ed3ec21124001fcb729f42cc4. This reverts commit 4db0f51b9aa76cfc7649787fe1970af606ce8dab.
* Create class for shared memory blocks [wip]Pedro J. Estébanez2019-03-201-0/+2
|
* Fix typos with codespellRémi Verschelde2019-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | Using codespell 1.14.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang doubleclick lod nd numer que te unselect EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Fix OS_Unix::set_environmentIgnacio Etcheverry2019-02-041-1/+1
|
* Added set_environment to OS classIgnacio Etcheverry2019-02-031-0/+5
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Added OS.get_system_time_msecs()volzhs2018-12-201-0/+6
|
* Add proper stubs for OS_JavaScript::execute(), get_process_id(), kill()Leon Krause2018-10-291-0/+6
| | | | Avoids linker warnings and errors about undefined references.
* Avoid possible overflow in OS_Unix readlinkFabio Alessandrelli2018-10-071-2/+4
| | | | Also fix [-Wunused-result]
* Fix OS X get_ticks_usec return value after #22424Marcelo Fernandez2018-09-301-1/+1
|
* Use monotonic clock for get_ticks_usecFabio Alessandrelli2018-09-291-7/+38
| | | | | Static _clock_start and _clock_setup function. Use clock_gettime on Unix, mach_absolute_time on Mac.
* Properly initialize Winsock on startupFabio Alessandrelli2018-09-131-0/+2
| | | | Also fix typo in _get_last_error which caused Winsock connect to fail.
* Unify StreamPeerTCP/TCP_Server with NetSocket APIFabio Alessandrelli2018-09-121-4/+0
|
* Unify PacketPeerUDP using NetSocketFabio Alessandrelli2018-09-121-2/+2
|
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-14/+12
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Revert "Try closing gracefully before terminating process"Rémi Verschelde2018-08-271-1/+1
|
* Try closing gracefully before terminating processMarcin Zawiejski2018-08-201-1/+1
| | | | | | | Use a Microsoft recommended way of process termination for the project process run from the editor. This allows loaded DLLs to receive and handle DLL_PROCESS_DETACH notification and cleanup any global state before the process actually exits.
* Fix Linux/X11 build on ARMs.bruvzg2018-05-111-1/+1
|
* Local debugger fixes and extensionsBlazej Floch2018-05-071-0/+17
| | | | | | | | | - Adds q/quit option to console debugging - Adds options (variable_prefix) - Breaks into debugger with Ctrl-C in local debug mode (Unix/Windows) - Added option to list all breakpoints - Fixes add/remove breakpoint bug (invalid path parsing) - Minor cleanup
* GDNative Unix: fix shared lib loading, dlopen expects leading ./ to ↵Robin Hübner2018-04-281-0/+6
| | | | interpret as relative path.
* Add RWLockDummy for NO_THREADS buildsLeon Krause2018-03-201-1/+2
|
* Clean and expose get_audio/video_driver_* funcs on OS classMarcelo Fernandez2018-03-041-9/+0
|
* Clean up some bad words from code commentsArtem Varaksa2018-02-171-1/+1
|
* Fix use of execvp, earlier fix was short sighted and only workedsambler2018-01-081-11/+13
| | | | | | when godot could be found in PATH. The correct fix is to use sysctl to get the path to the current executable this also fixes the ability to call external commands.
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Add support from properly exporting shared objects, needed for GDNative exportJuan Linietsky2018-01-041-1/+14
|
* Fix crash in OS::execute on FreeBSDRémi Verschelde2018-01-041-1/+1
| | | | | As spotted by @robfram, closes #15288. Also reviewed other uses of `if (String.find(.*))` for potential similar mistakes, found a wrong (and useless) one in ScriptEditorDialog.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Drop unused OS_Unix::has_data and related logicRémi Verschelde2017-12-101-32/+2
| | | | Closes #5536.
* Style: Apply clang-format again on all filesRémi Verschelde2017-12-071-1/+1
| | | | | Fixes issues introduced by newer clang-format versions or commits pushed directly without using the clang-format pre-commit hook.
* Changed the dynamic library open function to allow setting the path of the ↵Juan Linietsky2017-11-301-1/+1
| | | | library to open extra libraries.
* Allow customizing user:// path (folder in OS::get_data_path())Rémi Verschelde2017-11-261-5/+9
| | | | | | | | This allows to specify any valid folder name (including with subfolders) to use as user:// on all platforms. The folder is constrained to the platform-specific OS::get_data_path() (typically what `XDG_DATA_HOME` resolves to). Fixes #13236.
* Return and repair file loggingRuslan Mustakov2017-11-211-9/+6
| | | | And make it configurable, too.
* Add initial support for the XDG Base Directory specRémi Verschelde2017-11-191-18/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spec version 0.7 from https://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html (latest as of this commit). Three virtual methods are added to OS for the various XDG paths we will use: - OS::get_data_path gives XDG_DATA_HOME, or if missing: ~/.local/share on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows - OS::get_config_path gives XDG_CONFIG_HOME, or if missing: ~/.config on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows - OS::get_cache_path gives XDG_CACHE_HOME, or if missing: ~/.cache on X11, ~/Library/Caches on macOS and %APPDATA% on Windows So for Windows there are no changes, for Linux we follow the full split spec and for macOS stuff will move from ~/.godot to ~/Library/Application Support/Godot. Support for system-wide installation of templates on Unix was removed for now, as it's a bit hackish and I don't think anyone uses it. user:// will still be OS::get_data_path() + "/godot/app_userdata/$name" by default, but when using the application/config/use_shared_user_dir option it will now use XDG_DATA_HOME/$name, e.g. ~/.local/share/MyGame. For now everything still goes in EditorSettings::get_settings_dir(), but this will be changed in a later commit to make use of the new splitting where relevant. Part of #3513.
* Rename OS::get_data_dir to OS::get_user_data_dirRémi Verschelde2017-11-171-1/+1
| | | | | Will be needed to avoid confusion with system data path (XDG_DATA_HOME) and editor data dir in upcoming refactoring.
* Disable logging until the logs location is sorted outRémi Verschelde2017-10-291-1/+3
| | | | Temporary workaround for #12277.
* Use execvp instead of execv to allow OS.execute() to search through PATH.Elia Argentieri2017-10-111-1/+1
| | | | Fix #12003.