summaryrefslogtreecommitdiffstats
path: root/drivers/unix
Commit message (Collapse)AuthorAgeFilesLines
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'Braden Bodily2019-08-173-21/+9
| | | | | | | | | 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?)
* Remove redundant author doc commentsIAmActuallyCthulhu2019-08-125-19/+1
|
* Optimize DirAccessUnix::get_next() for some file systemsHadrien2019-07-291-18/+13
| | | | | | | | | On some file systems, like ext4 on Linux, readdir() gives enough information to determine the entry type in order to avoid doing a stat() system call. Use this information and call stat() only if necessary: for file systems that do not support this feature and for links.
* Revert "Optimize DirAccessUnix::get_next() for some file systems"Geequlim2019-07-211-14/+10
|
* Optimize DirAccessUnix::get_next() for some file systemsHadrien2019-07-171-10/+14
| | | | | | | | On some file systems, like ext4 on Linux, readdir() gives enough information to determine the entry type in order to avoid doing a stat() system call. Use this information and call stat() only if necessary.
* Use reference to constant in functionsqarmin2019-07-102-2/+2
|
* Fixes minor issues found by static analyzerqarmin2019-07-071-1/+1
|
* Merge pull request #30126 from qarmin/remove_unnecessary_codeRémi Verschelde2019-07-011-4/+4
|\ | | | | Remove unnecessary code and add some error explanations
| * Remove unnecessary code and add some error explanationsqarmin2019-07-011-4/+4
| |
* | Merge pull request #29815 from NilsIrl/plus_file_1Rémi Verschelde2019-07-011-1/+1
|\ \ | | | | | | Replace ` + "/" + ` with `String::file_add()`
| * | Replace ` + "/" + ` with `String::file_add()`Nils ANDRÉ-CHANG2019-06-231-1/+1
| | |
* | | Fix ip_unix.cpp inclusion order for OpenBSD.Fabio Alessandrelli2019-06-281-1/+1
| | |
* | | Properly disable SIGPIPE on OSX network sockets.Fabio Alessandrelli2019-06-281-8/+9
| |/ |/| | | | | | | Disable SO_NOSIGPIPE socket option when avaiable. Use MSG_NOSIGNAL send flag on systems that support it.
* | Merge pull request #29941 from qarmin/redundant_code_and_othersRémi Verschelde2019-06-273-9/+3
|\ \ | | | | | | Remove redundant code, possible NULL pointers and others
| * | Some code changed with Clang-Tidyqarmin2019-06-263-9/+3
| | |
* | | Merge pull request #29935 from Faless/net/get_if_multicast_prRémi Verschelde2019-06-214-28/+123
|\ \ \ | |/ / |/| | Multicast, more network interfaces info
| * | Multicast support in NetSocket/PacketPeerUDPFabio Alessandrelli2019-06-212-0/+71
| | |
| * | Implement IP.get_local_interfaces.Fabio Alessandrelli2019-06-212-28/+52
| | | | | | | | | | | | | | | | | | | | | Allow getting interfaces names and assigned names. On UWP this is not supported, and the function will return one interface for each local address (with interface name the local address itself).
* | | Merge pull request #29283 from qarmin/fix_some_always_same_valuesRémi Verschelde2019-06-201-1/+1
|\ \ \ | |/ / |/| | Remove always true/false values
| * | Fix always true/false valuesqarmin2019-06-201-1/+1
| |/
* / Fix compilation warnings in JS and Windows buildsRémi Verschelde2019-06-151-3/+3
|/ | | | | | | | | | Warnings raised by Emscripten 1.38.0 and MinGW64 5.0.4 / GCC 8.3.0. JS can now build with `werror=yes warnings=extra`. MinGW64 still has a few warnings to resolve with `warnings=extra`, and only one with `warnings=all`. Part of #29033 and #29801.
* added a const keyword for a methods that return constant literal...hbina0852019-05-212-2/+2
|
* Ignore a warning in _get_socket_error (-Wlogical-op).marxin2019-05-021-0/+11
| | | | | | | | | | | | | | drivers/unix/net_socket_posix.cpp: In member function 'NetSocketPosix::NetError NetSocketPosix::_get_socket_error()': drivers/unix/net_socket_posix.cpp:197:22: warning: logical 'or' of equal expressions [-Wlogical-op] 197 | if (errno == EAGAIN || errno == EWOULDBLOCK) | ^ and: modules/mono/utils/string_utils.cpp: In function 'int {anonymous}::sfind(const String&, int)': modules/mono/utils/string_utils.cpp:68:48: error: logical 'or' of collectively exhaustive tests is always true [-Werror=logical-op] found = src[read_pos] == 's' || (c >= '0' || c <= '4'); ~~~~~~~~~^~~~~~~~~~~
* Add FileAccess::set_unix_permissions for Unix platformsJuan Linietsky2019-04-074-7/+38
|
* 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-203-254/+0
| | | | | This reverts commit fb37284c027b494ed3ec21124001fcb729f42cc4. This reverts commit 4db0f51b9aa76cfc7649787fe1970af606ce8dab.
* Create class for shared memory blocks [wip]Pedro J. Estébanez2019-03-203-0/+254
|
* Merge pull request #26159 from marxin/fix-Wsuggest-attribute=formatRémi Verschelde2019-02-271-1/+1
|\ | | | | Fix -Wsuggest-attribute=format warnings.
| * Fix -Wsuggest-attribute=format warnings.marxin2019-02-271-1/+1
| |
* | Fix -Wsign-compare warnings.marxin2019-02-271-1/+1
|/ | | | | I decided to modify code in a defensive way. Ideally functions like size() or length() should return an unsigned type.
* Fix typos with codespellRémi Verschelde2019-02-133-3/+3
| | | | | | | | | | | | | | | | | | | | 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-032-0/+6
|
* Fix code style issuesRémi Verschelde2019-01-261-1/+0
|
* Improve custom thread numbering for POSIXIgnacio Etcheverry2019-01-251-3/+14
| | | | We lazily assign new IDs to threads that do not have one. This is the case for threads not created by the Godot API.
* Add function to obtain filesystem type from DirAccess.Juan Linietsky2019-01-212-0/+7
| | | | Change EditorFileSystem to not use directory modification times on FAT32, fixes #20946
* Update copyright statements to 2019Rémi Verschelde2019-01-0120-40/+40
| | | | Happy new year to the wonderful Godot community!
* Android: Better identify thirdparty C/C++ codeRémi Verschelde2018-12-201-3/+5
| | | | | | | | | | | | | | | | | | | - The `cpu-features.{c,h}` code was only used by chance by the webm (libvpx) code, so I moved it there. It was actually introduced before that and wasn't in use, and libvpx just happened to be able to compile thanks to it being bundled. It could potentially be compiled on the fly from the Android NDK, but since we plan to replace the webm module by a GDNative plugin in the near future, I went the bundling route. - `ifaddrs_android.h` is already provided in the Android NDK as `ifaddrs.h`, same as on other Unixes. Yet we cannot use it until we up the min API level to 24, where `getifaddrs` is first defined. I moved the files to `thirdparty/misc` and synced them with upstream WebRTC (only indentation changes and removal of `static` qualifiers). Also removes dropped thirdparty files from COPYRIGHT.txt after changes in #24105 and #24145.
* Added OS.get_system_time_msecs()volzhs2018-12-202-0/+7
|
* Moved member variables to initializer listWilson E. Alvarez2018-12-112-9/+8
|
* Attempt to avoid breaking people's workflows on the change from ↵Juan Linietsky2018-11-271-1/+1
| | | | 8ba0d513fa0068a241a25fbb6db09315fa3309cc
* Added missing path verification on Unix, closes #20762Juan Linietsky2018-11-221-0/+11
|
* Properly accept wildcard when binding IPv4 socket.Fabio Alessandrelli2018-11-181-2/+1
| | | | | Also never return null for is_ipv4 to avoid crashes due to engine bug. (better to get an error and a broken socket then seeing your game crash)
* Merge pull request #23388 from eska014/html5-stubexecRémi Verschelde2018-10-291-0/+6
|\ | | | | Add proper stubs for OS_JavaScript::execute(), get_process_id(), kill()
| * 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.
* | Server platform works on OS X tooMarcelo Fernandez2018-10-291-1/+1
|/
* Safer getcwd in DirAccessFabio Alessandrelli2018-10-071-3/+3
| | | | Fix [-Wunused-result]
* Avoid possible overflow in OS_Unix readlinkFabio Alessandrelli2018-10-071-2/+4
| | | | Also fix [-Wunused-result]
* Fix warnings in HTML5 build outside platform filesLeon Krause2018-10-061-4/+0
|