aboutsummaryrefslogtreecommitdiffstats
path: root/common/os
Commit message (Collapse)AuthorAgeFilesLines
* Don't throw exceptions in destructorsPierre Ossman2017-09-151-10/+2
|
* Include stddef.h to get access to size_tPierre Ossman2016-07-071-0/+2
|
* Fix typo in include protectorPierre Ossman2016-07-071-1/+1
|
* Block signals from being handled on worker threadsPierre Ossman2016-01-041-0/+12
|
* Include class keyword for friend declarationPierre Ossman2015-12-081-1/+1
| | | | | Only C++11 allows omitting the class keyword, so include it so the code compiles with older compilers.
* Create one decode thread for each CPUPierre Ossman2015-11-272-0/+34
| | | | | | We can start creating more decoding threads now that we handle rect ordering properly. No point in creating more threads than there are CPUs though.
* Make the decoder multi-threadedPierre Ossman2015-11-271-0/+4
| | | | | | | This implements the basic infrastructure for multi-threaded decoding of rects. However there is just one thread reading data and one thread decoding it. More logic is needed to safely decode multiple rects at the same time.
* Add abstraction classes for system thread primitivesPierre Ossman2015-11-275-0/+403
|
* Fix Winsock errno code overlapPierre Ossman2015-05-291-13/+1
| | | | | Some Winsock errno:s conflict with the standard ones. Try to restrict the redefines to things relevant for sockets.
* Merge branch 'upreqs' of https://github.com/CendioOssman/tigervncPierre Ossman2015-03-123-259/+1
|\ | | | | | | | | | | Conflicts: contrib/packages/rpm/el5/SPECS/tigervnc.spec vncviewer/Viewport.cxx
| * Raise GnuTLS requirements to 3.xPierre Ossman2015-01-293-259/+1
| | | | | | | | | | | | This allows us to simplify things by getting rid of some old compatibility code. People should really be using current versions of GnuTLS anyway to stay secure.
* | Use a common header file for Windows errno names.Peter Åstrand (astrand)2015-02-051-0/+101
|/ | | | | | | | In earlier Visual Studio and MinGW editions, BSD socket errno:s were left undefined. This is no longer the case. This may cause build or runtime errors. To avoid this, we are using a common header file which corrects all definitions. This header will also be used with other projects such as sercd, unfs3, PulseAudio etc.
* Remove a lot of platform compatibilty stuffPierre Ossman2014-07-076-266/+5
| | | | It's either not used, or no longer relevant.
* Create common/os/libos.la fileAdam Tkac2012-09-051-0/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4996 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Enable WinVNC build with MinGW and MinGW64DRC2011-10-124-0/+218
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4723 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Move setting of PIC code to a central locationDRC2011-08-231-8/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4648 3789f03b-4d11-0410-bbf8-ca57d06f2519
* CMake doesn't handle convenience libraries as nicely as autotools does. WePierre Ossman2011-08-221-0/+8
| | | | | | | need to be explicit with -fPIC here as we use these in libvnc.so. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4645 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove unused autotools build systemDRC2011-06-241-9/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4540 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We don't need to special case Windows anymore now since we have properPierre Ossman2011-03-081-5/+1
| | | | | | | checks for old GnuTLS in CMake. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4333 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix up typo that's been copied around in several places.Pierre Ossman2011-03-081-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4332 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Windows actually has socklen_t, it's just that it is in a special header.Pierre Ossman2011-03-081-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4327 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Fix Windows build, recently added GNUTLS compat code broke it.Adam Tkac2011-02-092-5/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4279 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Improve compatibility with ancient GNUTLS implementations even more.Adam Tkac2011-02-092-0/+18
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4278 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] os: add gnutls_x509_crt_print() implementation, older systemsAdam Tkac2011-02-094-3/+246
| | | | | | | don't have it and improve backward compatibility of TLS code. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4277 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] os: introduce new function called "fileexists"Adam Tkac2011-02-072-0/+19
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4255 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Rename function "gethomedir" to "getvnchomedir" and rewrite it inAdam Tkac2011-02-072-8/+8
| | | | | | | | | platform-intependent manner. Thanks to Guillaume Destuynder. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4252 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Implement gethomedir() function on Windows.Adam Tkac2010-11-252-8/+32
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4208 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Don't compile gethomedir function on WIN32Adam Tkac2010-10-291-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4178 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Introduce gethomedir() function to retrieve home directory path.Adam Tkac2010-10-294-3/+104
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4176 3789f03b-4d11-0410-bbf8-ca57d06f2519
* CMake build system for WindowsDRC2010-10-272-0/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4171 3789f03b-4d11-0410-bbf8-ca57d06f2519
* - use unix/configure.ac as top-level configure.ac baseAdam Tkac2009-09-045-16/+11
| | | | | | | | - create stub top-level Makefile.am - make common/ subtree compilable git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/unified_buildsys@3892 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Revert r3657 (import of autogenerated) files.Adam Tkac2009-03-131-443/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3675 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Import autogenerated files for unix/ and common/ subdirs to make sourceAdam Tkac2009-03-111-0/+443
| | | | | | | | compilable without GNU autotools. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3657 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The restrict keyboard was introduced with C99, but we are aiming forPeter Åstrand2008-12-111-2/+2
| | | | | | | | C89 compatibility. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3374 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Layout] Added os/net.[ch]. They will include wrappers for missing IPv6Adam Tkac2008-12-103-2/+108
| | | | | | | | | | capabilities and should hide common networking related differences between OSs [Port] Implement IPv4-only version of inet_ntop for OSs which doesn't have it git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3369 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Portability] Implemented snprintf() function to support old compilersAdam Tkac2008-12-032-0/+19
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3290 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Portability] Reimplement vsnprintf to be C89 compatibleAdam Tkac2008-12-032-22/+64
| | | | | | | | Main problem is that C89 doesn't have va_copy macro thus you can't parse va_list twice. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3289 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Corrected r3167; the file is called common-config.win.h, notPeter Åstrand2008-12-011-1/+1
| | | | | | | | common-config.win32.h. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3275 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Refactoring] Improved rdr::Exception constructor. It now accepts variableAdam Tkac2008-11-141-0/+9
| | | | | | | | | number of arguments. [Bugfix] Minor compilation fixes (missing #includes) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3168 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Refactoring] Introduced common/os/ directory for platform dependentAdam Tkac2008-11-143-0/+100
implementations and move vsnprintf() declaration there. [Refactoring] Introduced common/common-config.win.h for handling WIN32 platform specifics. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3167 3789f03b-4d11-0410-bbf8-ca57d06f2519