summaryrefslogtreecommitdiffstats
path: root/drivers/unix
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #10986 from hpvb/fix-unix-file-openRémi Verschelde2017-09-051-9/+8
|\ | | | | Fix UNIX file open
| * Fix UNIX file openHein-Pieter van Braam2017-09-051-9/+8
| | | | | | | | | | | | | | In #10973 I refactored FileAccessUnix::_open() but I accidentally made it impossible to create new files. This fixes that and fixes #10984
* | Merge pull request #10973 from hpvb/fix-file-access-unixRémi Verschelde2017-09-051-23/+65
|\| | | | | Make UNIX file access more correct
| * Make UNIX file access more correctHein-Pieter van Braam2017-09-041-23/+65
| | | | | | | | Check for errors in the POSIX recommended ways.
* | Merge pull request #10883 from supagu/symlink2Rémi Verschelde2017-09-041-21/+23
|\ \ | |/ |/| Another take at fixing symlinks
| * Another take at fixing symlinksFabian Mathews2017-09-031-21/+23
| |
* | Fix use of unitialized variablesHein-Pieter van Braam2017-09-022-3/+3
|/ | | | The second in my quest to make Godot 3.x compile with -Werror on GCC7
* Merge pull request #10552 from RandomShaper/improve-posixRémi Verschelde2017-08-293-3/+19
|\ | | | | Improve Mac/UNIX conformance/reliability
| * Implement custom thread numbering for POSIXPedro J. Estébanez2017-08-242-2/+16
| | | | | | | | | | | | For every UNIX-derived (Android, Linux, macOS, iOS) flavor, a global counter is atomically incremented on thread start. That id is kept as thread-local storage. Therefore, thread ids are sequential numbers, trivially comparable. This improves the previous state of things, in which `pthread_t` were casted to `Thread::ID` and unportabily compared. Also big, ugly thread ids appeared.
| * Make OS::delay_usec() more reliable on UNIXPedro J. Estébanez2017-08-241-1/+3
| | | | | | | | | | | | | | Implemented with `nanosleep()`. `usleep()` is deprecated. Also loops to ensure that __at least__ the requested time is waited, accounting for spurious interruptions. May help in situations like reattempting to connect to the debugger.
* | Make build scripts Python3 compatibleMatthias Hoelzl2017-08-271-1/+1
| | | | | | | | | | | | | | | | - The Windows, UWP, Android (on Windows) and Linux builds are tested with Scons 3.0 alpha using Python 3. - OSX and iOS should hopefully work but are not tested since I don't have a Mac. - Builds using SCons 2.5 and Python 2 should not be impacted.
* | Dead code tells no talesRémi Verschelde2017-08-271-12/+0
| |
* | Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-2723-23/+23
|/
* Revert "Reworked change_dir to support symlinks"Juan Linietsky2017-08-211-23/+22
|
* Merge pull request #8144 from supagu/symlinkRémi Verschelde2017-08-171-22/+23
|\ | | | | Reworked change_dir to support symlinks
| * Reworked change_dir to support symlinksFabian Mathews2017-04-061-22/+23
| |
* | Synchronize parameter names in definition and declarationTwistedTwigleg2017-08-163-6/+6
| | | | | | | | Fixes #10244.
* | Use const reference where favorableWilson E. Alvarez2017-08-144-4/+4
| |
* | Explicitily unsed AI_NUMERICHOST flag to fix HTML5Fabio Alessandrelli2017-08-111-0/+1
| |
* | Makes all Godot API's methods Lower CaseIndah Sylvia2017-08-074-7/+7
| |
* | added an optional parameter to OS symbol lookupKarroffel2017-07-272-4/+8
| | | | | | | | | | | | | | | | When looking up a symbol from a library, previously an error was shown when the symbol did not exist. That caused confusion when the lookup was completely optional. This adds a new parameter to that method so that those errors can be handled manually if needed.
* | -Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky2017-07-192-10/+3
| | | | | | | | -Added system for feature overrides, it's pretty cool :)
* | -Reorganized all properties of project settings (Sorry, Again).Juan Linietsky2017-07-171-1/+1
| | | | | | | | | | (Lot's of bloat accumulated, so it was time for clean up.) -Made EditorSettings and ProjectSettings search more useful (search in sections too)
* | get_executable_path slight change to make it work under OpenBSDDavid Carlier2017-07-161-2/+2
| |
* | BuildSystem: generated files have .gen.extensionPoommetee Ketson2017-06-251-1/+1
| |
* | Fix local ip addresses (interfaces) detection.Fabio Alessandrelli2017-05-081-4/+11
| | | | | | | | Ignore non-IP addresses for both windows and unix
* | Socket helpers now fall back to ipv4 on systems where ipv6 is disabled.Fabio Alessandrelli2017-05-081-1/+9
| |
* | Fix UDP wait() not returning after first received packetFabio Alessandrelli2017-05-051-0/+2
| |
* | Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei2017-04-101-1/+1
| | | | | | | | | | | | | | | | Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
* | Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-0823-0/+23
| |
* | [DLScript] fixed android builds nowKarroffel2017-04-061-1/+1
| | | | | | | | ... really.
* | added dlscript moduleKarroffel2017-04-031-3/+3
| | | | | | | | | | | | | | | | | | This module was written by bojidar-bg and me, with the help of ClikCode and touilleMan. This adds a module to Godot that enables the use of dynamic libraries as a source for scripts. That also allows third party libraries to be linked to Godot more easily and without creating modules. For a readme see https://github.com/GodotNativeTools/godot_headers/blob/master/README.md
* | increased maximum number of scripting languagesKarroffel2017-04-031-8/+9
| |
* | Added methods for opening dynamic libraries to OSKarroffel2017-03-292-0/+34
|/
* Allow non blocking UDP put_packet in C++.Fabio Alessandrelli2017-03-242-1/+37
| | | | | | - Add blocking mode option to PacketPeerUDP. - put_packet returns ERR_UNAVAILABLE when operation would block. - ENet module uses non-blocking UDP.
* Fix build issue with MSVCRémi Verschelde2017-03-061-1/+2
| | | | windows.h is a mess.
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-0523-702/+570
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Add a bunch of missing Godot headers in own filesRémi Verschelde2017-03-055-4/+86
|
* -renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky2017-02-211-1/+1
| | | | | | modified files) -.pck and .zip exporting redone, seems to be working..
* Merge pull request #7581 from Faless/v6_wild_bindRémi Verschelde2017-02-127-38/+75
|\ | | | | TCP/UDP listen bind to address and bugfixes
| * Fix buffer size check in UDP socket.Fabio Alessandrelli2017-01-231-1/+1
| | | | | | | | | | We were reserving 12 bytes from the buffer for ip, port, and length, but since IPv6 introduction we should be reserving 24 (IPv6 are 16 bytes)
| * Use default UDP ring buffer size of 65536 for clientsFabio Alessandrelli2017-01-231-2/+2
| | | | | | | | | | | | | | We should probably create a specific function for setting the recv buffer anyway. UDP sockets does not need to bind (listen) to be able to call recvfrom. This is especially useful for clients who just call set_send_address and start communicating with a server.
| * Fix bug causing UDP socket to close after the first send if not listeningFabio Alessandrelli2017-01-231-0/+1
| | | | | | | | The ring buffer for receiving packets was not resized in constructor
| * Avoid deadlock when writing/reading data on a connecting TCP socketFabio Alessandrelli2017-01-232-10/+5
| | | | | | | | | | TCP status polling is always performed as non blocking. Trying to put a packet on a connecting socket will fail immediately.
| * Bind to IPv4 on OpenBSD when using wildcardFabio Alessandrelli2017-01-232-0/+8
| | | | | | | | OpenBSD does not support binding on both IPv4 and IPv6 using the same socket
| * Remove set_ip_type from network classes (no longer needed)Fabio Alessandrelli2017-01-234-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | - TCP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `connect` -> resolve using best protocol (UNSPEC), socket from address type - UDP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `put_packet`/`put_var` -> resolve using TYPE_ANY (UNSPEC), socket from address type (to change socket type you must first call `close` it)
| * Implement UDP listen bind addressFabio Alessandrelli2017-01-232-6/+21
| |
| * Implement TCP Server bind addressFabio Alessandrelli2017-01-234-11/+29
| |
| * Convert validity checks of IP_Address to is_valid method.Fabio Alessandrelli2017-01-233-3/+3
| |
| * Avoid calling close when polling a UDP peer without socketFabio Alessandrelli2017-01-231-0/+4
| |