├── BUILDING.md ├── CMakeLists.txt ├── ChangeLog.md ├── LICENSE.txt ├── README.md ├── cmakescripts ├── BuildPackages.cmake ├── FindTurboJPEG.cmake ├── GNUInstallDirs.cmake └── cmake_uninstall.cmake.in ├── common ├── d3des │ ├── d3des.c │ └── d3des.h ├── rfb │ ├── rfbproto.h │ └── turbovnc_gii.h └── turbojpeg-jni │ ├── com_turbovnc_rfb_TightDecoder.h │ └── turbojpeg-jni.c ├── doc ├── CMakeLists.txt ├── LICENSE.txt ├── auth.txt ├── compatibility.txt ├── config.rb ├── config.txt ├── dri3.txt ├── formatting.txt ├── index.html ├── install.txt ├── legalinfo.txt ├── newconn-sessmgr.png ├── newconn.png ├── overview.txt ├── performance.txt ├── prefix.txt ├── sessmgr.png ├── somerights20.png ├── sysreq.txt ├── turbovnc.css ├── turbovnc.txt ├── unixauth.png ├── usage.txt ├── vgltransportservernetwork.odg ├── vgltransportservernetwork.png ├── vglusage.txt ├── vncauth-insecure.png ├── vncauth-redundant.png ├── vncauth.png ├── x11transport.odg └── x11transport.png ├── java ├── CMakeLists.txt ├── cmake │ └── BuildJRE.cmake.in ├── com │ ├── jcraft │ │ └── jsch │ │ │ ├── AgentConnector.java │ │ │ ├── AgentIdentity.java │ │ │ ├── AgentIdentityRepository.java │ │ │ ├── AgentProxy.java │ │ │ ├── AgentProxyException.java │ │ │ ├── Argon2.java │ │ │ ├── BCrypt.java │ │ │ ├── Buffer.java │ │ │ ├── ChangeLog │ │ │ ├── ChangeLog.md │ │ │ ├── Channel.java │ │ │ ├── ChannelAgentForwarding.java │ │ │ ├── ChannelDirectStreamLocal.java │ │ │ ├── ChannelDirectTCPIP.java │ │ │ ├── ChannelExec.java │ │ │ ├── ChannelForwardedTCPIP.java │ │ │ ├── ChannelSession.java │ │ │ ├── ChannelSftp.java │ │ │ ├── ChannelShell.java │ │ │ ├── ChannelSubsystem.java │ │ │ ├── ChannelX11.java │ │ │ ├── Cipher.java │ │ │ ├── CipherNone.java │ │ │ ├── Compression.java │ │ │ ├── ConfigRepository.java │ │ │ ├── DH.java │ │ │ ├── DH25519.java │ │ │ ├── DH25519MLKEM768.java │ │ │ ├── DH25519SNTRUP761.java │ │ │ ├── DH448.java │ │ │ ├── DHEC256.java │ │ │ ├── DHEC256MLKEM768.java │ │ │ ├── DHEC384.java │ │ │ ├── DHEC384MLKEM1024.java │ │ │ ├── DHEC521.java │ │ │ ├── DHECN.java │ │ │ ├── DHECNKEM.java │ │ │ ├── DHG1.java │ │ │ ├── DHG14.java │ │ │ ├── DHG14224.java │ │ │ ├── DHG14256.java │ │ │ ├── DHG14N.java │ │ │ ├── DHG15.java │ │ │ ├── DHG15256.java │ │ │ ├── DHG15384.java │ │ │ ├── DHG15N.java │ │ │ ├── DHG16.java │ │ │ ├── DHG16384.java │ │ │ ├── DHG16N.java │ │ │ ├── DHG17.java │ │ │ ├── DHG18.java │ │ │ ├── DHGEX.java │ │ │ ├── DHGEX1.java │ │ │ ├── DHGEX224.java │ │ │ ├── DHGEX256.java │ │ │ ├── DHGEX384.java │ │ │ ├── DHGEX512.java │ │ │ ├── DHGN.java │ │ │ ├── DHXEC.java │ │ │ ├── DHXECKEM.java │ │ │ ├── ECDH.java │ │ │ ├── ForwardedTCPIPDaemon.java │ │ │ ├── GSSContext.java │ │ │ ├── HASH.java │ │ │ ├── HostKey.java │ │ │ ├── HostKeyRepository.java │ │ │ ├── IO.java │ │ │ ├── Identity.java │ │ │ ├── IdentityFile.java │ │ │ ├── IdentityRepository.java │ │ │ ├── IdentityRepositoryWrapper.java │ │ │ ├── JSch.java │ │ │ ├── JSchAlgoNegoFailException.java │ │ │ ├── JSchAuthCancelException.java │ │ │ ├── JSchChangedHostKeyException.java │ │ │ ├── JSchException.java │ │ │ ├── JSchHostKeyException.java │ │ │ ├── JSchPartialAuthException.java │ │ │ ├── JSchProxyException.java │ │ │ ├── JSchRevokedHostKeyException.java │ │ │ ├── JSchSessionDisconnectException.java │ │ │ ├── JSchStrictKexException.java │ │ │ ├── JSchUnknownHostKeyException.java │ │ │ ├── KDF.java │ │ │ ├── KEM.java │ │ │ ├── KeyExchange.java │ │ │ ├── KeyPair.java │ │ │ ├── KeyPairDSA.java │ │ │ ├── KeyPairECDSA.java │ │ │ ├── KeyPairEd25519.java │ │ │ ├── KeyPairEd448.java │ │ │ ├── KeyPairEdDSA.java │ │ │ ├── KeyPairGenDSA.java │ │ │ ├── KeyPairGenECDSA.java │ │ │ ├── KeyPairGenEdDSA.java │ │ │ ├── KeyPairGenRSA.java │ │ │ ├── KeyPairPKCS8.java │ │ │ ├── KeyPairRSA.java │ │ │ ├── KnownHosts.java │ │ │ ├── LICENSE.JZlib.txt │ │ │ ├── LICENSE.jBCrypt.txt │ │ │ ├── LICENSE.txt │ │ │ ├── LocalIdentityRepository.java │ │ │ ├── Logger.java │ │ │ ├── MAC.java │ │ │ ├── OpenSSHConfig.java │ │ │ ├── PBKDF.java │ │ │ ├── PBKDF2.java │ │ │ ├── Packet.java │ │ │ ├── PageantConnector.java │ │ │ ├── PortWatcher.java │ │ │ ├── Proxy.java │ │ │ ├── ProxyHTTP.java │ │ │ ├── ProxySOCKS4.java │ │ │ ├── ProxySOCKS5.java │ │ │ ├── README │ │ │ ├── Random.java │ │ │ ├── Readme.md │ │ │ ├── Request.java │ │ │ ├── RequestAgentForwarding.java │ │ │ ├── RequestEnv.java │ │ │ ├── RequestExec.java │ │ │ ├── RequestPtyReq.java │ │ │ ├── RequestSftp.java │ │ │ ├── RequestShell.java │ │ │ ├── RequestSignal.java │ │ │ ├── RequestSubsystem.java │ │ │ ├── RequestWindowChange.java │ │ │ ├── RequestX11.java │ │ │ ├── SCrypt.java │ │ │ ├── SSHAgentConnector.java │ │ │ ├── ServerSocketFactory.java │ │ │ ├── Session.java │ │ │ ├── SftpATTRS.java │ │ │ ├── SftpException.java │ │ │ ├── SftpProgressMonitor.java │ │ │ ├── SftpStatVFS.java │ │ │ ├── Signature.java │ │ │ ├── SignatureDSA.java │ │ │ ├── SignatureECDSA.java │ │ │ ├── SignatureEdDSA.java │ │ │ ├── SignatureRSA.java │ │ │ ├── SocketFactory.java │ │ │ ├── UIKeyboardInteractive.java │ │ │ ├── USocketFactory.java │ │ │ ├── UnixDomainSocketFactory.java │ │ │ ├── UserAuth.java │ │ │ ├── UserAuthGSSAPIWithMIC.java │ │ │ ├── UserAuthKeyboardInteractive.java │ │ │ ├── UserAuthNone.java │ │ │ ├── UserAuthPassword.java │ │ │ ├── UserAuthPublicKey.java │ │ │ ├── UserInfo.java │ │ │ ├── Util.java │ │ │ ├── Version.java │ │ │ ├── XDH.java │ │ │ ├── jbcrypt │ │ │ ├── BCrypt.java │ │ │ └── JBCrypt.java │ │ │ ├── jce │ │ │ ├── AES128CBC.java │ │ │ ├── AES128CTR.java │ │ │ ├── AES128GCM.java │ │ │ ├── AES192CBC.java │ │ │ ├── AES192CTR.java │ │ │ ├── AES256CBC.java │ │ │ ├── AES256CTR.java │ │ │ ├── AES256GCM.java │ │ │ ├── AESGCM.java │ │ │ ├── ARCFOUR.java │ │ │ ├── ARCFOUR128.java │ │ │ ├── ARCFOUR256.java │ │ │ ├── BlowfishCBC.java │ │ │ ├── BlowfishCTR.java │ │ │ ├── DH.java │ │ │ ├── ECDH256.java │ │ │ ├── ECDH384.java │ │ │ ├── ECDH521.java │ │ │ ├── ECDHN.java │ │ │ ├── HMAC.java │ │ │ ├── HMACMD5.java │ │ │ ├── HMACMD596.java │ │ │ ├── HMACMD596ETM.java │ │ │ ├── HMACMD5ETM.java │ │ │ ├── HMACSHA1.java │ │ │ ├── HMACSHA196.java │ │ │ ├── HMACSHA196ETM.java │ │ │ ├── HMACSHA1ETM.java │ │ │ ├── HMACSHA224SSHCOM.java │ │ │ ├── HMACSHA256.java │ │ │ ├── HMACSHA2562SSHCOM.java │ │ │ ├── HMACSHA256ETM.java │ │ │ ├── HMACSHA256SSHCOM.java │ │ │ ├── HMACSHA384SSHCOM.java │ │ │ ├── HMACSHA512.java │ │ │ ├── HMACSHA512ETM.java │ │ │ ├── HMACSHA512SSHCOM.java │ │ │ ├── KeyPairGenDSA.java │ │ │ ├── KeyPairGenECDSA.java │ │ │ ├── KeyPairGenEdDSA.java │ │ │ ├── KeyPairGenRSA.java │ │ │ ├── MD5.java │ │ │ ├── PBKDF.java │ │ │ ├── PBKDF2.java │ │ │ ├── PBKDF2HMACSHA1.java │ │ │ ├── PBKDF2HMACSHA224.java │ │ │ ├── PBKDF2HMACSHA256.java │ │ │ ├── PBKDF2HMACSHA384.java │ │ │ ├── PBKDF2HMACSHA512.java │ │ │ ├── PBKDF2HMACSHA512224.java │ │ │ ├── PBKDF2HMACSHA512256.java │ │ │ ├── Random.java │ │ │ ├── SHA1.java │ │ │ ├── SHA224.java │ │ │ ├── SHA256.java │ │ │ ├── SHA384.java │ │ │ ├── SHA512.java │ │ │ ├── SignatureDSA.java │ │ │ ├── SignatureECDSA256.java │ │ │ ├── SignatureECDSA384.java │ │ │ ├── SignatureECDSA521.java │ │ │ ├── SignatureECDSAN.java │ │ │ ├── SignatureEd25519.java │ │ │ ├── SignatureEd448.java │ │ │ ├── SignatureEdDSA.java │ │ │ ├── SignatureRSA.java │ │ │ ├── SignatureRSAN.java │ │ │ ├── SignatureRSASHA224SSHCOM.java │ │ │ ├── SignatureRSASHA256.java │ │ │ ├── SignatureRSASHA256SSHCOM.java │ │ │ ├── SignatureRSASHA384SSHCOM.java │ │ │ ├── SignatureRSASHA512.java │ │ │ ├── SignatureRSASHA512SSHCOM.java │ │ │ ├── TripleDESCBC.java │ │ │ ├── TripleDESCTR.java │ │ │ ├── Util.java │ │ │ └── XDH.java │ │ │ ├── jgss │ │ │ └── GSSContextKrb5.java │ │ │ ├── juz │ │ │ └── Compression.java │ │ │ ├── jzlib │ │ │ ├── Adler32.java │ │ │ ├── CRC32.java │ │ │ ├── Checksum.java │ │ │ ├── Compression.java │ │ │ ├── Deflate.java │ │ │ ├── Deflater.java │ │ │ ├── DeflaterOutputStream.java │ │ │ ├── GZIPException.java │ │ │ ├── GZIPHeader.java │ │ │ ├── InfBlocks.java │ │ │ ├── InfCodes.java │ │ │ ├── InfTree.java │ │ │ ├── Inflate.java │ │ │ ├── Inflater.java │ │ │ ├── InflaterInputStream.java │ │ │ ├── JZlib.java │ │ │ ├── StaticTree.java │ │ │ ├── Tree.java │ │ │ └── ZStream.java │ │ │ └── opensshFormat.md │ └── turbovnc │ │ ├── network │ │ ├── FileDescriptor.java │ │ ├── SSLEngineManager.java │ │ ├── Socket.java │ │ ├── SocketDescriptor.java │ │ ├── StreamDescriptor.java │ │ ├── StreamSocket.java │ │ ├── TcpListener.java │ │ └── TcpSocket.java │ │ ├── rdr │ │ ├── EndOfStream.java │ │ ├── ErrorException.java │ │ ├── FdInStream.java │ │ ├── FdInStreamBlockCallback.java │ │ ├── FdOutStream.java │ │ ├── FileInStream.java │ │ ├── InStream.java │ │ ├── MemInStream.java │ │ ├── MemOutStream.java │ │ ├── OutStream.java │ │ ├── SystemException.java │ │ ├── TLSInStream.java │ │ ├── TLSOutStream.java │ │ ├── TimedOut.java │ │ ├── WarningException.java │ │ ├── ZlibInStream.java │ │ └── ZlibOutStream.java │ │ ├── rfb │ │ ├── AliasParameter.java │ │ ├── AuthFailureException.java │ │ ├── BoolParameter.java │ │ ├── CConnection.java │ │ ├── CMsgHandler.java │ │ ├── CMsgReader.java │ │ ├── CMsgWriter.java │ │ ├── CSecurity.java │ │ ├── CSecurityNone.java │ │ ├── CSecurityPlain.java │ │ ├── CSecurityRFBTLS.java │ │ ├── CSecurityStack.java │ │ ├── CSecurityTLS.java │ │ ├── CSecurityTight.java │ │ ├── CSecurityVeNCrypt.java │ │ ├── CSecurityVncAuth.java │ │ ├── ConnFailedException.java │ │ ├── ConnParams.java │ │ ├── Cursor.java │ │ ├── Decoder.java │ │ ├── DesCipher.java │ │ ├── DesktopSize.java │ │ ├── DesktopSizeParameter.java │ │ ├── EncodingParameter.java │ │ ├── ExtInputDevice.java │ │ ├── ExtInputEvent.java │ │ ├── GrabParameter.java │ │ ├── HeaderParameter.java │ │ ├── Helper.java │ │ ├── HextileDecoder.java │ │ ├── Hostname.java │ │ ├── IntParameter.java │ │ ├── Keycodes.java │ │ ├── Keysyms.java │ │ ├── LogWriter.java │ │ ├── ManagedPixelBuffer.java │ │ ├── MenuKey.java │ │ ├── MenuKeyParameter.java │ │ ├── Params.java │ │ ├── PixelBuffer.java │ │ ├── PixelFormat.java │ │ ├── Point.java │ │ ├── RFB.java │ │ ├── RawDecoder.java │ │ ├── Rect.java │ │ ├── ScaleParameter.java │ │ ├── Screen.java │ │ ├── ScreenSet.java │ │ ├── SecTypesParameter.java │ │ ├── SecurityClient.java │ │ ├── ServerNameParameter.java │ │ ├── SpanParameter.java │ │ ├── StringParameter.java │ │ ├── SubsampParameter.java │ │ ├── TightDecoder.java │ │ ├── UnicodeToKeysym.java │ │ ├── UserPasswdGetter.java │ │ ├── UserPreferences.java │ │ ├── Utils.java │ │ ├── VncAuth.java │ │ ├── VoidParameter.java │ │ └── ZRLEDecoder.java │ │ └── vncviewer │ │ ├── ArgumentTokenizer.java │ │ ├── BIPixelBuffer.java │ │ ├── CConn.java │ │ ├── ClipboardDialog.java │ │ ├── DesktopWindow.java │ │ ├── Dialog.java │ │ ├── F8Menu.java │ │ ├── ImageDrawTest.java │ │ ├── MANIFEST.MF │ │ ├── MacMenuBar.java │ │ ├── OptionsDialog.java │ │ ├── OptionsDialogCallback.java │ │ ├── PasswdDialog.java │ │ ├── PlatformPixelBuffer.java │ │ ├── ProfileDialog.java │ │ ├── README.md │ │ ├── ServerDialog.java │ │ ├── SessionManager.java │ │ ├── SessionManagerDialog.java │ │ ├── Toolbar.java │ │ ├── TrayMenu.java │ │ ├── Tunnel.java │ │ ├── Viewport.java │ │ ├── VncViewer.java │ │ ├── insecure.png │ │ ├── secure.png │ │ ├── timestamp.in │ │ ├── toolbar.png │ │ ├── turbovnc-128.png │ │ ├── turbovnc-sm.png │ │ └── turbovnc.png └── org │ └── spf4j │ └── base │ └── Base64.java ├── release ├── Distribution.xml.in ├── Info.plist.in ├── InstInfo.rtf ├── License.rtf ├── Package.plist.in ├── ReadMe.txt ├── Welcome.txt.in ├── deb-control.in ├── entitlements.plist ├── installer.iss.in ├── makedpkg.in ├── makemacapp.in ├── makemacpkg.in ├── makerpm.in ├── makesrpm.in ├── maketarball.in ├── rpm.spec.in ├── turbovnc.icns ├── uninstall.applescript.in ├── uninstall.in └── vncviewer.icns ├── unix ├── CMakeLists.txt ├── Xvnc │ ├── CMakeLists.txt │ ├── README │ ├── genpatch │ ├── include │ │ └── tvnc_version.h.in │ ├── lib │ │ ├── CMakeLists.txt │ │ ├── libsha1 │ │ │ ├── AUTHORS │ │ │ ├── CMakeLists.txt │ │ │ ├── COPYING │ │ │ ├── ChangeLog │ │ │ ├── README │ │ │ ├── genpatch │ │ │ ├── libsha1.h │ │ │ └── sha1.c │ │ └── zlib-ng │ │ │ ├── .codecov.yaml │ │ │ ├── .shellcheckrc │ │ │ ├── CMakeLists.txt │ │ │ ├── FAQ.zlib │ │ │ ├── INDEX.md │ │ │ ├── LICENSE.md │ │ │ ├── Makefile.in │ │ │ ├── PORTING.md │ │ │ ├── README.md │ │ │ ├── adler32.c │ │ │ ├── adler32_p.h │ │ │ ├── arch │ │ │ ├── arm │ │ │ │ ├── Makefile.in │ │ │ │ ├── acle_intrins.h │ │ │ │ ├── adler32_neon.c │ │ │ │ ├── arm_features.c │ │ │ │ ├── arm_features.h │ │ │ │ ├── arm_functions.h │ │ │ │ ├── chunkset_neon.c │ │ │ │ ├── compare256_neon.c │ │ │ │ ├── crc32_acle.c │ │ │ │ ├── neon_intrins.h │ │ │ │ ├── slide_hash_armv6.c │ │ │ │ └── slide_hash_neon.c │ │ │ ├── generic │ │ │ │ ├── Makefile.in │ │ │ │ ├── adler32_c.c │ │ │ │ ├── adler32_fold_c.c │ │ │ │ ├── chunk_permute_table.h │ │ │ │ ├── chunkset_c.c │ │ │ │ ├── compare256_c.c │ │ │ │ ├── crc32_braid_c.c │ │ │ │ ├── crc32_fold_c.c │ │ │ │ ├── generic_functions.h │ │ │ │ └── slide_hash_c.c │ │ │ ├── power │ │ │ │ ├── Makefile.in │ │ │ │ ├── adler32_power8.c │ │ │ │ ├── adler32_vmx.c │ │ │ │ ├── chunkset_power8.c │ │ │ │ ├── compare256_power9.c │ │ │ │ ├── crc32_constants.h │ │ │ │ ├── crc32_power8.c │ │ │ │ ├── fallback_builtins.h │ │ │ │ ├── power_features.c │ │ │ │ ├── power_features.h │ │ │ │ ├── power_functions.h │ │ │ │ ├── slide_hash_power8.c │ │ │ │ ├── slide_hash_vmx.c │ │ │ │ └── slide_ppc_tpl.h │ │ │ ├── riscv │ │ │ │ ├── README.md │ │ │ │ ├── adler32_rvv.c │ │ │ │ ├── chunkset_rvv.c │ │ │ │ ├── compare256_rvv.c │ │ │ │ ├── riscv_features.c │ │ │ │ ├── riscv_features.h │ │ │ │ ├── riscv_functions.h │ │ │ │ └── slide_hash_rvv.c │ │ │ ├── s390 │ │ │ │ ├── Makefile.in │ │ │ │ ├── README.md │ │ │ │ ├── crc32-vx.c │ │ │ │ ├── dfltcc_common.h │ │ │ │ ├── dfltcc_deflate.c │ │ │ │ ├── dfltcc_deflate.h │ │ │ │ ├── dfltcc_detail.h │ │ │ │ ├── dfltcc_inflate.c │ │ │ │ ├── dfltcc_inflate.h │ │ │ │ ├── s390_features.c │ │ │ │ ├── s390_features.h │ │ │ │ ├── s390_functions.h │ │ │ │ └── self-hosted-builder │ │ │ │ │ ├── actions-runner.Dockerfile │ │ │ │ │ ├── actions-runner.service │ │ │ │ │ ├── fs │ │ │ │ │ └── usr │ │ │ │ │ │ └── bin │ │ │ │ │ │ ├── actions-runner │ │ │ │ │ │ └── entrypoint │ │ │ │ │ ├── runner-global.json │ │ │ │ │ └── runner-s390x.patch │ │ │ └── x86 │ │ │ │ ├── Makefile.in │ │ │ │ ├── adler32_avx2.c │ │ │ │ ├── adler32_avx2_p.h │ │ │ │ ├── adler32_avx512.c │ │ │ │ ├── adler32_avx512_p.h │ │ │ │ ├── adler32_avx512_vnni.c │ │ │ │ ├── adler32_sse42.c │ │ │ │ ├── adler32_ssse3.c │ │ │ │ ├── adler32_ssse3_p.h │ │ │ │ ├── chunkset_avx2.c │ │ │ │ ├── chunkset_sse2.c │ │ │ │ ├── chunkset_ssse3.c │ │ │ │ ├── compare256_avx2.c │ │ │ │ ├── compare256_sse2.c │ │ │ │ ├── crc32_fold_pclmulqdq_tpl.h │ │ │ │ ├── crc32_fold_vpclmulqdq_tpl.h │ │ │ │ ├── crc32_pclmulqdq.c │ │ │ │ ├── crc32_pclmulqdq_tpl.h │ │ │ │ ├── crc32_vpclmulqdq.c │ │ │ │ ├── slide_hash_avx2.c │ │ │ │ ├── slide_hash_sse2.c │ │ │ │ ├── x86_features.c │ │ │ │ ├── x86_features.h │ │ │ │ ├── x86_functions.h │ │ │ │ └── x86_intrins.h │ │ │ ├── arch_functions.h │ │ │ ├── chunkset_tpl.h │ │ │ ├── cmake │ │ │ ├── detect-arch.c │ │ │ ├── detect-arch.cmake │ │ │ ├── detect-coverage.cmake │ │ │ ├── detect-install-dirs.cmake │ │ │ ├── detect-intrinsics.cmake │ │ │ ├── detect-sanitizer.cmake │ │ │ ├── fallback-macros.cmake │ │ │ ├── toolchain-aarch64.cmake │ │ │ ├── toolchain-arm.cmake │ │ │ ├── toolchain-armhf.cmake │ │ │ ├── toolchain-llvm-mingw-aarch64.cmake │ │ │ ├── toolchain-llvm-mingw-armv7.cmake │ │ │ ├── toolchain-llvm-mingw-i686.cmake │ │ │ ├── toolchain-llvm-mingw-x86_64.cmake │ │ │ ├── toolchain-mingw-i686.cmake │ │ │ ├── toolchain-mingw-x86_64.cmake │ │ │ ├── toolchain-mips.cmake │ │ │ ├── toolchain-mips64.cmake │ │ │ ├── toolchain-powerpc.cmake │ │ │ ├── toolchain-powerpc64-clang.cmake │ │ │ ├── toolchain-powerpc64-power9.cmake │ │ │ ├── toolchain-powerpc64.cmake │ │ │ ├── toolchain-powerpc64le-clang.cmake │ │ │ ├── toolchain-powerpc64le-power9.cmake │ │ │ ├── toolchain-powerpc64le.cmake │ │ │ ├── toolchain-riscv.cmake │ │ │ ├── toolchain-s390x.cmake │ │ │ └── toolchain-sparc64.cmake │ │ │ ├── compare256_rle.h │ │ │ ├── compress.c │ │ │ ├── configure │ │ │ ├── cpu_features.c │ │ │ ├── cpu_features.h │ │ │ ├── crc32.c │ │ │ ├── crc32.h │ │ │ ├── crc32_braid_comb.c │ │ │ ├── crc32_braid_comb_p.h │ │ │ ├── crc32_braid_p.h │ │ │ ├── crc32_braid_tbl.h │ │ │ ├── deflate.c │ │ │ ├── deflate.h │ │ │ ├── deflate_fast.c │ │ │ ├── deflate_huff.c │ │ │ ├── deflate_medium.c │ │ │ ├── deflate_p.h │ │ │ ├── deflate_quick.c │ │ │ ├── deflate_rle.c │ │ │ ├── deflate_slow.c │ │ │ ├── deflate_stored.c │ │ │ ├── fallback_builtins.h │ │ │ ├── functable.c │ │ │ ├── functable.h │ │ │ ├── gzguts.h │ │ │ ├── gzlib.c │ │ │ ├── gzread.c.in │ │ │ ├── gzwrite.c │ │ │ ├── infback.c │ │ │ ├── inffast_tpl.h │ │ │ ├── inffixed_tbl.h │ │ │ ├── inflate.c │ │ │ ├── inflate.h │ │ │ ├── inflate_p.h │ │ │ ├── inftrees.c │ │ │ ├── inftrees.h │ │ │ ├── insert_string.c │ │ │ ├── insert_string_roll.c │ │ │ ├── insert_string_tpl.h │ │ │ ├── match_tpl.h │ │ │ ├── tools │ │ │ ├── config.sub │ │ │ ├── makecrct.c │ │ │ ├── makefixed.c │ │ │ └── maketrees.c │ │ │ ├── trees.c │ │ │ ├── trees.h │ │ │ ├── trees_emit.h │ │ │ ├── trees_tbl.h │ │ │ ├── uncompr.c │ │ │ ├── zbuild.h │ │ │ ├── zconf-ng.h.in │ │ │ ├── zconf.h.in │ │ │ ├── zendian.h │ │ │ ├── zlib-config.cmake.in │ │ │ ├── zlib-ng-config.cmake.in │ │ │ ├── zlib-ng.h.in │ │ │ ├── zlib-ng.map │ │ │ ├── zlib.h.in │ │ │ ├── zlib.map │ │ │ ├── zlib.pc.cmakein │ │ │ ├── zlib.pc.in │ │ │ ├── zlib_name_mangling-ng.h.in │ │ │ ├── zlib_name_mangling.h.empty │ │ │ ├── zlib_name_mangling.h.in │ │ │ ├── zutil.c │ │ │ ├── zutil.h │ │ │ └── zutil_p.h │ └── programs │ │ └── Xserver │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── ChangeLog │ │ ├── Xext │ │ ├── CMakeLists.txt │ │ ├── bigreq.c │ │ ├── dpms.c │ │ ├── dpmsproc.h │ │ ├── dpmsstubs.c │ │ ├── geext.c │ │ ├── geext.h │ │ ├── geint.h │ │ ├── hashtable.c │ │ ├── hashtable.h │ │ ├── panoramiX.c │ │ ├── panoramiX.h │ │ ├── panoramiXSwap.c │ │ ├── panoramiXh.h │ │ ├── panoramiXprocs.c │ │ ├── panoramiXsrv.h │ │ ├── saver.c │ │ ├── security.c │ │ ├── securitysrv.h │ │ ├── shape.c │ │ ├── shm.c │ │ ├── shmint.h │ │ ├── sleepuntil.c │ │ ├── sleepuntil.h │ │ ├── sync.c │ │ ├── syncsdk.h │ │ ├── syncsrv.h │ │ ├── xace.c │ │ ├── xace.h │ │ ├── xacestr.h │ │ ├── xcmisc.c │ │ ├── xf86bigfont.c │ │ ├── xf86bigfontsrv.h │ │ ├── xres.c │ │ ├── xselinux.h │ │ ├── xselinux_ext.c │ │ ├── xselinux_hooks.c │ │ ├── xselinux_label.c │ │ ├── xselinuxint.h │ │ ├── xtest.c │ │ ├── xvdisp.c │ │ ├── xvdisp.h │ │ ├── xvdix.h │ │ ├── xvmain.c │ │ ├── xvmc.c │ │ └── xvmcext.h │ │ ├── Xi │ │ ├── CMakeLists.txt │ │ ├── allowev.c │ │ ├── allowev.h │ │ ├── chgdctl.c │ │ ├── chgdctl.h │ │ ├── chgfctl.c │ │ ├── chgfctl.h │ │ ├── chgkbd.c │ │ ├── chgkbd.h │ │ ├── chgkmap.c │ │ ├── chgkmap.h │ │ ├── chgprop.c │ │ ├── chgprop.h │ │ ├── chgptr.c │ │ ├── chgptr.h │ │ ├── closedev.c │ │ ├── closedev.h │ │ ├── devbell.c │ │ ├── devbell.h │ │ ├── exevents.c │ │ ├── exglobals.h │ │ ├── extinit.c │ │ ├── getbmap.c │ │ ├── getbmap.h │ │ ├── getdctl.c │ │ ├── getdctl.h │ │ ├── getfctl.c │ │ ├── getfctl.h │ │ ├── getfocus.c │ │ ├── getfocus.h │ │ ├── getkmap.c │ │ ├── getkmap.h │ │ ├── getmmap.c │ │ ├── getmmap.h │ │ ├── getprop.c │ │ ├── getprop.h │ │ ├── getselev.c │ │ ├── getselev.h │ │ ├── getvers.c │ │ ├── getvers.h │ │ ├── grabdev.c │ │ ├── grabdev.h │ │ ├── grabdevb.c │ │ ├── grabdevb.h │ │ ├── grabdevk.c │ │ ├── grabdevk.h │ │ ├── gtmotion.c │ │ ├── gtmotion.h │ │ ├── listdev.c │ │ ├── listdev.h │ │ ├── opendev.c │ │ ├── opendev.h │ │ ├── queryst.c │ │ ├── queryst.h │ │ ├── selectev.c │ │ ├── selectev.h │ │ ├── sendexev.c │ │ ├── sendexev.h │ │ ├── setbmap.c │ │ ├── setbmap.h │ │ ├── setdval.c │ │ ├── setdval.h │ │ ├── setfocus.c │ │ ├── setfocus.h │ │ ├── setmmap.c │ │ ├── setmmap.h │ │ ├── setmode.c │ │ ├── setmode.h │ │ ├── stubs.c │ │ ├── ungrdev.c │ │ ├── ungrdev.h │ │ ├── ungrdevb.c │ │ ├── ungrdevb.h │ │ ├── ungrdevk.c │ │ ├── ungrdevk.h │ │ ├── xiallowev.c │ │ ├── xiallowev.h │ │ ├── xibarriers.c │ │ ├── xibarriers.h │ │ ├── xichangecursor.c │ │ ├── xichangecursor.h │ │ ├── xichangehierarchy.c │ │ ├── xichangehierarchy.h │ │ ├── xigetclientpointer.c │ │ ├── xigetclientpointer.h │ │ ├── xigrabdev.c │ │ ├── xigrabdev.h │ │ ├── xipassivegrab.c │ │ ├── xipassivegrab.h │ │ ├── xiproperty.c │ │ ├── xiproperty.h │ │ ├── xiquerydevice.c │ │ ├── xiquerydevice.h │ │ ├── xiquerypointer.c │ │ ├── xiquerypointer.h │ │ ├── xiqueryversion.c │ │ ├── xiqueryversion.h │ │ ├── xiselectev.c │ │ ├── xiselectev.h │ │ ├── xisetclientpointer.c │ │ ├── xisetclientpointer.h │ │ ├── xisetdevfocus.c │ │ ├── xisetdevfocus.h │ │ ├── xiwarppointer.c │ │ └── xiwarppointer.h │ │ ├── Xvnc.man.in │ │ ├── composite │ │ ├── CMakeLists.txt │ │ ├── compalloc.c │ │ ├── compext.c │ │ ├── compinit.c │ │ ├── compint.h │ │ ├── compositeext.h │ │ ├── compoverlay.c │ │ └── compwindow.c │ │ ├── damageext │ │ ├── CMakeLists.txt │ │ ├── damageext.c │ │ ├── damageext.h │ │ └── damageextint.h │ │ ├── dix │ │ ├── BuiltInAtoms │ │ ├── CMakeLists.txt │ │ ├── atom.c │ │ ├── buildatoms │ │ ├── colormap.c │ │ ├── cursor.c │ │ ├── devices.c │ │ ├── dispatch.c │ │ ├── dispatch.h │ │ ├── dixfonts.c │ │ ├── dixutils.c │ │ ├── enterleave.c │ │ ├── enterleave.h │ │ ├── eventconvert.c │ │ ├── events.c │ │ ├── extension.c │ │ ├── gc.c │ │ ├── getevents.c │ │ ├── globals.c │ │ ├── glyphcurs.c │ │ ├── grabs.c │ │ ├── initatoms.c │ │ ├── inpututils.c │ │ ├── main.c │ │ ├── pixmap.c │ │ ├── privates.c │ │ ├── property.c │ │ ├── ptrveloc.c │ │ ├── region.c │ │ ├── registry.c │ │ ├── resource.c │ │ ├── selection.c │ │ ├── stubmain.c │ │ ├── swaprep.c │ │ ├── swapreq.c │ │ ├── tables.c │ │ ├── touch.c │ │ └── window.c │ │ ├── dri3 │ │ ├── CMakeLists.txt │ │ ├── dri3.c │ │ ├── dri3.h │ │ ├── dri3_priv.h │ │ ├── dri3_request.c │ │ └── dri3_screen.c │ │ ├── fb │ │ ├── CMakeLists.txt │ │ ├── fb.h │ │ ├── fballpriv.c │ │ ├── fbarc.c │ │ ├── fbbits.c │ │ ├── fbbits.h │ │ ├── fbblt.c │ │ ├── fbbltone.c │ │ ├── fbcmap_mi.c │ │ ├── fbcopy.c │ │ ├── fbfill.c │ │ ├── fbfillrect.c │ │ ├── fbfillsp.c │ │ ├── fbgc.c │ │ ├── fbgetsp.c │ │ ├── fbglyph.c │ │ ├── fbimage.c │ │ ├── fbline.c │ │ ├── fboverlay.c │ │ ├── fboverlay.h │ │ ├── fbpict.c │ │ ├── fbpict.h │ │ ├── fbpixmap.c │ │ ├── fbpoint.c │ │ ├── fbpush.c │ │ ├── fbrop.h │ │ ├── fbscreen.c │ │ ├── fbseg.c │ │ ├── fbsetsp.c │ │ ├── fbsolid.c │ │ ├── fbtrap.c │ │ ├── fbutil.c │ │ ├── fbwindow.c │ │ └── wfbrename.h │ │ ├── genpatch │ │ ├── glx │ │ ├── CMakeLists.txt │ │ ├── clientinfo.c │ │ ├── createcontext.c │ │ ├── extension_string.c │ │ ├── extension_string.h │ │ ├── glxbyteorder.h │ │ ├── glxcmds.c │ │ ├── glxcmdsswap.c │ │ ├── glxcontext.h │ │ ├── glxdrawable.h │ │ ├── glxdricommon.c │ │ ├── glxdricommon.h │ │ ├── glxdriswrast.c │ │ ├── glxext.c │ │ ├── glxext.h │ │ ├── glxscreens.c │ │ ├── glxscreens.h │ │ ├── glxserver.h │ │ ├── glxutil.h │ │ ├── indirect_dispatch.c │ │ ├── indirect_dispatch.h │ │ ├── indirect_dispatch_swap.c │ │ ├── indirect_program.c │ │ ├── indirect_reqsize.c │ │ ├── indirect_reqsize.h │ │ ├── indirect_size.h │ │ ├── indirect_size_get.c │ │ ├── indirect_size_get.h │ │ ├── indirect_table.c │ │ ├── indirect_table.h │ │ ├── indirect_texture_compression.c │ │ ├── indirect_util.c │ │ ├── indirect_util.h │ │ ├── render2.c │ │ ├── render2swap.c │ │ ├── renderpix.c │ │ ├── renderpixswap.c │ │ ├── rensize.c │ │ ├── single2.c │ │ ├── single2swap.c │ │ ├── singlepix.c │ │ ├── singlepixswap.c │ │ ├── singlesize.c │ │ ├── singlesize.h │ │ ├── swap_interval.c │ │ ├── unpack.h │ │ ├── vnd_dispatch_stubs.c │ │ ├── vndcmds.c │ │ ├── vndext.c │ │ ├── vndserver.h │ │ ├── vndservermapping.c │ │ ├── vndservervendor.c │ │ ├── vndservervendor.h │ │ └── xfont.c │ │ ├── hw │ │ └── vnc │ │ │ ├── CMakeLists.txt │ │ │ ├── README │ │ │ ├── auth.c │ │ │ ├── authpam.c │ │ │ ├── base64.c │ │ │ ├── base64.h │ │ │ ├── cmap.c │ │ │ ├── corre.c │ │ │ ├── cursor.c │ │ │ ├── cutpaste.c │ │ │ ├── dispcur.c │ │ │ ├── draw.c │ │ │ ├── dri3.c │ │ │ ├── flowcontrol.c │ │ │ ├── hextile.c │ │ │ ├── init.c │ │ │ ├── input-xkb.c │ │ │ ├── input-xkb.h │ │ │ ├── kbdptr.c │ │ │ ├── nvctrlext.c │ │ │ ├── qnum_to_xorgevdev.c │ │ │ ├── qnum_to_xorgevdev.h │ │ │ ├── qnum_to_xorgkbd.c │ │ │ ├── qnum_to_xorgkbd.h │ │ │ ├── randr.c │ │ │ ├── rfb.h │ │ │ ├── rfbscreen.c │ │ │ ├── rfbserver.c │ │ │ ├── rfbssl_openssl.c │ │ │ ├── rre.c │ │ │ ├── sockets.c │ │ │ ├── sprite.c │ │ │ ├── sprite.h │ │ │ ├── stats.c │ │ │ ├── strsep.c │ │ │ ├── tableinitcmtemplate.c │ │ │ ├── tableinittctemplate.c │ │ │ ├── tabletranstemplate.c │ │ │ ├── tight.c │ │ │ ├── translate.c │ │ │ ├── vncextinit.c │ │ │ ├── websockets.c │ │ │ ├── ws_decode.c │ │ │ ├── ws_decode.h │ │ │ ├── zlib.c │ │ │ ├── zrle.c │ │ │ ├── zrleencodetemplate.c │ │ │ ├── zrleoutstream.c │ │ │ ├── zrleoutstream.h │ │ │ ├── zrlepalettehelper.c │ │ │ ├── zrlepalettehelper.h │ │ │ ├── zrletypes.h │ │ │ └── zywrletemplate.c │ │ ├── include │ │ ├── XIstubs.h │ │ ├── Xprintf.h │ │ ├── busfault.h │ │ ├── callback.h │ │ ├── client.h │ │ ├── closestr.h │ │ ├── closure.h │ │ ├── colormap.h │ │ ├── colormapst.h │ │ ├── cursor.h │ │ ├── cursorstr.h │ │ ├── dbus-core.h │ │ ├── dix-config.h.in │ │ ├── dix.h │ │ ├── dixaccess.h │ │ ├── dixevents.h │ │ ├── dixfont.h │ │ ├── dixfontstr.h │ │ ├── dixgrabs.h │ │ ├── dixstruct.h │ │ ├── eventconvert.h │ │ ├── events.h │ │ ├── eventstr.h │ │ ├── exevents.h │ │ ├── extension.h │ │ ├── extinit.h │ │ ├── extnsionst.h │ │ ├── gc.h │ │ ├── gcstruct.h │ │ ├── globals.h │ │ ├── glx_extinit.h │ │ ├── glxvndabi.h │ │ ├── hotplug.h │ │ ├── input.h │ │ ├── inputstr.h │ │ ├── inpututils.h │ │ ├── list.h │ │ ├── misc.h │ │ ├── miscstruct.h │ │ ├── opaque.h │ │ ├── optionstr.h │ │ ├── os.h │ │ ├── pixmap.h │ │ ├── pixmapstr.h │ │ ├── privates.h │ │ ├── probes.h │ │ ├── property.h │ │ ├── propertyst.h │ │ ├── protocol-versions.h │ │ ├── ptrveloc.h │ │ ├── region.h │ │ ├── regionstr.h │ │ ├── registry.h │ │ ├── resource.h │ │ ├── rgb.h │ │ ├── screenint.h │ │ ├── scrnintstr.h │ │ ├── selection.h │ │ ├── servermd.h │ │ ├── site.h │ │ ├── swaprep.h │ │ ├── swapreq.h │ │ ├── systemd-logind.h │ │ ├── validate.h │ │ ├── version-config.h.in │ │ ├── window.h │ │ ├── windowstr.h │ │ ├── xkb-config.h.in │ │ ├── xkbfile.h │ │ ├── xkbrules.h │ │ ├── xkbsrv.h │ │ ├── xkbstr.h │ │ ├── xorg-config.h │ │ ├── xserver-properties.h │ │ ├── xserver_poll.h │ │ └── xsha1.h │ │ ├── man │ │ └── Xserver.man │ │ ├── mi │ │ ├── CMakeLists.txt │ │ ├── mi.h │ │ ├── miarc.c │ │ ├── mibitblt.c │ │ ├── micmap.c │ │ ├── micmap.h │ │ ├── micoord.h │ │ ├── micopy.c │ │ ├── midash.c │ │ ├── midispcur.c │ │ ├── mieq.c │ │ ├── miexpose.c │ │ ├── mifillarc.c │ │ ├── mifillarc.h │ │ ├── mifillrct.c │ │ ├── mifpoly.h │ │ ├── migc.c │ │ ├── migc.h │ │ ├── miglblt.c │ │ ├── miinitext.c │ │ ├── miline.h │ │ ├── mioverlay.c │ │ ├── mioverlay.h │ │ ├── mipointer.c │ │ ├── mipointer.h │ │ ├── mipointrst.h │ │ ├── mipoly.c │ │ ├── mipoly.h │ │ ├── mipolypnt.c │ │ ├── mipolyrect.c │ │ ├── mipolyseg.c │ │ ├── mipolytext.c │ │ ├── mipushpxl.c │ │ ├── miscanfill.h │ │ ├── miscrinit.c │ │ ├── misprite.c │ │ ├── misprite.h │ │ ├── mistruct.h │ │ ├── mivalidate.h │ │ ├── mivaltree.c │ │ ├── miwideline.c │ │ ├── miwideline.h │ │ ├── miwindow.c │ │ ├── mizerarc.c │ │ ├── mizerarc.h │ │ ├── mizerclip.c │ │ └── mizerline.c │ │ ├── miext │ │ ├── CMakeLists.txt │ │ ├── damage │ │ │ ├── CMakeLists.txt │ │ │ ├── damage.c │ │ │ ├── damage.h │ │ │ └── damagestr.h │ │ └── sync │ │ │ ├── CMakeLists.txt │ │ │ ├── misync.c │ │ │ ├── misync.h │ │ │ ├── misyncfd.c │ │ │ ├── misyncfd.h │ │ │ ├── misyncshm.c │ │ │ ├── misyncshm.h │ │ │ └── misyncstr.h │ │ ├── os │ │ ├── CMakeLists.txt │ │ ├── WaitFor.c │ │ ├── access.c │ │ ├── auth.c │ │ ├── backtrace.c │ │ ├── busfault.c │ │ ├── client.c │ │ ├── connection.c │ │ ├── inputthread.c │ │ ├── io.c │ │ ├── log.c │ │ ├── mitauth.c │ │ ├── oscolor.c │ │ ├── osdep.h │ │ ├── osinit.c │ │ ├── ospoll.c │ │ ├── ospoll.h │ │ ├── reallocarray.c │ │ ├── rpcauth.c │ │ ├── strcasecmp.c │ │ ├── strcasestr.c │ │ ├── strlcat.c │ │ ├── strlcpy.c │ │ ├── strndup.c │ │ ├── timingsafe_memcmp.c │ │ ├── utils.c │ │ ├── xdmauth.c │ │ ├── xdmcp.c │ │ ├── xprintf.c │ │ ├── xserver_poll.c │ │ ├── xsha1.c │ │ └── xstrans.c │ │ ├── present │ │ ├── CMakeLists.txt │ │ ├── present.c │ │ ├── present.h │ │ ├── present_event.c │ │ ├── present_execute.c │ │ ├── present_fake.c │ │ ├── present_fence.c │ │ ├── present_notify.c │ │ ├── present_priv.h │ │ ├── present_request.c │ │ ├── present_scmd.c │ │ ├── present_screen.c │ │ ├── present_vblank.c │ │ ├── present_wnmd.c │ │ └── presentext.h │ │ ├── randr │ │ ├── CMakeLists.txt │ │ ├── randr.c │ │ ├── randrstr.h │ │ ├── rrcrtc.c │ │ ├── rrdispatch.c │ │ ├── rrinfo.c │ │ ├── rrlease.c │ │ ├── rrmode.c │ │ ├── rrmonitor.c │ │ ├── rroutput.c │ │ ├── rrpointer.c │ │ ├── rrproperty.c │ │ ├── rrprovider.c │ │ ├── rrproviderproperty.c │ │ ├── rrscreen.c │ │ ├── rrsdispatch.c │ │ ├── rrtransform.c │ │ ├── rrtransform.h │ │ └── rrxinerama.c │ │ ├── record │ │ ├── CMakeLists.txt │ │ ├── record.c │ │ ├── set.c │ │ └── set.h │ │ ├── render │ │ ├── CMakeLists.txt │ │ ├── animcur.c │ │ ├── filter.c │ │ ├── glyph.c │ │ ├── glyphstr.h │ │ ├── matrix.c │ │ ├── miindex.c │ │ ├── mipict.c │ │ ├── mipict.h │ │ ├── mirect.c │ │ ├── mitrap.c │ │ ├── mitri.c │ │ ├── picture.c │ │ ├── picture.h │ │ ├── picturestr.h │ │ └── render.c │ │ ├── turbovnc.patch │ │ ├── xfixes │ │ ├── CMakeLists.txt │ │ ├── cursor.c │ │ ├── region.c │ │ ├── saveset.c │ │ ├── select.c │ │ ├── xfixes.c │ │ ├── xfixes.h │ │ └── xfixesint.h │ │ └── xkb │ │ ├── CMakeLists.txt │ │ ├── XKBAlloc.c │ │ ├── XKBGAlloc.c │ │ ├── XKBMAlloc.c │ │ ├── XKBMisc.c │ │ ├── ddxBeep.c │ │ ├── ddxCtrls.c │ │ ├── ddxKillSrv.c │ │ ├── ddxLEDs.c │ │ ├── ddxLoad.c │ │ ├── ddxPrivate.c │ │ ├── ddxVT.c │ │ ├── maprules.c │ │ ├── xkb.c │ │ ├── xkb.h │ │ ├── xkbAccessX.c │ │ ├── xkbActions.c │ │ ├── xkbDflts.h │ │ ├── xkbEvents.c │ │ ├── xkbInit.c │ │ ├── xkbLEDs.c │ │ ├── xkbPrKeyEv.c │ │ ├── xkbSwap.c │ │ ├── xkbUtils.c │ │ ├── xkbfmisc.c │ │ ├── xkbgeom.h │ │ ├── xkbout.c │ │ ├── xkbtext.c │ │ └── xkmread.c ├── include │ ├── vncExt.h │ └── vncauth.h ├── libXNVCtrl │ ├── CMakeLists.txt │ ├── NVCtrl.c │ ├── NVCtrl.h │ ├── NVCtrlLib.h │ └── nv_control.h ├── libvncauth │ ├── CMakeLists.txt │ └── vncauth.c ├── turbovncserver-security.conf ├── turbovncserver.conf ├── tvncconfig │ ├── CMakeLists.txt │ ├── tvncconfig.c │ ├── tvncconfig.man │ └── vncExt.c ├── tvncservers ├── vncconnect │ ├── CMakeLists.txt │ ├── vncconnect.c │ └── vncconnect.man ├── vncpasswd │ ├── CMakeLists.txt │ ├── vncpasswd.c │ └── vncpasswd.man ├── vncserver.in ├── vncserver.init.in ├── vncserver.man.in ├── vncviewer │ ├── CMakeLists.txt │ ├── JRSwizzle.h │ ├── JRSwizzle.m │ ├── JavaAppLauncher │ ├── JavaAppLauncher.m │ ├── XF86keysym.h │ ├── cocoa.h │ ├── cocoa.m │ ├── com_turbovnc_rfb_Utils.h │ ├── com_turbovnc_vncviewer_Viewport.h │ ├── keysym2ucs.c │ ├── keysym2ucs.h │ ├── keysymdef.h │ ├── osx_to_qnum.c │ ├── osx_to_qnum.h │ ├── turbovnchelper.c │ ├── turbovnchelper.m │ ├── vncviewer-mac.in │ ├── vncviewer.in │ └── vncviewer.man ├── webserver.in └── xstartup.turbovnc └── win ├── CMakeLists.txt ├── TurboVNC.url └── vncviewer ├── CMakeLists.txt ├── LowLevelHook.cpp ├── LowLevelHook.h ├── com_jcraft_jsch_PageantConnector.h ├── com_turbovnc_vncviewer_Viewport.h ├── omnithread ├── nt.cpp ├── nt.h └── omnithread.h ├── safestr.h ├── turbovnchelper.cpp ├── vncviewer.bat.in ├── vncviewer.ico └── vncviewerw.bat.in /cmakescripts/cmake_uninstall.cmake.in: -------------------------------------------------------------------------------- 1 | # This code is from the CMake FAQ 2 | 3 | if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") 4 | message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") 5 | endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") 6 | 7 | file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) 8 | string(REGEX REPLACE "\n" ";" files "${files}") 9 | list(REVERSE files) 10 | foreach (file ${files}) 11 | message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") 12 | if (EXISTS "$ENV{DESTDIR}${file}") 13 | execute_process( 14 | COMMAND "@CMAKE_COMMAND@" -E remove "$ENV{DESTDIR}${file}" 15 | OUTPUT_VARIABLE rm_out 16 | RESULT_VARIABLE rm_retval 17 | ) 18 | if(NOT ${rm_retval} EQUAL 0) 19 | message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") 20 | endif (NOT ${rm_retval} EQUAL 0) 21 | else (EXISTS "$ENV{DESTDIR}${file}") 22 | message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") 23 | endif (EXISTS "$ENV{DESTDIR}${file}") 24 | endforeach(file) 25 | -------------------------------------------------------------------------------- /common/turbojpeg-jni/com_turbovnc_rfb_TightDecoder.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class com_turbovnc_rfb_TightDecoder */ 4 | 5 | #ifndef _Included_com_turbovnc_rfb_TightDecoder 6 | #define _Included_com_turbovnc_rfb_TightDecoder 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: com_turbovnc_rfb_TightDecoder 12 | * Method: tjInitDecompress 13 | * Signature: ()J 14 | */ 15 | JNIEXPORT jlong JNICALL Java_com_turbovnc_rfb_TightDecoder_tjInitDecompress 16 | (JNIEnv *, jobject); 17 | 18 | /* 19 | * Class: com_turbovnc_rfb_TightDecoder 20 | * Method: tjDecompress 21 | * Signature: (J[BI[BIIIIIII)V 22 | */ 23 | JNIEXPORT void JNICALL Java_com_turbovnc_rfb_TightDecoder_tjDecompress__J_3BI_3BIIIIIII 24 | (JNIEnv *, jobject, jlong, jbyteArray, jint, jbyteArray, jint, jint, jint, jint, jint, jint, jint); 25 | 26 | /* 27 | * Class: com_turbovnc_rfb_TightDecoder 28 | * Method: tjDecompress 29 | * Signature: (J[BI[IIIIIIII)V 30 | */ 31 | JNIEXPORT void JNICALL Java_com_turbovnc_rfb_TightDecoder_tjDecompress__J_3BI_3IIIIIIII 32 | (JNIEnv *, jobject, jlong, jbyteArray, jint, jintArray, jint, jint, jint, jint, jint, jint, jint); 33 | 34 | /* 35 | * Class: com_turbovnc_rfb_TightDecoder 36 | * Method: tjDestroy 37 | * Signature: (J)V 38 | */ 39 | JNIEXPORT void JNICALL Java_com_turbovnc_rfb_TightDecoder_tjDestroy 40 | (JNIEnv *, jobject, jlong); 41 | 42 | #ifdef __cplusplus 43 | } 44 | #endif 45 | #endif 46 | -------------------------------------------------------------------------------- /doc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | file(GLOB SOURCE_FILES *.png *.rb [a-z]*.txt turbovnc.css) 2 | 3 | file(GLOB DOC_FILES *.png LICENSE*.txt index.html turbovnc.css) 4 | 5 | add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/stamp 6 | COMMAND deplate -c config.rb -m html-obfuscate-email turbovnc.txt 7 | -D _DOCVERSION=${DOCVERSION} -D _VERSION=${VERSION} -o index.html 8 | COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/stamp 9 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 10 | DEPENDS ${SOURCE_FILES} 11 | COMMENT "Generating User's Guide" 12 | ) 13 | 14 | add_custom_target(doc DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/stamp) 15 | 16 | install(FILES ${DOC_FILES} DESTINATION ${CMAKE_INSTALL_DOCDIR}) 17 | -------------------------------------------------------------------------------- /doc/config.rb: -------------------------------------------------------------------------------- 1 | class Deplate::Core 2 | def self.user_setup(options) 3 | options.disabled_particles << Deplate::HyperLink::Simple 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /doc/formatting.txt: -------------------------------------------------------------------------------- 1 | * Formatting 2 | 3 | - ''Terminal commands, arguments, and output'' 4 | - ''Executable filenames'' 5 | - ''Function names'' 6 | - ''Environment variable names and values'' 7 | - ''User and group names'' 8 | - ''Configuration file parameters and values'' 9 | - ''X11 and GLX extension names'' 10 | - __''Variable parts of any of the above''__ 11 | {:} 12 | - {file: Non-executable filenames} 13 | - {file: Directory names} 14 | - {file: Application shortcuts} 15 | - {file: __Variable parts of any of the above__} 16 | {:} 17 | #Verb: <<--- 18 | Terminal command sequences 19 | --- 20 | #Pverb: <<--- 21 | __Variable parts of terminal command sequences__ 22 | --- 23 | -------------------------------------------------------------------------------- /doc/legalinfo.txt: -------------------------------------------------------------------------------- 1 | * Legal Information 2 | 3 | {img: somerights20.png} 4 | 5 | This document and all associated illustrations are licensed under the 6 | [[https://creativecommons.org/licenses/by/2.5]\ 7 | [Creative Commons Attribution 2.5 License]*]. Any works that contain 8 | material derived from this document must cite The VirtualGL Project as the 9 | source of the material and list the current URL for the TurboVNC web site. 10 | 11 | The official TurboVNC binaries contain libjpeg-turbo, which is based in part on 12 | the work of the Independent JPEG Group. 13 | 14 | TurboVNC is licensed under the 15 | [[LICENSE.txt][GNU General Public License, v2]!*]. 16 | -------------------------------------------------------------------------------- /doc/newconn-sessmgr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/newconn-sessmgr.png -------------------------------------------------------------------------------- /doc/newconn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/newconn.png -------------------------------------------------------------------------------- /doc/sessmgr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/sessmgr.png -------------------------------------------------------------------------------- /doc/somerights20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/somerights20.png -------------------------------------------------------------------------------- /doc/turbovnc.txt: -------------------------------------------------------------------------------- 1 | #VAR: css=turbovnc.css 2 | #TITLE: User's Guide for TurboVNC {val: _DOCVERSION} 3 | #MAKETITLE 4 | 5 | #IF: fmt==html 6 | 7 | #DefMacroN id=file args=@body <<--- 8 | {arg: @body} 9 | --- 10 | 11 | #DefMacroN id=pcode args=@body <<--- 12 | {arg: @body} 13 | --- 14 | 15 | #DefRegionN id=Pverb args=@body <<--- 16 |
{arg: @body}
17 | --- 18 | 19 | #ENDIF 20 | 21 | #LIST: contents 22 | {nl} 23 | ----8<-------------- 24 | #INCLUDE: legalinfo.txt 25 | {nl} 26 | ----8<-------------- 27 | #INCLUDE: prefix.txt 28 | {nl} 29 | ----8<-------------- 30 | #INCLUDE: overview.txt 31 | {nl} 32 | ----8<-------------- 33 | #INCLUDE: sysreq.txt 34 | {nl} 35 | ----8<-------------- 36 | #INCLUDE: install.txt 37 | {nl} 38 | ----8<-------------- 39 | #INCLUDE: usage.txt 40 | {nl} 41 | ----8<-------------- 42 | #INCLUDE: performance.txt 43 | {nl} 44 | ----8<-------------- 45 | #INCLUDE: auth.txt 46 | {nl} 47 | ----8<-------------- 48 | #INCLUDE: vglusage.txt 49 | {nl} 50 | ----8<-------------- 51 | #INCLUDE: dri3.txt 52 | {nl} 53 | ----8<-------------- 54 | #INCLUDE: compatibility.txt 55 | {nl} 56 | ----8<-------------- 57 | #INCLUDE: config.txt 58 | {nl} 59 | -------------------------------------------------------------------------------- /doc/unixauth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/unixauth.png -------------------------------------------------------------------------------- /doc/vgltransportservernetwork.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/vgltransportservernetwork.odg -------------------------------------------------------------------------------- /doc/vgltransportservernetwork.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/vgltransportservernetwork.png -------------------------------------------------------------------------------- /doc/vncauth-insecure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/vncauth-insecure.png -------------------------------------------------------------------------------- /doc/vncauth-redundant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/vncauth-redundant.png -------------------------------------------------------------------------------- /doc/vncauth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/vncauth.png -------------------------------------------------------------------------------- /doc/x11transport.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/x11transport.odg -------------------------------------------------------------------------------- /doc/x11transport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/doc/x11transport.png -------------------------------------------------------------------------------- /java/com/jcraft/jsch/KDF.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2018 ymnk, JCraft,Inc. All rights reserved. 3 | * 4 | * Redistribution and use in source and binary forms, with or without modification, are permitted 5 | * provided that the following conditions are met: 6 | * 7 | * 1. Redistributions of source code must retain the above copyright notice, this list of conditions 8 | * and the following disclaimer. 9 | * 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, this list of 11 | * conditions and the following disclaimer in the documentation and/or other materials provided with 12 | * the distribution. 13 | * 14 | * 3. The names of the authors may not be used to endorse or promote products derived from this 15 | * software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | * DISCLAIMED. IN NO EVENT SHALL JCRAFT, INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY 20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 21 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 22 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | */ 26 | 27 | package com.jcraft.jsch; 28 | 29 | public interface KDF { 30 | byte[] getKey(byte[] pass, int size); 31 | } 32 | -------------------------------------------------------------------------------- /java/com/jcraft/jsch/LICENSE.jBCrypt.txt: -------------------------------------------------------------------------------- 1 | jBCrypt is subject to the following license: 2 | 3 | /* 4 | * Copyright (c) 2006 Damien Miller 5 | * 6 | * Permission to use, copy, modify, and distribute this software for any 7 | * purpose with or without fee is hereby granted, provided that the above 8 | * copyright notice and this permission notice appear in all copies. 9 | * 10 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | */ 18 | -------------------------------------------------------------------------------- /java/com/jcraft/jsch/Version.java: -------------------------------------------------------------------------------- 1 | package com.jcraft.jsch; 2 | 3 | final class Version { 4 | 5 | private static final String VERSION = "0.2.23"; 6 | 7 | static String getVersion() { 8 | return VERSION; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /java/com/jcraft/jsch/opensshFormat.md: -------------------------------------------------------------------------------- 1 | # Links regarding OPENSSH key format 2 | 3 | * nice read: 4 | 5 | * See discussion: 6 | 7 | 8 | * implementation of bcrypt_pbkdf: 9 | 10 | -------------------------------------------------------------------------------- /java/com/turbovnc/network/FileDescriptor.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2012 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2012 Brian P. Hinz 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | package com.turbovnc.network; 21 | 22 | public interface FileDescriptor { 23 | 24 | int read(byte[] buf, int bufPtr, int length); 25 | int write(byte[] buf, int bufPtr, int length); 26 | int select(int interestOps, Integer timeout); 27 | void close(); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /java/com/turbovnc/rdr/EndOfStream.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2012 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2011 Brian P. Hinz 3 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 4 | * 5 | * This is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This software is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this software; if not, write to the Free Software 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 18 | * USA. 19 | */ 20 | 21 | package com.turbovnc.rdr; 22 | 23 | public class EndOfStream extends WarningException { 24 | public EndOfStream() { 25 | super("Connection closed"); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /java/com/turbovnc/rdr/ErrorException.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2012, 2020 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2011 Brian P. Hinz 3 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 4 | * 5 | * This is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This software is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this software; if not, write to the Free Software 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 18 | * USA. 19 | */ 20 | 21 | package com.turbovnc.rdr; 22 | 23 | public class ErrorException extends RuntimeException { 24 | public ErrorException(String message) { 25 | super(message); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /java/com/turbovnc/rdr/FdInStreamBlockCallback.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2011-2012 Brian P. Hinz 2 | * 3 | * This is free software; you can redistribute it and/or modify 4 | * it under the terms of the GNU General Public License as published by 5 | * the Free Software Foundation; either version 2 of the License, or 6 | * (at your option) any later version. 7 | * 8 | * This software is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU General Public License 14 | * along with this software; if not, write to the Free Software 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 16 | * USA. 17 | */ 18 | 19 | package com.turbovnc.rdr; 20 | 21 | public interface FdInStreamBlockCallback { 22 | void blockCallback(); 23 | } 24 | -------------------------------------------------------------------------------- /java/com/turbovnc/rdr/MemInStream.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2011 Brian P. Hinz 2 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | package com.turbovnc.rdr; 21 | 22 | public class MemInStream extends InStream { 23 | 24 | public MemInStream(byte[] data, int offset, int len) { 25 | b = data; 26 | start = offset; 27 | ptr = start; 28 | end = start + len; 29 | } 30 | 31 | public int pos() { return ptr; } 32 | public void reposition(int pos) { ptr = start + pos; } 33 | 34 | protected int overrun(int itemSize, int nItems, boolean wait) { 35 | throw new EndOfStream(); 36 | } 37 | 38 | int start; 39 | } 40 | -------------------------------------------------------------------------------- /java/com/turbovnc/rdr/TimedOut.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2012 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2011 Brian P. Hinz 3 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 4 | * 5 | * This is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This software is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this software; if not, write to the Free Software 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 18 | * USA. 19 | */ 20 | 21 | package com.turbovnc.rdr; 22 | 23 | class TimedOut extends ErrorException { 24 | TimedOut() { 25 | super("Timed out"); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /java/com/turbovnc/rdr/WarningException.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2012, 2020 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2011 Brian P. Hinz 3 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 4 | * 5 | * This is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This software is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this software; if not, write to the Free Software 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 18 | * USA. 19 | */ 20 | 21 | package com.turbovnc.rdr; 22 | 23 | /* We use this to communicate exceptions that are generally the result of user 24 | actions. */ 25 | 26 | public class WarningException extends RuntimeException { 27 | public WarningException(String message) { 28 | super(message); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /java/com/turbovnc/rfb/AuthFailureException.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2012 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | package com.turbovnc.rfb; 21 | 22 | import com.turbovnc.rdr.WarningException; 23 | 24 | public class AuthFailureException extends WarningException { 25 | public AuthFailureException(String s) { super(s); } 26 | } 27 | -------------------------------------------------------------------------------- /java/com/turbovnc/rfb/CSecurityNone.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017-2018 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | package com.turbovnc.rfb; 21 | 22 | public class CSecurityNone extends CSecurity { 23 | 24 | public boolean processMsg(CConnection cc) { return true; } 25 | public final int getType() { return RFB.SECTYPE_NONE; } 26 | public final String getDescription() { return "None"; } 27 | public final String getProtocol() { return "None"; } 28 | static LogWriter vlog = new LogWriter("CSecurityNone"); 29 | } 30 | -------------------------------------------------------------------------------- /java/com/turbovnc/rfb/ConnFailedException.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2012 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | package com.turbovnc.rfb; 21 | 22 | import com.turbovnc.rdr.ErrorException; 23 | 24 | public class ConnFailedException extends ErrorException { 25 | public ConnFailedException(String s) { super(s); } 26 | } 27 | -------------------------------------------------------------------------------- /java/com/turbovnc/rfb/Cursor.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2018 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | package com.turbovnc.rfb; 21 | 22 | public class Cursor extends ManagedPixelBuffer { 23 | 24 | public void setSize(int w, int h) { 25 | super.setSize(w, h); 26 | if (mask == null || mask.length < maskLen()) 27 | mask = new byte[maskLen()]; 28 | } 29 | public int maskLen() { return (width() + 7) / 8 * height(); } 30 | 31 | // CHECKSTYLE VisibilityModifier:OFF 32 | public Point hotspot; 33 | public byte[] mask; 34 | // CHECKSTYLE VisibilityModifier:ON 35 | } 36 | -------------------------------------------------------------------------------- /java/com/turbovnc/rfb/ManagedPixelBuffer.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2012 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | package com.turbovnc.rfb; 21 | 22 | public class ManagedPixelBuffer extends PixelBuffer { 23 | public void setSize(int w, int h) { 24 | width = w; 25 | height = h; 26 | checkDataSize(); 27 | } 28 | public void setPF(PixelFormat pf) { 29 | super.setPF(pf); 30 | checkDataSize(); 31 | } 32 | 33 | public int dataLen() { return area(); } 34 | 35 | final void checkDataSize() { 36 | if (data == null || ((int[])data).length < dataLen()) 37 | data = new int[dataLen()]; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /java/com/turbovnc/rfb/RawDecoder.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2015 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | package com.turbovnc.rfb; 21 | 22 | public class RawDecoder extends Decoder { 23 | 24 | public RawDecoder(CMsgReader reader_) { reader = reader_; } 25 | 26 | public void readRect(Rect r, CMsgHandler handler) { 27 | int[] stride = { r.width() }; 28 | Object buf = handler.getRawPixelsRW(stride); 29 | 30 | reader.getInStream().readPixels(buf, stride[0], r, (reader.bpp() / 8), 31 | handler.cp.pf().bigEndian); 32 | handler.releaseRawPixels(r); 33 | } 34 | 35 | CMsgReader reader; 36 | static LogWriter vlog = new LogWriter("RawDecoder"); 37 | } 38 | -------------------------------------------------------------------------------- /java/com/turbovnc/rfb/ServerNameParameter.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2013, 2015, 2018, 2020-2025 D. R. Commander. 2 | * All Rights Reserved. 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | package com.turbovnc.rfb; 21 | 22 | public final class ServerNameParameter extends StringParameter { 23 | 24 | public ServerNameParameter(String name, Params params, boolean isGUI, 25 | boolean advanced, String desc, String defValue) { 26 | super(name, params, isGUI, advanced, desc, defValue); 27 | setDefault(defValue); 28 | } 29 | 30 | public synchronized boolean set(String str) { 31 | if (str != null && !str.isEmpty()) 32 | str = str.replaceAll("\\s", ""); 33 | return super.set(str); 34 | } 35 | 36 | public synchronized boolean setDefault(String str) { 37 | if (str != null && !str.isEmpty()) 38 | str = str.replaceAll("\\s", ""); 39 | return super.setDefault(str); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /java/com/turbovnc/rfb/UserPasswdGetter.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 2 | * 3 | * This is free software; you can redistribute it and/or modify 4 | * it under the terms of the GNU General Public License as published by 5 | * the Free Software Foundation; either version 2 of the License, or 6 | * (at your option) any later version. 7 | * 8 | * This software is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU General Public License 14 | * along with this software; if not, write to the Free Software 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 16 | * USA. 17 | */ 18 | 19 | // getUserPasswd() gets the username and password. This might involve a 20 | // dialog, getpass(), etc. The user buffer pointer can be null, in which case 21 | // no username will be retrieved. 22 | 23 | package com.turbovnc.rfb; 24 | 25 | public interface UserPasswdGetter { 26 | boolean getUserPasswd(StringBuffer user, StringBuffer password); 27 | } 28 | -------------------------------------------------------------------------------- /java/com/turbovnc/vncviewer/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Main-Class: com.turbovnc.vncviewer.VncViewer 3 | Application-Name: TurboVNC Viewer 4 | Permissions: all-permissions 5 | Codebase: * 6 | -------------------------------------------------------------------------------- /java/com/turbovnc/vncviewer/OptionsDialogCallback.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2012, 2015 D. R. Commander. All Rights Reserved. 2 | * Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | package com.turbovnc.vncviewer; 21 | 22 | public interface OptionsDialogCallback { 23 | void setOptions(); 24 | void setTightOptions(); 25 | void getOptions(); 26 | boolean supportsSetDesktopSize(); 27 | } 28 | -------------------------------------------------------------------------------- /java/com/turbovnc/vncviewer/insecure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/java/com/turbovnc/vncviewer/insecure.png -------------------------------------------------------------------------------- /java/com/turbovnc/vncviewer/secure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/java/com/turbovnc/vncviewer/secure.png -------------------------------------------------------------------------------- /java/com/turbovnc/vncviewer/timestamp.in: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Main-Class: com.turbovnc.vncviewer.VncViewer 3 | Package-Date: @JAVA_DATE@ 4 | Package-Time: @JAVA_TIME@ 5 | Version: @VERSION@ 6 | Build: @BUILD@ 7 | Copyright-Year: @COPYRIGHT_YEAR@ 8 | Copyright: @COPYRIGHT@ 9 | URL: @URLTEXT@ 10 | -------------------------------------------------------------------------------- /java/com/turbovnc/vncviewer/toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/java/com/turbovnc/vncviewer/toolbar.png -------------------------------------------------------------------------------- /java/com/turbovnc/vncviewer/turbovnc-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/java/com/turbovnc/vncviewer/turbovnc-128.png -------------------------------------------------------------------------------- /java/com/turbovnc/vncviewer/turbovnc-sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/java/com/turbovnc/vncviewer/turbovnc-sm.png -------------------------------------------------------------------------------- /java/com/turbovnc/vncviewer/turbovnc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/java/com/turbovnc/vncviewer/turbovnc.png -------------------------------------------------------------------------------- /release/Distribution.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | 14 | @CMAKE_PROJECT_NAME@ 15 | 16 | 17 | 18 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | @PKGNAME@.pkg 36 | 37 | -------------------------------------------------------------------------------- /release/Package.plist.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | BundleHasStrictIdentifier 7 | 8 | BundleIsRelocatable 9 | 10 | BundleIsVersionChecked 11 | 12 | BundleOverwriteAction 13 | upgrade 14 | RootRelativeBundlePath 15 | Applications/@CMAKE_PROJECT_NAME@/@CMAKE_PROJECT_NAME@ Viewer.app 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /release/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Virtual Network Computing (VNC) is a remote display system that allows you to view and interact with a desktop environment that is running on a remote computer. Using VNC, you can run graphical applications on a remote machine and send only the pixels generated by these applications to your local machine. VNC is platform-independent and supports a wide variety of operating systems and architectures as both servers and clients. 2 | 3 | TurboVNC is a high-speed version of VNC derived from TightVNC. It contains a variant of Tight encoding that is tuned to maximize performance for image-intensive applications (such as VirtualGL, video applications, and image editors) while still providing excellent performance for other types of applications. TurboVNC, in combination with VirtualGL, provides a complete solution for remotely displaying 3D applications with interactive performance. 4 | 5 | This package includes the TurboVNC Viewer, which provides optimal performance when connecting to the TurboVNC Server. 6 | 7 | Refer to the TurboVNC User's Guide (a link to which is provided in the "TurboVNC" Applications folder) for usage information. 8 | -------------------------------------------------------------------------------- /release/Welcome.txt.in: -------------------------------------------------------------------------------- 1 | This package will install the TurboVNC Viewer for Macs with @FORMAL_CPU_NAME@ CPUs. To remove TurboVNC, use the "Uninstall TurboVNC" application. 2 | -------------------------------------------------------------------------------- /release/deb-control.in: -------------------------------------------------------------------------------- 1 | Package: @PKGNAME@ 2 | Version: @VERSION@-@BUILD@ 3 | Section: misc 4 | Priority: optional 5 | Architecture: @DEBARCH@ 6 | Essential: no 7 | Maintainer: @PKGVENDOR@ <@PKGEMAIL@> 8 | Homepage: @PKGURL@ 9 | Installed-Size: {__SIZE} 10 | Depends: @DEBDEPENDS@ 11 | Description: A highly-optimized version of VNC that can be used with performance-critical applications 12 | Virtual Network Computing (VNC) is a remote display system that allows you to 13 | view and interact with a desktop environment that is running on a remote 14 | computer. Using VNC, you can run graphical applications on a remote machine 15 | and send only the pixels generated by these applications to your local 16 | machine. VNC is platform-independent and supports a wide variety of operating 17 | systems and architectures as both servers and clients. 18 | . 19 | TurboVNC is a high-speed version of VNC derived from TightVNC. It contains 20 | a variant of Tight encoding that is tuned to maximize performance for image- 21 | intensive applications (such as VirtualGL, video applications, and image 22 | editors) while still providing excellent performance for other types of 23 | applications. TurboVNC, in combination with VirtualGL, provides a complete 24 | solution for remotely displaying 3D applications with interactive performance. 25 | -------------------------------------------------------------------------------- /release/entitlements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.cs.allow-jit 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /release/makerpm.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -u 4 | set -e 5 | trap onexit INT 6 | trap onexit TERM 7 | trap onexit EXIT 8 | 9 | TMPDIR= 10 | 11 | onexit() 12 | { 13 | if [ ! "$TMPDIR" = "" ]; then 14 | rm -rf $TMPDIR 15 | fi 16 | } 17 | 18 | if [ -f @PKGNAME@-@VERSION@.@RPMARCH@.rpm ]; then 19 | rm -f @PKGNAME@-@VERSION@.@RPMARCH@.rpm 20 | fi 21 | 22 | umask 022 23 | TMPDIR=`mktemp -d /tmp/@CMAKE_PROJECT_NAME_LC@-build.XXXXXX` 24 | 25 | mkdir -p $TMPDIR/RPMS 26 | ln -fs `pwd` $TMPDIR/BUILD 27 | rpmbuild -bb --define "_blddir $TMPDIR/buildroot" --define "_topdir $TMPDIR" \ 28 | --target @RPMARCH@ pkgscripts/rpm.spec; \ 29 | cp $TMPDIR/RPMS/@RPMARCH@/@PKGNAME@-@VERSION@-@BUILD@.@RPMARCH@.rpm \ 30 | @PKGNAME@-@VERSION@.@RPMARCH@.rpm 31 | -------------------------------------------------------------------------------- /release/makesrpm.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -u 4 | set -e 5 | trap onexit INT 6 | trap onexit TERM 7 | trap onexit EXIT 8 | 9 | TMPDIR= 10 | 11 | onexit() 12 | { 13 | if [ ! "$TMPDIR" = "" ]; then 14 | rm -rf $TMPDIR 15 | fi 16 | } 17 | 18 | PKGNAME=@PKGNAME@ 19 | PROJECT=@CMAKE_PROJECT_NAME_LC@ 20 | VERSION=@VERSION@ 21 | BUILD=@BUILD@ 22 | 23 | if [ -f $PKGNAME-$VERSION.src.rpm ]; then 24 | rm -f $PKGNAME-$VERSION.src.rpm 25 | fi 26 | 27 | umask 022 28 | TMPDIR=`mktemp -d /tmp/$PKGNAME-build.XXXXXX` 29 | 30 | mkdir -p $TMPDIR/RPMS 31 | mkdir -p $TMPDIR/SRPMS 32 | mkdir -p $TMPDIR/BUILD 33 | mkdir -p $TMPDIR/SOURCES 34 | mkdir -p $TMPDIR/SPECS 35 | 36 | if [ ! -f $PROJECT-$VERSION.tar.gz ]; then 37 | echo "ERROR: $PROJECT-$VERSION.tar.gz does not exist." 38 | fi 39 | 40 | cp $PROJECT-$VERSION.tar.gz $TMPDIR/SOURCES/$PROJECT-$VERSION.tar.gz 41 | 42 | cat pkgscripts/rpm.spec | sed s/%{_blddir}/%{_tmppath}/g \ 43 | | sed s/#--\>//g > $TMPDIR/SPECS/$PKGNAME.spec 44 | 45 | rpmbuild -bs --define "_topdir $TMPDIR" $TMPDIR/SPECS/$PKGNAME.spec 46 | mv $TMPDIR/SRPMS/$PKGNAME-$VERSION-$BUILD.src.rpm $PKGNAME-$VERSION.src.rpm 47 | 48 | exit 49 | -------------------------------------------------------------------------------- /release/maketarball.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -u 4 | set -e 5 | trap onexit INT 6 | trap onexit TERM 7 | trap onexit EXIT 8 | 9 | TMPDIR= 10 | SUDO= 11 | 12 | onexit() 13 | { 14 | if [ ! "$TMPDIR" = "" ]; then 15 | rm -rf $TMPDIR 16 | fi 17 | } 18 | 19 | uid() 20 | { 21 | id | cut -f2 -d = | cut -f1 -d \(; 22 | } 23 | 24 | PKGNAME=@PKGNAME@ 25 | VERSION=@VERSION@ 26 | ARCH=@CPU_TYPE@ 27 | OS=@CMAKE_SYSTEM_NAME@ 28 | PREFIX=@CMAKE_INSTALL_PREFIX@ 29 | 30 | umask 022 31 | rm -f $PKGNAME-$VERSION-$OS-$ARCH.tar.bz2 32 | TMPDIR=`mktemp -d /tmp/$PKGNAME-build.XXXXXX` 33 | mkdir -p $TMPDIR/install 34 | 35 | DESTDIR=$TMPDIR/install @CMAKE_MAKE_PROGRAM@ install 36 | echo tartest >$TMPDIR/tartest 37 | GNUTAR=0 38 | BSDTAR=0 39 | tar cf $TMPDIR/tartest.tar --owner=root --group=root -C $TMPDIR tartest >/dev/null 2>&1 && GNUTAR=1 40 | if [ "$GNUTAR" = "1" ]; then 41 | tar cf - --owner=root --group=root -C $TMPDIR/install .$PREFIX | bzip2 -c >$PKGNAME-$VERSION-$OS-$ARCH.tar.bz2 42 | else 43 | tar cf $TMPDIR/tartest.tar --uid 0 --gid 0 -C $TMPDIR tartest >/dev/null 2>&1 && BSDTAR=1 44 | if [ "$BSDTAR" = "1" ]; then 45 | tar cf - --uid=0 --gid=0 -C $TMPDIR/install .$PREFIX | bzip2 -c >$PKGNAME-$VERSION-$OS-$ARCH.tar.bz2 46 | else 47 | tar cf - -C $TMPDIR/install .$PREFIX | bzip2 -c >$PKGNAME-$VERSION-$OS-$ARCH.tar.bz2 48 | fi 49 | fi 50 | 51 | exit 52 | -------------------------------------------------------------------------------- /release/turbovnc.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/release/turbovnc.icns -------------------------------------------------------------------------------- /release/vncviewer.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/release/vncviewer.icns -------------------------------------------------------------------------------- /unix/Xvnc/genpatch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -u 4 | set -e 5 | trap onexit INT 6 | trap onexit TERM 7 | trap onexit EXIT 8 | 9 | TMPDIR= 10 | 11 | onexit() 12 | { 13 | if [ ! "$TMPDIR" = "" ]; then 14 | rm -rf $TMPDIR 15 | fi 16 | } 17 | 18 | TMPDIR=`mktemp -d /tmp/genpatch.XXXXXX` 19 | SRCDIR=$(cd $SRCDIR; pwd) 20 | ln -fs $SRCDIR $TMPDIR/ 21 | SRCDIR=${SRCDIR##*/} 22 | 23 | pushd $TMPDIR >/dev/null 2>&1 24 | 25 | >&2 echo Downloading $URL/$FILE ... 26 | wget --quiet $URL/$FILE 27 | >&2 echo Generating diff ... 28 | tar xfz $FILE 29 | git diff --no-index --diff-filter=M $PROJECT $SRCDIR/ && \ 30 | >&2 echo NO DIFFERENCES || >&2 echo Patch generated 31 | 32 | popd >/dev/null 2>&1 33 | -------------------------------------------------------------------------------- /unix/Xvnc/include/tvnc_version.h.in: -------------------------------------------------------------------------------- 1 | #define __VERSION "@VERSION@" 2 | #define __BUILD "@BUILD@" 3 | #define __COPYRIGHT_YEAR "@COPYRIGHT_YEAR@" 4 | #define __COPYRIGHT_MSG "@COPYRIGHT@" 5 | #define __URLTEXT "@URLTEXT@" 6 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(TVNC_ZLIBNG) 2 | include(ExternalProject) 3 | 4 | # WITH_NEW_STRATEGIES=0 makes zlib-ng compress as well as zlib when using 5 | # Compression Level 1. 6 | # 7 | # ZLIB_COMPAT=1 makes zlib-ng emulate the zlib API. 8 | # 9 | # The rest of the CMake arguments disable unneeded (unincluded, in the case 10 | # of testing) build features and build zlib-ng using the same compiler and 11 | # flags that are used to build the TurboVNC Server. 12 | 13 | ExternalProject_Add(zlib-ng BINARY_DIR zlib-ng 14 | SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/zlib-ng 15 | CMAKE_ARGS 16 | -DBUILD_SHARED_LIBS=0 17 | -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} 18 | "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -w" 19 | -DCMAKE_C_FLAGS_DEBUG=${CMAKE_C_FLAGS_DEBUG} 20 | -DCMAKE_C_FLAGS_MINSIZEREL=${CMAKE_C_FLAGS_MINSIZEREL} 21 | -DCMAKE_C_FLAGS_RELEASE=${CMAKE_C_FLAGS_RELEASE} 22 | -DCMAKE_C_FLAGS_RELWITHDEBINFO=${CMAKE_C_FLAGS_RELWITHDEBINFO} 23 | -DWITH_GTEST=0 24 | -DWITH_GZFILEOP=0 25 | -DWITH_NEW_STRATEGIES=0 26 | -DWITH_SANITIZER=0 27 | -DZLIBNG_ENABLE_TESTS=0 28 | -DZLIB_COMPAT=1 29 | -DZLIB_ENABLE_TESTS=0 30 | INSTALL_COMMAND "" 31 | STEP_TARGETS build) 32 | endif() 33 | 34 | add_subdirectory(libsha1) 35 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/libsha1/AUTHORS: -------------------------------------------------------------------------------- 1 | SHA1 implementation: Dr Brian Gladman 2 | Library maintainer: Mikhail Gusarov 3 | 4 | Contributors: 5 | Tiago Vignatti 6 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/libsha1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(sha1 STATIC 2 | sha1.c) 3 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/libsha1/COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2002, Dr Brian Gladman, Worcester, UK. All rights reserved. 2 | 3 | LICENSE TERMS 4 | 5 | The free distribution and use of this software in both source and binary 6 | form is allowed (with or without changes) provided that: 7 | 8 | 1. distributions of this source code include the above copyright 9 | notice, this list of conditions and the following disclaimer; 10 | 11 | 2. distributions in binary form include the above copyright 12 | notice, this list of conditions and the following disclaimer 13 | in the documentation and/or other associated materials; 14 | 15 | 3. the copyright holder's name is not used to endorse products 16 | built using this software without specific written permission. 17 | 18 | ALTERNATIVELY, provided that this notice is retained in full, this product 19 | may be distributed under the terms of the GNU General Public License (GPL), 20 | in which case the provisions of the GPL apply INSTEAD OF those given above. 21 | 22 | DISCLAIMER 23 | 24 | This software is provided 'as is' with no explicit or implied warranties 25 | in respect of its properties, including, but not limited to, correctness 26 | and/or fitness for purpose. 27 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/libsha1/ChangeLog: -------------------------------------------------------------------------------- 1 | * 0.3 (03.06.2010) 2 | 3 | - Added autogen.sh. 4 | - Added libsha1.pc. 5 | 6 | * 0.2 (20.10.2008) 7 | 8 | - Removed brg_* headers and cleaned up platform-dependent code. 9 | - Added small testsuite. 10 | - Fixed line endings. 11 | - sha1.h renamed to libsha1.h to avoid clashes with libmd. 12 | 13 | * 0.1 (25.09.2008) 14 | 15 | Initial version 16 | 17 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/libsha1/README: -------------------------------------------------------------------------------- 1 | == libsha1 == 2 | 3 | libsha1 is a tiny library providing SHA1 implementation, created for 4 | facilitating X server compilation on devices when larger libraries containing 5 | SHA1 implementations (OpenSSL, Mozilla NSS) are not needed. 6 | 7 | = Contacts = 8 | 9 | Web site: http://github.com/dottedmag/libsha1 10 | Mailing list: http://lists.dottedmag.net/mailman/listinfo/libsha1 11 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/libsha1/genpatch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PROJECT=libsha1-0.3 4 | FILE=0.3.tar.gz 5 | URL=https://github.com/dottedmag/libsha1/archive 6 | SRCDIR=`dirname $0` 7 | 8 | . $SRCDIR/../../genpatch 9 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/.codecov.yaml: -------------------------------------------------------------------------------- 1 | codecov: 2 | max_report_age: off 3 | notify: 4 | wait_for_ci: false 5 | require_ci_to_pass: false 6 | comment: 7 | require_base: false 8 | require_head: false 9 | coverage: 10 | status: 11 | project: 12 | default: 13 | threshold: 0.07 14 | fixes: 15 | - '/home/actions-runner/_work/zlib-ng/zlib-ng::' 16 | - '/home/actions-runner/_work/zlib-ng/zlib-ng/build/::' 17 | ignore: 18 | - usr/include/.* 19 | - /usr/include/.* 20 | - /build/usr/include/.* 21 | - usr/lib/.* 22 | - /usr/lib/.* 23 | - /build/usr/lib/.* 24 | - usr/lib64/.* 25 | - /usr/lib64/.* 26 | - /build/usr/lib64/.* 27 | - _deps/**/* 28 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/.shellcheckrc: -------------------------------------------------------------------------------- 1 | disable=SC2140,SC2086,SC2046,SC2015,SC1097,SC1035,SC1036,SC1007,SC2154,SC2155,SC2000,SC2034,SC2016,SC1091,SC1090,SC2212,SC2143,SC2129,SC2102,SC2069,SC1041,SC1042,SC1044,SC1046,SC1119,SC1110,SC1111,SC1112,SC1102,SC1105,SC1101,SC1004,SC1003,SC1012,SC2068,SC2065,SC2064,SC2063,SC2059,SC2053,SC2048,SC2044,SC2032,SC2031,SC2030,SC2029,SC2025,SC2024,SC2022,SC2018,SC2019,SC2017,SC2014,SC2013,SC2012,SC2009,SC2001,SC2098,SC2096,SC2094,SC2091,SC2092,SC2088,SC2087,SC2076,SC2072,SC2071,SC2223,SC2221,SC2222,SC2217,SC2207,SC2206,SC2205,SC2190,SC2188,SC2187,SC2185,SC2179,SC2178,SC2174,SC2168,SC2167,SC2163,SC2161,SC2160,SC2153,SC2150,SC2148,SC2147,SC2146,SC2142,SC2139,SC2126,SC2123,SC2120,SC2119,SC2117,SC2114,SC1117,SC2164,SC1083,SC2004,SC2125,SC2128,SC2011,SC1008,SC1019,SC2093,SC1132,SC1129,SC2236,SC2237,SC2231,SC2230,SC2229,SC2106,SC2102,SC2243,SC2244,SC2245,SC2247,SC2248,SC2249,SC2250,SC2251,SC2252,SC2181 2 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/LICENSE.md: -------------------------------------------------------------------------------- 1 | (C) 1995-2024 Jean-loup Gailly and Mark Adler 2 | 3 | This software is provided 'as-is', without any express or implied 4 | warranty. In no event will the authors be held liable for any damages 5 | arising from the use of this software. 6 | 7 | Permission is granted to anyone to use this software for any purpose, 8 | including commercial applications, and to alter it and redistribute it 9 | freely, subject to the following restrictions: 10 | 11 | 1. The origin of this software must not be misrepresented; you must not 12 | claim that you wrote the original software. If you use this software 13 | in a product, an acknowledgment in the product documentation would be 14 | appreciated but is not required. 15 | 16 | 2. Altered source versions must be plainly marked as such, and must not be 17 | misrepresented as being the original software. 18 | 19 | 3. This notice may not be removed or altered from any source distribution. 20 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/arm/acle_intrins.h: -------------------------------------------------------------------------------- 1 | #ifndef ARM_ACLE_INTRINS_H 2 | #define ARM_ACLE_INTRINS_H 3 | 4 | #include 5 | #ifdef _MSC_VER 6 | # include 7 | #elif defined(HAVE_ARM_ACLE_H) 8 | # include 9 | #endif 10 | 11 | #ifdef ARM_ACLE 12 | #if defined(__aarch64__) 13 | # define Z_TARGET_CRC Z_TARGET("+crc") 14 | #else 15 | # define Z_TARGET_CRC 16 | #endif 17 | #endif 18 | 19 | #ifdef ARM_SIMD 20 | #ifdef _MSC_VER 21 | typedef uint32_t uint16x2_t; 22 | 23 | #define __uqsub16 _arm_uqsub16 24 | #elif !defined(ARM_SIMD_INTRIN) 25 | typedef uint32_t uint16x2_t; 26 | 27 | static inline uint16x2_t __uqsub16(uint16x2_t __a, uint16x2_t __b) { 28 | uint16x2_t __c; 29 | __asm__ __volatile__("uqsub16 %0, %1, %2" : "=r" (__c) : "r"(__a), "r"(__b)); 30 | return __c; 31 | } 32 | #endif 33 | #endif 34 | 35 | #endif // include guard ARM_ACLE_INTRINS_H 36 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/arm/arm_features.h: -------------------------------------------------------------------------------- 1 | /* arm_features.h -- check for ARM features. 2 | * For conditions of distribution and use, see copyright notice in zlib.h 3 | */ 4 | 5 | #ifndef ARM_FEATURES_H_ 6 | #define ARM_FEATURES_H_ 7 | 8 | struct arm_cpu_features { 9 | int has_simd; 10 | int has_neon; 11 | int has_crc32; 12 | }; 13 | 14 | void Z_INTERNAL arm_check_features(struct arm_cpu_features *features); 15 | 16 | #endif /* ARM_FEATURES_H_ */ 17 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/arm/slide_hash_armv6.c: -------------------------------------------------------------------------------- 1 | /* slide_hash_armv6.c -- Optimized hash table shifting for ARMv6 with support for SIMD instructions 2 | * Copyright (C) 2023 Cameron Cawley 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #if defined(ARM_SIMD) 7 | #include "acle_intrins.h" 8 | #include "zbuild.h" 9 | #include "deflate.h" 10 | 11 | /* SIMD version of hash_chain rebase */ 12 | static inline void slide_hash_chain(Pos *table, uint32_t entries, uint16_t wsize) { 13 | Z_REGISTER uint16x2_t v; 14 | uint16x2_t p0, p1, p2, p3; 15 | Z_REGISTER size_t n; 16 | 17 | size_t size = entries*sizeof(table[0]); 18 | Assert((size % (sizeof(uint16x2_t) * 4) == 0), "hash table size err"); 19 | 20 | Assert(sizeof(Pos) == 2, "Wrong Pos size"); 21 | v = wsize | (wsize << 16); 22 | 23 | n = size / (sizeof(uint16x2_t) * 4); 24 | do { 25 | p0 = *((const uint16x2_t *)(table)); 26 | p1 = *((const uint16x2_t *)(table+2)); 27 | p2 = *((const uint16x2_t *)(table+4)); 28 | p3 = *((const uint16x2_t *)(table+6)); 29 | p0 = __uqsub16(p0, v); 30 | p1 = __uqsub16(p1, v); 31 | p2 = __uqsub16(p2, v); 32 | p3 = __uqsub16(p3, v); 33 | *((uint16x2_t *)(table)) = p0; 34 | *((uint16x2_t *)(table+2)) = p1; 35 | *((uint16x2_t *)(table+4)) = p2; 36 | *((uint16x2_t *)(table+6)) = p3; 37 | table += 8; 38 | } while (--n); 39 | } 40 | 41 | Z_INTERNAL void slide_hash_armv6(deflate_state *s) { 42 | unsigned int wsize = s->w_size; 43 | 44 | slide_hash_chain(s->head, HASH_SIZE, wsize); 45 | slide_hash_chain(s->prev, wsize, wsize); 46 | } 47 | #endif 48 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/arm/slide_hash_neon.c: -------------------------------------------------------------------------------- 1 | /* slide_hash_neon.c -- Optimized hash table shifting for ARM with support for NEON instructions 2 | * Copyright (C) 2017-2020 Mika T. Lindqvist 3 | * 4 | * Authors: 5 | * Mika T. Lindqvist 6 | * Jun He 7 | * 8 | * For conditions of distribution and use, see copyright notice in zlib.h 9 | */ 10 | 11 | #ifdef ARM_NEON 12 | #include "neon_intrins.h" 13 | #include "zbuild.h" 14 | #include "deflate.h" 15 | 16 | /* SIMD version of hash_chain rebase */ 17 | static inline void slide_hash_chain(Pos *table, uint32_t entries, uint16_t wsize) { 18 | Z_REGISTER uint16x8_t v; 19 | uint16x8x4_t p0, p1; 20 | Z_REGISTER size_t n; 21 | 22 | size_t size = entries*sizeof(table[0]); 23 | Assert((size % sizeof(uint16x8_t) * 8 == 0), "hash table size err"); 24 | 25 | Assert(sizeof(Pos) == 2, "Wrong Pos size"); 26 | v = vdupq_n_u16(wsize); 27 | 28 | n = size / (sizeof(uint16x8_t) * 8); 29 | do { 30 | p0 = vld1q_u16_x4(table); 31 | p1 = vld1q_u16_x4(table+32); 32 | vqsubq_u16_x4_x1(p0, p0, v); 33 | vqsubq_u16_x4_x1(p1, p1, v); 34 | vst1q_u16_x4(table, p0); 35 | vst1q_u16_x4(table+32, p1); 36 | table += 64; 37 | } while (--n); 38 | } 39 | 40 | Z_INTERNAL void slide_hash_neon(deflate_state *s) { 41 | unsigned int wsize = s->w_size; 42 | 43 | slide_hash_chain(s->head, HASH_SIZE, wsize); 44 | slide_hash_chain(s->prev, wsize, wsize); 45 | } 46 | #endif 47 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/generic/adler32_fold_c.c: -------------------------------------------------------------------------------- 1 | /* adler32_fold.c -- adler32 folding interface 2 | * Copyright (C) 2022 Adam Stylinski 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "zbuild.h" 7 | #include "functable.h" 8 | 9 | #include 10 | 11 | Z_INTERNAL uint32_t adler32_fold_copy_c(uint32_t adler, uint8_t *dst, const uint8_t *src, size_t len) { 12 | adler = FUNCTABLE_CALL(adler32)(adler, src, len); 13 | memcpy(dst, src, len); 14 | return adler; 15 | } 16 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/generic/chunkset_c.c: -------------------------------------------------------------------------------- 1 | /* chunkset.c -- inline functions to copy small data chunks. 2 | * For conditions of distribution and use, see copyright notice in zlib.h 3 | */ 4 | 5 | #include "zbuild.h" 6 | 7 | typedef uint64_t chunk_t; 8 | 9 | #define CHUNK_SIZE 8 10 | 11 | #define HAVE_CHUNKMEMSET_4 12 | #define HAVE_CHUNKMEMSET_8 13 | 14 | static inline void chunkmemset_4(uint8_t *from, chunk_t *chunk) { 15 | uint8_t *dest = (uint8_t *)chunk; 16 | memcpy(dest, from, sizeof(uint32_t)); 17 | memcpy(dest+4, from, sizeof(uint32_t)); 18 | } 19 | 20 | static inline void chunkmemset_8(uint8_t *from, chunk_t *chunk) { 21 | memcpy(chunk, from, sizeof(uint64_t)); 22 | } 23 | 24 | static inline void loadchunk(uint8_t const *s, chunk_t *chunk) { 25 | memcpy(chunk, (uint8_t *)s, sizeof(uint64_t)); 26 | } 27 | 28 | static inline void storechunk(uint8_t *out, chunk_t *chunk) { 29 | memcpy(out, chunk, sizeof(uint64_t)); 30 | } 31 | 32 | #define CHUNKSIZE chunksize_c 33 | #define CHUNKCOPY chunkcopy_c 34 | #define CHUNKUNROLL chunkunroll_c 35 | #define CHUNKMEMSET chunkmemset_c 36 | #define CHUNKMEMSET_SAFE chunkmemset_safe_c 37 | 38 | #include "chunkset_tpl.h" 39 | 40 | #define INFLATE_FAST inflate_fast_c 41 | 42 | #include "inffast_tpl.h" 43 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/generic/crc32_fold_c.c: -------------------------------------------------------------------------------- 1 | /* crc32_fold.c -- crc32 folding interface 2 | * Copyright (C) 2021 Nathan Moinvaziri 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | #include "zbuild.h" 6 | #include "zutil.h" 7 | #include "functable.h" 8 | #include "crc32.h" 9 | 10 | Z_INTERNAL uint32_t crc32_fold_reset_c(crc32_fold *crc) { 11 | crc->value = CRC32_INITIAL_VALUE; 12 | return crc->value; 13 | } 14 | 15 | Z_INTERNAL void crc32_fold_copy_c(crc32_fold *crc, uint8_t *dst, const uint8_t *src, size_t len) { 16 | crc->value = FUNCTABLE_CALL(crc32)(crc->value, src, len); 17 | memcpy(dst, src, len); 18 | } 19 | 20 | Z_INTERNAL void crc32_fold_c(crc32_fold *crc, const uint8_t *src, size_t len, uint32_t init_crc) { 21 | /* Note: while this is basically the same thing as the vanilla CRC function, we still need 22 | * a functable entry for it so that we can generically dispatch to this function with the 23 | * same arguments for the versions that _do_ do a folding CRC but we don't want a copy. The 24 | * init_crc is an unused argument in this context */ 25 | Z_UNUSED(init_crc); 26 | crc->value = FUNCTABLE_CALL(crc32)(crc->value, src, len); 27 | } 28 | 29 | Z_INTERNAL uint32_t crc32_fold_final_c(crc32_fold *crc) { 30 | return crc->value; 31 | } 32 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/power/chunkset_power8.c: -------------------------------------------------------------------------------- 1 | /* chunkset_power8.c -- VSX inline functions to copy small data chunks. 2 | * For conditions of distribution and use, see copyright notice in zlib.h 3 | */ 4 | 5 | #ifdef POWER8_VSX 6 | #include 7 | #include "zbuild.h" 8 | 9 | typedef vector unsigned char chunk_t; 10 | 11 | #define CHUNK_SIZE 16 12 | 13 | #define HAVE_CHUNKMEMSET_2 14 | #define HAVE_CHUNKMEMSET_4 15 | #define HAVE_CHUNKMEMSET_8 16 | 17 | static inline void chunkmemset_2(uint8_t *from, chunk_t *chunk) { 18 | uint16_t tmp; 19 | memcpy(&tmp, from, sizeof(tmp)); 20 | *chunk = (vector unsigned char)vec_splats(tmp); 21 | } 22 | 23 | static inline void chunkmemset_4(uint8_t *from, chunk_t *chunk) { 24 | uint32_t tmp; 25 | memcpy(&tmp, from, sizeof(tmp)); 26 | *chunk = (vector unsigned char)vec_splats(tmp); 27 | } 28 | 29 | static inline void chunkmemset_8(uint8_t *from, chunk_t *chunk) { 30 | uint64_t tmp; 31 | memcpy(&tmp, from, sizeof(tmp)); 32 | *chunk = (vector unsigned char)vec_splats((unsigned long long)tmp); 33 | } 34 | 35 | static inline void loadchunk(uint8_t const *s, chunk_t *chunk) { 36 | *chunk = vec_xl(0, s); 37 | } 38 | 39 | static inline void storechunk(uint8_t *out, chunk_t *chunk) { 40 | vec_xst(*chunk, 0, out); 41 | } 42 | 43 | #define CHUNKSIZE chunksize_power8 44 | #define CHUNKCOPY chunkcopy_power8 45 | #define CHUNKUNROLL chunkunroll_power8 46 | #define CHUNKMEMSET chunkmemset_power8 47 | #define CHUNKMEMSET_SAFE chunkmemset_safe_power8 48 | 49 | #include "chunkset_tpl.h" 50 | 51 | #define INFLATE_FAST inflate_fast_power8 52 | 53 | #include "inffast_tpl.h" 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/power/fallback_builtins.h: -------------------------------------------------------------------------------- 1 | /* Helper functions to work around issues with clang builtins 2 | * Copyright (C) 2021 IBM Corporation 3 | * 4 | * Authors: 5 | * Daniel Black 6 | * Rogerio Alves 7 | * Tulio Magno Quites Machado Filho 8 | * 9 | * For conditions of distribution and use, see copyright notice in zlib.h 10 | */ 11 | 12 | #ifndef POWER_BUILTINS_H 13 | #define POWER_BUILTINS_H 14 | 15 | /* 16 | * These stubs fix clang incompatibilities with GCC builtins. 17 | */ 18 | 19 | #ifndef __builtin_crypto_vpmsumw 20 | #define __builtin_crypto_vpmsumw __builtin_crypto_vpmsumb 21 | #endif 22 | #ifndef __builtin_crypto_vpmsumd 23 | #define __builtin_crypto_vpmsumd __builtin_crypto_vpmsumb 24 | #endif 25 | 26 | static inline __vector unsigned long long __attribute__((overloadable)) 27 | vec_ld(int __a, const __vector unsigned long long* __b) { 28 | return (__vector unsigned long long)__builtin_altivec_lvx(__a, __b); 29 | } 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/power/power_features.c: -------------------------------------------------------------------------------- 1 | /* power_features.c - POWER feature check 2 | * Copyright (C) 2020 Matheus Castanho , IBM 3 | * Copyright (C) 2021-2024 Mika T. Lindqvist 4 | * For conditions of distribution and use, see copyright notice in zlib.h 5 | */ 6 | 7 | #ifdef HAVE_SYS_AUXV_H 8 | # include 9 | #endif 10 | #ifdef POWER_NEED_AUXVEC_H 11 | # include 12 | #endif 13 | #ifdef __FreeBSD__ 14 | # include 15 | #endif 16 | #include "zbuild.h" 17 | #include "power_features.h" 18 | 19 | void Z_INTERNAL power_check_features(struct power_cpu_features *features) { 20 | #ifdef PPC_FEATURES 21 | unsigned long hwcap; 22 | #ifdef __FreeBSD__ 23 | elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); 24 | #else 25 | hwcap = getauxval(AT_HWCAP); 26 | #endif 27 | 28 | if (hwcap & PPC_FEATURE_HAS_ALTIVEC) 29 | features->has_altivec = 1; 30 | #endif 31 | 32 | #ifdef POWER_FEATURES 33 | unsigned long hwcap2; 34 | #ifdef __FreeBSD__ 35 | elf_aux_info(AT_HWCAP2, &hwcap2, sizeof(hwcap2)); 36 | #else 37 | hwcap2 = getauxval(AT_HWCAP2); 38 | #endif 39 | 40 | #ifdef POWER8_VSX 41 | if (hwcap2 & PPC_FEATURE2_ARCH_2_07) 42 | features->has_arch_2_07 = 1; 43 | #endif 44 | #ifdef POWER9 45 | if (hwcap2 & PPC_FEATURE2_ARCH_3_00) 46 | features->has_arch_3_00 = 1; 47 | #endif 48 | #endif 49 | } 50 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/power/power_features.h: -------------------------------------------------------------------------------- 1 | /* power_features.h -- check for POWER CPU features 2 | * Copyright (C) 2020 Matheus Castanho , IBM 3 | * Copyright (C) 2021 Mika T. Lindqvist 4 | * For conditions of distribution and use, see copyright notice in zlib.h 5 | */ 6 | 7 | #ifndef POWER_FEATURES_H_ 8 | #define POWER_FEATURES_H_ 9 | 10 | struct power_cpu_features { 11 | int has_altivec; 12 | int has_arch_2_07; 13 | int has_arch_3_00; 14 | }; 15 | 16 | void Z_INTERNAL power_check_features(struct power_cpu_features *features); 17 | 18 | #endif /* POWER_FEATURES_H_ */ 19 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/power/slide_hash_power8.c: -------------------------------------------------------------------------------- 1 | /* Optimized slide_hash for POWER processors 2 | * Copyright (C) 2019-2020 IBM Corporation 3 | * Author: Matheus Castanho 4 | * For conditions of distribution and use, see copyright notice in zlib.h 5 | */ 6 | 7 | #ifdef POWER8_VSX 8 | 9 | #define SLIDE_PPC slide_hash_power8 10 | #include "slide_ppc_tpl.h" 11 | 12 | #endif /* POWER8_VSX */ 13 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/power/slide_hash_vmx.c: -------------------------------------------------------------------------------- 1 | /* Optimized slide_hash for PowerPC processors with VMX instructions 2 | * Copyright (C) 2017-2021 Mika T. Lindqvist 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | #ifdef PPC_VMX 6 | 7 | #define SLIDE_PPC slide_hash_vmx 8 | #include "slide_ppc_tpl.h" 9 | 10 | #endif /* PPC_VMX */ 11 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/power/slide_ppc_tpl.h: -------------------------------------------------------------------------------- 1 | /* Optimized slide_hash for PowerPC processors 2 | * Copyright (C) 2017-2021 Mika T. Lindqvist 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include 7 | #include "zbuild.h" 8 | #include "deflate.h" 9 | 10 | static inline void slide_hash_chain(Pos *table, uint32_t entries, uint16_t wsize) { 11 | const vector unsigned short vmx_wsize = vec_splats(wsize); 12 | Pos *p = table; 13 | 14 | do { 15 | vector unsigned short value, result; 16 | 17 | value = vec_ld(0, p); 18 | result = vec_subs(value, vmx_wsize); 19 | vec_st(result, 0, p); 20 | 21 | p += 8; 22 | entries -= 8; 23 | } while (entries > 0); 24 | } 25 | 26 | void Z_INTERNAL SLIDE_PPC(deflate_state *s) { 27 | uint16_t wsize = s->w_size; 28 | 29 | slide_hash_chain(s->head, HASH_SIZE, wsize); 30 | slide_hash_chain(s->prev, wsize, wsize); 31 | } 32 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/riscv/compare256_rvv.c: -------------------------------------------------------------------------------- 1 | /* compare256_rvv.c - RVV version of compare256 2 | * Copyright (C) 2023 SiFive, Inc. All rights reserved. 3 | * Contributed by Alex Chiang 4 | * For conditions of distribution and use, see copyright notice in zlib.h 5 | */ 6 | 7 | #ifdef RISCV_RVV 8 | 9 | #include "zbuild.h" 10 | #include "zutil_p.h" 11 | #include "deflate.h" 12 | #include "fallback_builtins.h" 13 | 14 | #include 15 | 16 | static inline uint32_t compare256_rvv_static(const uint8_t *src0, const uint8_t *src1) { 17 | uint32_t len = 0; 18 | size_t vl; 19 | long found_diff; 20 | do { 21 | vl = __riscv_vsetvl_e8m4(256 - len); 22 | vuint8m4_t v_src0 = __riscv_vle8_v_u8m4(src0, vl); 23 | vuint8m4_t v_src1 = __riscv_vle8_v_u8m4(src1, vl); 24 | vbool2_t v_mask = __riscv_vmsne_vv_u8m4_b2(v_src0, v_src1, vl); 25 | found_diff = __riscv_vfirst_m_b2(v_mask, vl); 26 | if (found_diff >= 0) 27 | return len + (uint32_t)found_diff; 28 | src0 += vl, src1 += vl, len += vl; 29 | } while (len < 256); 30 | 31 | return 256; 32 | } 33 | 34 | Z_INTERNAL uint32_t compare256_rvv(const uint8_t *src0, const uint8_t *src1) { 35 | return compare256_rvv_static(src0, src1); 36 | } 37 | 38 | #define LONGEST_MATCH longest_match_rvv 39 | #define COMPARE256 compare256_rvv_static 40 | 41 | #include "match_tpl.h" 42 | 43 | #define LONGEST_MATCH_SLOW 44 | #define LONGEST_MATCH longest_match_slow_rvv 45 | #define COMPARE256 compare256_rvv_static 46 | 47 | #include "match_tpl.h" 48 | 49 | #endif // RISCV_RVV 50 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/riscv/riscv_features.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #if defined(__linux__) && defined(HAVE_SYS_AUXV_H) 7 | # include 8 | #endif 9 | 10 | #include "zbuild.h" 11 | #include "riscv_features.h" 12 | 13 | #define ISA_V_HWCAP (1 << ('v' - 'a')) 14 | 15 | int Z_INTERNAL is_kernel_version_greater_or_equal_to_6_5() { 16 | struct utsname buffer; 17 | uname(&buffer); 18 | 19 | int major, minor; 20 | if (sscanf(buffer.release, "%d.%d", &major, &minor) != 2) { 21 | // Something bad with uname() 22 | return 0; 23 | } 24 | 25 | if (major > 6 || major == 6 && minor >= 5) 26 | return 1; 27 | return 0; 28 | } 29 | 30 | void Z_INTERNAL riscv_check_features_compile_time(struct riscv_cpu_features *features) { 31 | #if defined(__riscv_v) && defined(__linux__) 32 | features->has_rvv = 1; 33 | #else 34 | features->has_rvv = 0; 35 | #endif 36 | } 37 | 38 | void Z_INTERNAL riscv_check_features_runtime(struct riscv_cpu_features *features) { 39 | #if defined(__linux__) && defined(HAVE_SYS_AUXV_H) 40 | unsigned long hw_cap = getauxval(AT_HWCAP); 41 | #else 42 | unsigned long hw_cap = 0; 43 | #endif 44 | features->has_rvv = hw_cap & ISA_V_HWCAP; 45 | } 46 | 47 | void Z_INTERNAL riscv_check_features(struct riscv_cpu_features *features) { 48 | if (is_kernel_version_greater_or_equal_to_6_5()) 49 | riscv_check_features_runtime(features); 50 | else 51 | riscv_check_features_compile_time(features); 52 | } 53 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/riscv/riscv_features.h: -------------------------------------------------------------------------------- 1 | /* riscv_features.h -- check for riscv features. 2 | * 3 | * Copyright (C) 2023 SiFive, Inc. All rights reserved. 4 | * Contributed by Alex Chiang 5 | * 6 | * For conditions of distribution and use, see copyright notice in zlib.h 7 | */ 8 | 9 | #ifndef RISCV_FEATURES_H_ 10 | #define RISCV_FEATURES_H_ 11 | 12 | struct riscv_cpu_features { 13 | int has_rvv; 14 | }; 15 | 16 | void Z_INTERNAL riscv_check_features(struct riscv_cpu_features *features); 17 | 18 | #endif /* RISCV_FEATURES_H_ */ 19 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/riscv/slide_hash_rvv.c: -------------------------------------------------------------------------------- 1 | /* slide_hash_rvv.c - RVV version of slide_hash 2 | * Copyright (C) 2023 SiFive, Inc. All rights reserved. 3 | * Contributed by Alex Chiang 4 | * For conditions of distribution and use, see copyright notice in zlib.h 5 | */ 6 | 7 | #ifdef RISCV_RVV 8 | 9 | #include 10 | 11 | #include "zbuild.h" 12 | #include "deflate.h" 13 | 14 | static inline void slide_hash_chain(Pos *table, uint32_t entries, uint16_t wsize) { 15 | size_t vl; 16 | while (entries > 0) { 17 | vl = __riscv_vsetvl_e16m4(entries); 18 | vuint16m4_t v_tab = __riscv_vle16_v_u16m4(table, vl); 19 | vuint16m4_t v_diff = __riscv_vssubu_vx_u16m4(v_tab, wsize, vl); 20 | __riscv_vse16_v_u16m4(table, v_diff, vl); 21 | table += vl, entries -= vl; 22 | } 23 | } 24 | 25 | Z_INTERNAL void slide_hash_rvv(deflate_state *s) { 26 | uint16_t wsize = (uint16_t)s->w_size; 27 | 28 | slide_hash_chain(s->head, HASH_SIZE, wsize); 29 | slide_hash_chain(s->prev, wsize, wsize); 30 | } 31 | 32 | #endif // RISCV_RVV 33 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/s390/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile for zlib-ng 2 | # Copyright (C) 1995-2013 Jean-loup Gailly, Mark Adler 3 | # For conditions of distribution and use, see copyright notice in zlib.h 4 | 5 | CC= 6 | CFLAGS= 7 | SFLAGS= 8 | INCLUDES= 9 | SUFFIX= 10 | VGFMAFLAG= 11 | NOLTOFLAG= 12 | 13 | SRCDIR=. 14 | SRCTOP=../.. 15 | TOPDIR=$(SRCTOP) 16 | 17 | s390_features.o: 18 | $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/s390_features.c 19 | 20 | s390_features.lo: 21 | $(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/s390_features.c 22 | 23 | dfltcc_deflate.o: 24 | $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/dfltcc_deflate.c 25 | 26 | dfltcc_deflate.lo: 27 | $(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/dfltcc_deflate.c 28 | 29 | dfltcc_inflate.o: 30 | $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/dfltcc_inflate.c 31 | 32 | dfltcc_inflate.lo: 33 | $(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/dfltcc_inflate.c 34 | 35 | crc32-vx.o: 36 | $(CC) $(CFLAGS) $(VGFMAFLAG) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/crc32-vx.c 37 | 38 | crc32-vx.lo: 39 | $(CC) $(SFLAGS) $(VGFMAFLAG) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/crc32-vx.c 40 | 41 | mostlyclean: clean 42 | clean: 43 | rm -f *.o *.lo *~ 44 | rm -rf objs 45 | rm -f *.gcda *.gcno *.gcov 46 | 47 | distclean: clean 48 | rm -f Makefile 49 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/s390/s390_features.c: -------------------------------------------------------------------------------- 1 | #include "zbuild.h" 2 | #include "s390_features.h" 3 | 4 | #ifdef HAVE_SYS_AUXV_H 5 | # include 6 | #endif 7 | 8 | #ifndef HWCAP_S390_VXRS 9 | #define HWCAP_S390_VXRS HWCAP_S390_VX 10 | #endif 11 | 12 | void Z_INTERNAL s390_check_features(struct s390_cpu_features *features) { 13 | features->has_vx = getauxval(AT_HWCAP) & HWCAP_S390_VXRS; 14 | } 15 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/s390/s390_features.h: -------------------------------------------------------------------------------- 1 | /* s390_features.h -- check for s390 features. 2 | * For conditions of distribution and use, see copyright notice in zlib.h 3 | */ 4 | 5 | #ifndef S390_FEATURES_H_ 6 | #define S390_FEATURES_H_ 7 | 8 | struct s390_cpu_features { 9 | int has_vx; 10 | }; 11 | 12 | void Z_INTERNAL s390_check_features(struct s390_cpu_features *features); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/s390/s390_functions.h: -------------------------------------------------------------------------------- 1 | /* s390_functions.h -- s390 implementations for arch-specific functions. 2 | * For conditions of distribution and use, see copyright notice in zlib.h 3 | */ 4 | 5 | #ifndef S390_FUNCTIONS_H_ 6 | #define S390_FUNCTIONS_H_ 7 | 8 | #ifdef S390_CRC32_VX 9 | uint32_t crc32_s390_vx(uint32_t crc, const uint8_t *buf, size_t len); 10 | #endif 11 | 12 | 13 | #ifdef DISABLE_RUNTIME_CPU_DETECTION 14 | # if defined(S390_CRC32_VX) && defined(__zarch__) && __ARCH__ >= 11 && defined(__VX__) 15 | # undef native_crc32 16 | # define native_crc32 = crc32_s390_vx 17 | # endif 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/s390/self-hosted-builder/actions-runner.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Podman container: Gaplib Github Actions Runner 3 | Wants=network-online.target 4 | After=network-online.target 5 | StartLimitIntervalSec=1 6 | RequiresMountsFor=/run/user/1001/containers 7 | 8 | [Service] 9 | Environment=PODMAN_SYSTEMD_UNIT=%n 10 | Restart=always 11 | TimeoutStopSec=61 12 | ExecStart=/usr/bin/podman start gaplib-actions-runner 13 | ExecStop=/usr/bin/podman stop -t 1 gaplib-actions-runner 14 | ExecStopPost=/usr/bin/podman stop -t 1 gaplib-actions-runner 15 | Type=forking 16 | 17 | [Install] 18 | WantedBy=default.target 19 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/s390/self-hosted-builder/fs/usr/bin/actions-runner: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 4 | # Ephemeral runner startup script. 5 | # 6 | # Expects the following environment variables: 7 | # 8 | # - repo=/ 9 | # - access_token= 10 | # 11 | 12 | set -e -u 13 | 14 | # Check the cached registration token. 15 | token_file=registration-token.json 16 | set +e 17 | expires_at=$(jq --raw-output .expires_at "$token_file" 2>/dev/null) 18 | status=$? 19 | set -e 20 | if [[ $status -ne 0 || $(date +%s) -ge $(date -d "$expires_at" +%s) ]]; then 21 | # Refresh the cached registration token. 22 | curl \ 23 | -X POST \ 24 | -H "Accept: application/vnd.github.v3+json" \ 25 | -H "Authorization: token $access_token" \ 26 | "https://api.github.com/repos/$repo/actions/runners/registration-token" \ 27 | -o "$token_file" 28 | fi 29 | 30 | # (Re-)register the runner. 31 | registration_token=$(jq --raw-output .token "$token_file") 32 | ./config.sh remove --token "$registration_token" || true 33 | ./config.sh \ 34 | --url "https://github.com/$repo" \ 35 | --token "$registration_token" \ 36 | --labels z15 \ 37 | --ephemeral 38 | 39 | # Run one job. 40 | ./run.sh 41 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/s390/self-hosted-builder/fs/usr/bin/entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 4 | # Container entrypoint that waits for all spawned processes. 5 | # 6 | 7 | set -e -u 8 | 9 | # Create a FIFO and start reading from its read end. 10 | tempdir=$(mktemp -d "/tmp/done.XXXXXXXXXX") 11 | trap 'rm -r "$tempdir"' EXIT 12 | done="$tempdir/pipe" 13 | mkfifo "$done" 14 | cat "$done" & waiter=$! 15 | 16 | # Start the workload. Its descendants will inherit the FIFO's write end. 17 | status=0 18 | if [ "$#" -eq 0 ]; then 19 | bash 9>"$done" || status=$? 20 | else 21 | "$@" 9>"$done" || status=$? 22 | fi 23 | 24 | # When the workload and all of its descendants exit, the FIFO's write end will 25 | # be closed and `cat "$done"` will exit. Wait until it happens. This is needed 26 | # in order to handle SelfUpdater, which the workload may start in background 27 | # before exiting. 28 | wait "$waiter" 29 | 30 | exit "$status" 31 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/s390/self-hosted-builder/runner-global.json: -------------------------------------------------------------------------------- 1 | { 2 | "sdk": { 3 | "version": "6.0.421" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/x86/adler32_avx2_p.h: -------------------------------------------------------------------------------- 1 | /* adler32_avx2_p.h -- adler32 avx2 utility functions 2 | * Copyright (C) 2022 Adam Stylinski 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #ifndef ADLER32_AVX2_P_H_ 7 | #define ADLER32_AVX2_P_H_ 8 | 9 | #if defined(X86_AVX2) || defined(X86_AVX512VNNI) 10 | 11 | /* 32 bit horizontal sum, adapted from Agner Fog's vector library. */ 12 | static inline uint32_t hsum256(__m256i x) { 13 | __m128i sum1 = _mm_add_epi32(_mm256_extracti128_si256(x, 1), 14 | _mm256_castsi256_si128(x)); 15 | __m128i sum2 = _mm_add_epi32(sum1, _mm_unpackhi_epi64(sum1, sum1)); 16 | __m128i sum3 = _mm_add_epi32(sum2, _mm_shuffle_epi32(sum2, 1)); 17 | return (uint32_t)_mm_cvtsi128_si32(sum3); 18 | } 19 | 20 | static inline uint32_t partial_hsum256(__m256i x) { 21 | /* We need a permutation vector to extract every other integer. The 22 | * rest are going to be zeros */ 23 | const __m256i perm_vec = _mm256_setr_epi32(0, 2, 4, 6, 1, 1, 1, 1); 24 | __m256i non_zero = _mm256_permutevar8x32_epi32(x, perm_vec); 25 | __m128i non_zero_sse = _mm256_castsi256_si128(non_zero); 26 | __m128i sum2 = _mm_add_epi32(non_zero_sse,_mm_unpackhi_epi64(non_zero_sse, non_zero_sse)); 27 | __m128i sum3 = _mm_add_epi32(sum2, _mm_shuffle_epi32(sum2, 1)); 28 | return (uint32_t)_mm_cvtsi128_si32(sum3); 29 | } 30 | #endif 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/x86/adler32_ssse3_p.h: -------------------------------------------------------------------------------- 1 | /* adler32_ssse3_p.h -- adler32 ssse3 utility functions 2 | * Copyright (C) 2022 Adam Stylinski 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #ifndef ADLER32_SSSE3_P_H_ 7 | #define ADLER32_SSSE3_P_H_ 8 | 9 | #ifdef X86_SSSE3 10 | 11 | #include 12 | #include 13 | 14 | static inline uint32_t partial_hsum(__m128i x) { 15 | __m128i second_int = _mm_srli_si128(x, 8); 16 | __m128i sum = _mm_add_epi32(x, second_int); 17 | return _mm_cvtsi128_si32(sum); 18 | } 19 | 20 | static inline uint32_t hsum(__m128i x) { 21 | __m128i sum1 = _mm_unpackhi_epi64(x, x); 22 | __m128i sum2 = _mm_add_epi32(x, sum1); 23 | __m128i sum3 = _mm_shuffle_epi32(sum2, 0x01); 24 | __m128i sum4 = _mm_add_epi32(sum2, sum3); 25 | return _mm_cvtsi128_si32(sum4); 26 | } 27 | #endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/x86/chunkset_sse2.c: -------------------------------------------------------------------------------- 1 | /* chunkset_sse2.c -- SSE2 inline functions to copy small data chunks. 2 | * For conditions of distribution and use, see copyright notice in zlib.h 3 | */ 4 | 5 | #include "zbuild.h" 6 | 7 | #ifdef X86_SSE2 8 | #include 9 | 10 | typedef __m128i chunk_t; 11 | 12 | #define CHUNK_SIZE 16 13 | 14 | #define HAVE_CHUNKMEMSET_2 15 | #define HAVE_CHUNKMEMSET_4 16 | #define HAVE_CHUNKMEMSET_8 17 | 18 | static inline void chunkmemset_2(uint8_t *from, chunk_t *chunk) { 19 | int16_t tmp; 20 | memcpy(&tmp, from, sizeof(tmp)); 21 | *chunk = _mm_set1_epi16(tmp); 22 | } 23 | 24 | static inline void chunkmemset_4(uint8_t *from, chunk_t *chunk) { 25 | int32_t tmp; 26 | memcpy(&tmp, from, sizeof(tmp)); 27 | *chunk = _mm_set1_epi32(tmp); 28 | } 29 | 30 | static inline void chunkmemset_8(uint8_t *from, chunk_t *chunk) { 31 | int64_t tmp; 32 | memcpy(&tmp, from, sizeof(tmp)); 33 | *chunk = _mm_set1_epi64x(tmp); 34 | } 35 | 36 | static inline void loadchunk(uint8_t const *s, chunk_t *chunk) { 37 | *chunk = _mm_loadu_si128((__m128i *)s); 38 | } 39 | 40 | static inline void storechunk(uint8_t *out, chunk_t *chunk) { 41 | _mm_storeu_si128((__m128i *)out, *chunk); 42 | } 43 | 44 | #define CHUNKSIZE chunksize_sse2 45 | #define CHUNKCOPY chunkcopy_sse2 46 | #define CHUNKUNROLL chunkunroll_sse2 47 | #define CHUNKMEMSET chunkmemset_sse2 48 | #define CHUNKMEMSET_SAFE chunkmemset_safe_sse2 49 | 50 | #include "chunkset_tpl.h" 51 | 52 | #define INFLATE_FAST inflate_fast_sse2 53 | 54 | #include "inffast_tpl.h" 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/x86/crc32_pclmulqdq.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Compute the CRC32 using a parallelized folding approach with the PCLMULQDQ 3 | * instruction. 4 | * 5 | * A white paper describing this algorithm can be found at: 6 | * doc/crc-pclmulqdq.pdf 7 | * 8 | * Copyright (C) 2013 Intel Corporation. All rights reserved. 9 | * Copyright (C) 2016 Marian Beermann (support for initial value) 10 | * Authors: 11 | * Wajdi Feghali 12 | * Jim Guilford 13 | * Vinodh Gopal 14 | * Erdinc Ozturk 15 | * Jim Kukunas 16 | * 17 | * For conditions of distribution and use, see copyright notice in zlib.h 18 | */ 19 | 20 | #ifdef X86_PCLMULQDQ_CRC 21 | 22 | #define CRC32_FOLD_COPY crc32_fold_pclmulqdq_copy 23 | #define CRC32_FOLD crc32_fold_pclmulqdq 24 | #define CRC32_FOLD_RESET crc32_fold_pclmulqdq_reset 25 | #define CRC32_FOLD_FINAL crc32_fold_pclmulqdq_final 26 | #define CRC32 crc32_pclmulqdq 27 | 28 | #include "crc32_pclmulqdq_tpl.h" 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/x86/crc32_vpclmulqdq.c: -------------------------------------------------------------------------------- 1 | /* crc32_vpclmulqdq.c -- VPCMULQDQ-based CRC32 folding implementation. 2 | * Copyright Wangyang Guo (wangyang.guo@intel.com) 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #ifdef X86_VPCLMULQDQ_CRC 7 | 8 | #define X86_VPCLMULQDQ 9 | #define CRC32_FOLD_COPY crc32_fold_vpclmulqdq_copy 10 | #define CRC32_FOLD crc32_fold_vpclmulqdq 11 | #define CRC32_FOLD_RESET crc32_fold_vpclmulqdq_reset 12 | #define CRC32_FOLD_FINAL crc32_fold_vpclmulqdq_final 13 | #define CRC32 crc32_vpclmulqdq 14 | 15 | #include "crc32_pclmulqdq_tpl.h" 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/x86/slide_hash_avx2.c: -------------------------------------------------------------------------------- 1 | /* 2 | * AVX2 optimized hash slide, based on Intel's slide_sse implementation 3 | * 4 | * Copyright (C) 2017 Intel Corporation 5 | * Authors: 6 | * Arjan van de Ven 7 | * Jim Kukunas 8 | * Mika T. Lindqvist 9 | * 10 | * For conditions of distribution and use, see copyright notice in zlib.h 11 | */ 12 | #include "zbuild.h" 13 | #include "deflate.h" 14 | 15 | #include 16 | 17 | static inline void slide_hash_chain(Pos *table, uint32_t entries, const __m256i wsize) { 18 | table += entries; 19 | table -= 16; 20 | 21 | do { 22 | __m256i value, result; 23 | 24 | value = _mm256_loadu_si256((__m256i *)table); 25 | result = _mm256_subs_epu16(value, wsize); 26 | _mm256_storeu_si256((__m256i *)table, result); 27 | 28 | table -= 16; 29 | entries -= 16; 30 | } while (entries > 0); 31 | } 32 | 33 | Z_INTERNAL void slide_hash_avx2(deflate_state *s) { 34 | uint16_t wsize = (uint16_t)s->w_size; 35 | const __m256i ymm_wsize = _mm256_set1_epi16((short)wsize); 36 | 37 | slide_hash_chain(s->head, HASH_SIZE, ymm_wsize); 38 | slide_hash_chain(s->prev, wsize, ymm_wsize); 39 | } 40 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch/x86/x86_features.h: -------------------------------------------------------------------------------- 1 | /* x86_features.h -- check for CPU features 2 | * Copyright (C) 2013 Intel Corporation Jim Kukunas 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #ifndef X86_FEATURES_H_ 7 | #define X86_FEATURES_H_ 8 | 9 | struct x86_cpu_features { 10 | int has_avx2; 11 | int has_avx512f; 12 | int has_avx512dq; 13 | int has_avx512bw; 14 | int has_avx512vl; 15 | int has_avx512_common; // Enabled when AVX512(F,DQ,BW,VL) are all enabled. 16 | int has_avx512vnni; 17 | int has_sse2; 18 | int has_ssse3; 19 | int has_sse42; 20 | int has_pclmulqdq; 21 | int has_vpclmulqdq; 22 | int has_os_save_ymm; 23 | int has_os_save_zmm; 24 | }; 25 | 26 | void Z_INTERNAL x86_check_features(struct x86_cpu_features *features); 27 | 28 | #endif /* X86_FEATURES_H_ */ 29 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/arch_functions.h: -------------------------------------------------------------------------------- 1 | /* arch_functions.h -- Arch-specific function prototypes. 2 | * Copyright (C) 2017 Hans Kristian Rosbach 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #ifndef CPU_FUNCTIONS_H_ 7 | #define CPU_FUNCTIONS_H_ 8 | 9 | #include "zbuild.h" 10 | #include "zutil.h" 11 | #include "crc32.h" 12 | #include "deflate.h" 13 | #include "fallback_builtins.h" 14 | 15 | #include "arch/generic/generic_functions.h" 16 | 17 | #if defined(X86_FEATURES) 18 | # include "arch/x86/x86_functions.h" 19 | #elif defined(ARM_FEATURES) 20 | # include "arch/arm/arm_functions.h" 21 | #elif defined(PPC_FEATURES) || defined(POWER_FEATURES) 22 | # include "arch/power/power_functions.h" 23 | #elif defined(S390_FEATURES) 24 | # include "arch/s390/s390_functions.h" 25 | #elif defined(RISCV_FEATURES) 26 | # include "arch/riscv/riscv_functions.h" 27 | #endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/fallback-macros.cmake: -------------------------------------------------------------------------------- 1 | # fallback-macros.cmake -- CMake fallback macros 2 | # Copyright (C) 2022 Nathan Moinvaziri 3 | # Licensed under the Zlib license, see LICENSE.md for details 4 | 5 | # CMake less than version 3.5.2 6 | if(NOT COMMAND add_compile_options) 7 | macro(add_compile_options options) 8 | string(APPEND CMAKE_C_FLAGS ${options}) 9 | string(APPEND CMAKE_CXX_FLAGS ${options}) 10 | endmacro() 11 | endif() 12 | 13 | # CMake less than version 3.14 14 | if(NOT COMMAND add_link_options) 15 | macro(add_link_options options) 16 | string(APPEND CMAKE_EXE_LINKER_FLAGS ${options}) 17 | string(APPEND CMAKE_SHARED_LINKER_FLAGS ${options}) 18 | endmacro() 19 | endif() 20 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-aarch64.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR aarch64) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER_TARGET "aarch64-linux-gnu") 6 | set(CMAKE_CXX_COMPILER_TARGET "aarch64-linux-gnu") 7 | 8 | set(CMAKE_CROSSCOMPILING TRUE) 9 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-aarch64 -L /usr/${CMAKE_C_COMPILER_TARGET}/) 10 | 11 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | 15 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 16 | if(NOT C_COMPILER_FULL_PATH) 17 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 18 | endif() 19 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 20 | 21 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 22 | if(CXX_COMPILER_FULL_PATH) 23 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 24 | endif() 25 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-arm.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR arm) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | if(NOT DEFINED CMAKE_C_COMPILER_TARGET) 6 | set(CMAKE_C_COMPILER_TARGET arm-linux-gnueabi) 7 | endif() 8 | if(NOT DEFINED CMAKE_CXX_COMPILER_TARGET) 9 | set(CMAKE_CXX_COMPILER_TARGET arm-linux-gnueabi) 10 | endif() 11 | 12 | set(CMAKE_CROSSCOMPILING TRUE) 13 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-arm -L /usr/${CMAKE_C_COMPILER_TARGET}/) 14 | 15 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 16 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 17 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 18 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 19 | 20 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 21 | if(NOT C_COMPILER_FULL_PATH) 22 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 23 | endif() 24 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 25 | 26 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 27 | if(CXX_COMPILER_FULL_PATH) 28 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 29 | endif() 30 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-armhf.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR arm) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER_TARGET arm-linux-gnueabihf) 6 | set(CMAKE_CXX_COMPILER_TARGET arm-linux-gnueabihf) 7 | 8 | set(CMAKE_CROSSCOMPILING TRUE) 9 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-arm -L /usr/${CMAKE_C_COMPILER_TARGET}/) 10 | 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 15 | 16 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 17 | if(NOT C_COMPILER_FULL_PATH) 18 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 19 | endif() 20 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 21 | 22 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 23 | if(CXX_COMPILER_FULL_PATH) 24 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 25 | endif() 26 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-mingw-i686.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Windows) 2 | 3 | set(CMAKE_C_COMPILER_TARGET i686-w64-mingw32) 4 | set(CMAKE_CXX_COMPILER_TARGET i686-w64-mingw32) 5 | set(CMAKE_RC_COMPILER_TARGET i686-w64-mingw32) 6 | 7 | set(CMAKE_CROSSCOMPILING TRUE) 8 | set(CMAKE_CROSSCOMPILING_EMULATOR wine) 9 | 10 | set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32) 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | 15 | # Prefer posix gcc variant for gtest pthread support 16 | find_program(C_COMPILER_FULL_PATH NAMES 17 | ${CMAKE_C_COMPILER_TARGET}-gcc-posix 18 | ${CMAKE_C_COMPILER_TARGET}-gcc) 19 | if(NOT C_COMPILER_FULL_PATH) 20 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 21 | endif() 22 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 23 | 24 | find_program(CXX_COMPILER_FULL_PATH NAMES 25 | ${CMAKE_CXX_COMPILER_TARGET}-g++-posix 26 | ${CMAKE_CXX_COMPILER_TARGET}-g++) 27 | if(CXX_COMPILER_FULL_PATH) 28 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 29 | endif() 30 | 31 | find_program(RC_COMPILER_FULL_PATH NAMES 32 | ${CMAKE_RC_COMPILER_TARGET}-windres) 33 | if(RC_COMPILER_FULL_PATH) 34 | set(CMAKE_RC_COMPILER ${RC_COMPILER_FULL_PATH}) 35 | endif() 36 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-mingw-x86_64.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Windows) 2 | 3 | set(CMAKE_C_COMPILER_TARGET x86_64-w64-mingw32) 4 | set(CMAKE_CXX_COMPILER_TARGET x86_64-w64-mingw32) 5 | set(CMAKE_RC_COMPILER_TARGET x86_64-w64-mingw32) 6 | 7 | set(CMAKE_CROSSCOMPILING TRUE) 8 | set(CMAKE_CROSSCOMPILING_EMULATOR wine) 9 | 10 | set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32) 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | 15 | # Prefer posix gcc variant for gtest pthread support 16 | find_program(C_COMPILER_FULL_PATH NAMES 17 | ${CMAKE_C_COMPILER_TARGET}-gcc-posix 18 | ${CMAKE_C_COMPILER_TARGET}-gcc) 19 | if(NOT C_COMPILER_FULL_PATH) 20 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 21 | endif() 22 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 23 | 24 | find_program(CXX_COMPILER_FULL_PATH NAMES 25 | ${CMAKE_CXX_COMPILER_TARGET}-g++-posix 26 | ${CMAKE_CXX_COMPILER_TARGET}-g++) 27 | if(CXX_COMPILER_FULL_PATH) 28 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 29 | endif() 30 | 31 | find_program(RC_COMPILER_FULL_PATH NAMES ${CMAKE_RC_COMPILER_TARGET}-windres) 32 | if(RC_COMPILER_FULL_PATH) 33 | set(CMAKE_RC_COMPILER ${RC_COMPILER_FULL_PATH}) 34 | endif() 35 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-mips.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR mips) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | if(NOT DEFINED CMAKE_C_COMPILER_TARGET) 6 | set(CMAKE_C_COMPILER_TARGET mips-linux-gnu) 7 | endif() 8 | if(NOT DEFINED CMAKE_CXX_COMPILER_TARGET) 9 | set(CMAKE_CXX_COMPILER_TARGET mips-linux-gnu) 10 | endif() 11 | 12 | set(CMAKE_CROSSCOMPILING TRUE) 13 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-mips -L /usr/${CMAKE_C_COMPILER_TARGET}/) 14 | 15 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 16 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 17 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 18 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 19 | 20 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 21 | if(NOT C_COMPILER_FULL_PATH) 22 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 23 | endif() 24 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 25 | 26 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 27 | if(CXX_COMPILER_FULL_PATH) 28 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 29 | endif() 30 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-mips64.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR mips64) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | if(NOT DEFINED CMAKE_C_COMPILER_TARGET) 6 | set(CMAKE_C_COMPILER_TARGET mips64-linux-gnuabi64) 7 | endif() 8 | if(NOT DEFINED CMAKE_CXX_COMPILER_TARGET) 9 | set(CMAKE_CXX_COMPILER_TARGET mips64-linux-gnuabi64) 10 | endif() 11 | 12 | set(CMAKE_CROSSCOMPILING TRUE) 13 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-mips64 -L /usr/${CMAKE_C_COMPILER_TARGET}/) 14 | 15 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 16 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 17 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 18 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 19 | 20 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 21 | if(NOT C_COMPILER_FULL_PATH) 22 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 23 | endif() 24 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 25 | 26 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 27 | if(CXX_COMPILER_FULL_PATH) 28 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 29 | endif() 30 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-powerpc.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR powerpc) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER_TARGET powerpc-linux-gnu) 6 | set(CMAKE_CXX_COMPILER_TARGET powerpc-linux-gnu) 7 | 8 | set(CMAKE_CROSSCOMPILING TRUE) 9 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-ppc -cpu 7400 -L /usr/${CMAKE_C_COMPILER_TARGET}/) 10 | 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 15 | 16 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 17 | if(NOT C_COMPILER_FULL_PATH) 18 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 19 | endif() 20 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 21 | 22 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 23 | if(CXX_COMPILER_FULL_PATH) 24 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 25 | endif() 26 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-powerpc64-clang.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR ppc64) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER clang) 6 | set(CMAKE_C_COMPILER_TARGET powerpc64-linux-gnu) 7 | set(CMAKE_CXX_COMPILER clang++) 8 | set(CMAKE_CXX_COMPILER_TARGET powerpc64-linux-gnu) 9 | 10 | set(CMAKE_CROSSCOMPILING TRUE) 11 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-ppc64 -cpu power9 -L /usr/${CMAKE_C_COMPILER_TARGET}/) 12 | 13 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 14 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 15 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 16 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 17 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-powerpc64-power9.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR ppc64) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER_TARGET powerpc64-linux-gnu) 6 | set(CMAKE_CXX_COMPILER_TARGET powerpc64-linux-gnu) 7 | 8 | set(CMAKE_CROSSCOMPILING TRUE) 9 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-ppc64 -cpu power9 -L /usr/${CMAKE_C_COMPILER_TARGET}/) 10 | 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 15 | 16 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 17 | if(NOT C_COMPILER_FULL_PATH) 18 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 19 | endif() 20 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 21 | 22 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 23 | if(CXX_COMPILER_FULL_PATH) 24 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 25 | endif() 26 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-powerpc64.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR ppc64) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER_TARGET powerpc64-linux-gnu) 6 | set(CMAKE_CXX_COMPILER_TARGET powerpc64-linux-gnu) 7 | 8 | set(CMAKE_CROSSCOMPILING TRUE) 9 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-ppc64 -cpu power8 -L /usr/${CMAKE_C_COMPILER_TARGET}/) 10 | 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 15 | 16 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 17 | if(NOT C_COMPILER_FULL_PATH) 18 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 19 | endif() 20 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 21 | 22 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 23 | if(CXX_COMPILER_FULL_PATH) 24 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 25 | endif() 26 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-powerpc64le-clang.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR ppc64le) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER clang) 6 | set(CMAKE_C_COMPILER_TARGET powerpc64le-linux-gnu) 7 | set(CMAKE_CXX_COMPILER clang++) 8 | set(CMAKE_CXX_COMPILER_TARGET powerpc64le-linux-gnu) 9 | 10 | set(CMAKE_CROSSCOMPILING TRUE) 11 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-ppc64le -cpu power9 -L /usr/${CMAKE_C_COMPILER_TARGET}/) 12 | 13 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 14 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 15 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 16 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 17 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-powerpc64le-power9.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR ppc64le) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER_TARGET powerpc64le-linux-gnu) 6 | set(CMAKE_CXX_COMPILER_TARGET powerpc64le-linux-gnu) 7 | 8 | set(CMAKE_CROSSCOMPILING TRUE) 9 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-ppc64le -cpu power9 -L /usr/${CMAKE_C_COMPILER_TARGET}/) 10 | 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 15 | 16 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 17 | if(NOT C_COMPILER_FULL_PATH) 18 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 19 | endif() 20 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 21 | 22 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 23 | if(CXX_COMPILER_FULL_PATH) 24 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 25 | endif() 26 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-powerpc64le.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR ppc64le) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER_TARGET powerpc64le-linux-gnu) 6 | set(CMAKE_CXX_COMPILER_TARGET powerpc64le-linux-gnu) 7 | 8 | set(CMAKE_CROSSCOMPILING TRUE) 9 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-ppc64le -cpu power8 -L /usr/${CMAKE_C_COMPILER_TARGET}/) 10 | 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 15 | 16 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 17 | if(NOT C_COMPILER_FULL_PATH) 18 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 19 | endif() 20 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 21 | 22 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 23 | if(CXX_COMPILER_FULL_PATH) 24 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 25 | endif() 26 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-riscv.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_CROSSCOMPILING TRUE) 2 | set(CMAKE_SYSTEM_NAME "Linux") 3 | set(CMAKE_SYSTEM_PROCESSOR "riscv64") 4 | 5 | # Avoid to use system path for cross-compile 6 | set(CMAKE_FIND_USE_CMAKE_SYSTEM_PATH FALSE) 7 | 8 | set(TOOLCHAIN_PATH "" CACHE STRING "The toolchain path.") 9 | if(NOT TOOLCHAIN_PATH) 10 | set(TOOLCHAIN_PATH ${CMAKE_SOURCE_DIR}/prebuilt-riscv-toolchain-qemu/riscv-clang) 11 | endif() 12 | 13 | set(TOOLCHAIN_PREFIX "riscv64-unknown-linux-gnu-" CACHE STRING "The toolchain prefix.") 14 | set(QEMU_PATH "" CACHE STRING "The qemu path.") 15 | if(NOT QEMU_PATH) 16 | set(QEMU_PATH ${CMAKE_SOURCE_DIR}/prebuilt-riscv-toolchain-qemu/riscv-qemu/bin/qemu-riscv64) 17 | endif() 18 | 19 | # toolchain setting 20 | set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}clang") 21 | set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}clang++") 22 | 23 | # disable auto-vectorizer 24 | add_compile_options(-fno-vectorize -fno-slp-vectorize) 25 | 26 | # emulator setting 27 | set(QEMU_CPU_OPTION "rv64,zba=true,zbb=true,zbc=true,zbs=true,v=true,vlen=512,elen=64,vext_spec=v1.0") 28 | set(CMAKE_CROSSCOMPILING_EMULATOR ${QEMU_PATH} -cpu ${QEMU_CPU_OPTION} -L ${TOOLCHAIN_PATH}/sysroot/) 29 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-s390x.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR s390x) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER_TARGET s390x-linux-gnu) 6 | set(CMAKE_CXX_COMPILER_TARGET s390x-linux-gnu) 7 | 8 | set(CMAKE_CROSSCOMPILING TRUE) 9 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-s390x -L /usr/${CMAKE_C_COMPILER_TARGET}/) 10 | 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 15 | 16 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 17 | if(NOT C_COMPILER_FULL_PATH) 18 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 19 | endif() 20 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 21 | 22 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 23 | if(CXX_COMPILER_FULL_PATH) 24 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 25 | endif() 26 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cmake/toolchain-sparc64.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_SYSTEM_NAME Linux) 2 | set(CMAKE_SYSTEM_PROCESSOR sparc64) 3 | set(CMAKE_SYSTEM_VERSION 1) 4 | 5 | set(CMAKE_C_COMPILER_TARGET sparc64-linux-gnu) 6 | set(CMAKE_CXX_COMPILER_TARGET sparc64-linux-gnu) 7 | 8 | set(CMAKE_CROSSCOMPILING TRUE) 9 | set(CMAKE_CROSSCOMPILING_EMULATOR qemu-sparc64 -L /usr/${CMAKE_C_COMPILER_TARGET}/) 10 | 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 15 | 16 | find_program(C_COMPILER_FULL_PATH NAMES ${CMAKE_C_COMPILER_TARGET}-gcc) 17 | if(NOT C_COMPILER_FULL_PATH) 18 | message(FATAL_ERROR "Cross-compiler for ${CMAKE_C_COMPILER_TARGET} not found") 19 | endif() 20 | set(CMAKE_C_COMPILER ${C_COMPILER_FULL_PATH}) 21 | 22 | find_program(CXX_COMPILER_FULL_PATH NAMES g++-${CMAKE_CXX_COMPILER_TARGET} ${CMAKE_CXX_COMPILER_TARGET}-g++) 23 | if(CXX_COMPILER_FULL_PATH) 24 | set(CMAKE_CXX_COMPILER ${CXX_COMPILER_FULL_PATH}) 25 | endif() 26 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cpu_features.c: -------------------------------------------------------------------------------- 1 | /* cpu_features.c -- CPU architecture feature check 2 | * Copyright (C) 2017 Hans Kristian Rosbach 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "zbuild.h" 7 | #include "cpu_features.h" 8 | #include 9 | 10 | Z_INTERNAL void cpu_check_features(struct cpu_features *features) { 11 | memset(features, 0, sizeof(struct cpu_features)); 12 | #if defined(X86_FEATURES) 13 | x86_check_features(&features->x86); 14 | #elif defined(ARM_FEATURES) 15 | arm_check_features(&features->arm); 16 | #elif defined(PPC_FEATURES) || defined(POWER_FEATURES) 17 | power_check_features(&features->power); 18 | #elif defined(S390_FEATURES) 19 | s390_check_features(&features->s390); 20 | #elif defined(RISCV_FEATURES) 21 | riscv_check_features(&features->riscv); 22 | #endif 23 | } 24 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/cpu_features.h: -------------------------------------------------------------------------------- 1 | /* cpu_features.h -- CPU architecture feature check 2 | * Copyright (C) 2017 Hans Kristian Rosbach 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #ifndef CPU_FEATURES_H_ 7 | #define CPU_FEATURES_H_ 8 | 9 | #ifndef DISABLE_RUNTIME_CPU_DETECTION 10 | 11 | #if defined(X86_FEATURES) 12 | # include "arch/x86/x86_features.h" 13 | #elif defined(ARM_FEATURES) 14 | # include "arch/arm/arm_features.h" 15 | #elif defined(PPC_FEATURES) || defined(POWER_FEATURES) 16 | # include "arch/power/power_features.h" 17 | #elif defined(S390_FEATURES) 18 | # include "arch/s390/s390_features.h" 19 | #elif defined(RISCV_FEATURES) 20 | # include "arch/riscv/riscv_features.h" 21 | #endif 22 | 23 | struct cpu_features { 24 | #if defined(X86_FEATURES) 25 | struct x86_cpu_features x86; 26 | #elif defined(ARM_FEATURES) 27 | struct arm_cpu_features arm; 28 | #elif defined(PPC_FEATURES) || defined(POWER_FEATURES) 29 | struct power_cpu_features power; 30 | #elif defined(S390_FEATURES) 31 | struct s390_cpu_features s390; 32 | #elif defined(RISCV_FEATURES) 33 | struct riscv_cpu_features riscv; 34 | #else 35 | char empty; 36 | #endif 37 | }; 38 | 39 | void cpu_check_features(struct cpu_features *features); 40 | 41 | #endif 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/crc32.c: -------------------------------------------------------------------------------- 1 | /* crc32.c -- compute the CRC-32 of a data stream 2 | * Copyright (C) 1995-2022 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | * 5 | * This interleaved implementation of a CRC makes use of pipelined multiple 6 | * arithmetic-logic units, commonly found in modern CPU cores. It is due to 7 | * Kadatch and Jenkins (2010). See doc/crc-doc.1.0.pdf in this distribution. 8 | */ 9 | 10 | #include "zbuild.h" 11 | #include "functable.h" 12 | #include "crc32_braid_tbl.h" 13 | 14 | /* ========================================================================= */ 15 | 16 | const uint32_t * Z_EXPORT PREFIX(get_crc_table)(void) { 17 | return (const uint32_t *)crc_table; 18 | } 19 | 20 | #ifdef ZLIB_COMPAT 21 | unsigned long Z_EXPORT PREFIX(crc32_z)(unsigned long crc, const unsigned char *buf, size_t len) { 22 | if (buf == NULL) return 0; 23 | 24 | return (unsigned long)FUNCTABLE_CALL(crc32)((uint32_t)crc, buf, len); 25 | } 26 | #else 27 | uint32_t Z_EXPORT PREFIX(crc32_z)(uint32_t crc, const unsigned char *buf, size_t len) { 28 | if (buf == NULL) return 0; 29 | 30 | return FUNCTABLE_CALL(crc32)(crc, buf, len); 31 | } 32 | #endif 33 | 34 | #ifdef ZLIB_COMPAT 35 | unsigned long Z_EXPORT PREFIX(crc32)(unsigned long crc, const unsigned char *buf, unsigned int len) { 36 | return (unsigned long)PREFIX(crc32_z)((uint32_t)crc, buf, len); 37 | } 38 | #else 39 | uint32_t Z_EXPORT PREFIX(crc32)(uint32_t crc, const unsigned char *buf, uint32_t len) { 40 | return PREFIX(crc32_z)(crc, buf, len); 41 | } 42 | #endif 43 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/crc32.h: -------------------------------------------------------------------------------- 1 | /* crc32.h -- crc32 folding interface 2 | * Copyright (C) 2021 Nathan Moinvaziri 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | #ifndef CRC32_H_ 6 | #define CRC32_H_ 7 | 8 | #define CRC32_FOLD_BUFFER_SIZE (16 * 4) 9 | /* sizeof(__m128i) * (4 folds) */ 10 | 11 | typedef struct crc32_fold_s { 12 | uint8_t fold[CRC32_FOLD_BUFFER_SIZE]; 13 | uint32_t value; 14 | } crc32_fold; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/crc32_braid_comb_p.h: -------------------------------------------------------------------------------- 1 | #ifndef CRC32_BRAID_COMB_P_H_ 2 | #define CRC32_BRAID_COMB_P_H_ 3 | 4 | /* 5 | Return a(x) multiplied by b(x) modulo p(x), where p(x) is the CRC polynomial, 6 | reflected. For speed, this requires that a not be zero. 7 | */ 8 | static uint32_t multmodp(uint32_t a, uint32_t b) { 9 | uint32_t m, p; 10 | 11 | m = (uint32_t)1 << 31; 12 | p = 0; 13 | for (;;) { 14 | if (a & m) { 15 | p ^= b; 16 | if ((a & (m - 1)) == 0) 17 | break; 18 | } 19 | m >>= 1; 20 | b = b & 1 ? (b >> 1) ^ POLY : b >> 1; 21 | } 22 | return p; 23 | } 24 | 25 | /* 26 | Return x^(n * 2^k) modulo p(x). Requires that x2n_table[] has been 27 | initialized. 28 | */ 29 | static uint32_t x2nmodp(z_off64_t n, unsigned k) { 30 | uint32_t p; 31 | 32 | p = (uint32_t)1 << 31; /* x^0 == 1 */ 33 | while (n) { 34 | if (n & 1) 35 | p = multmodp(x2n_table[k & 31], p); 36 | n >>= 1; 37 | k++; 38 | } 39 | return p; 40 | } 41 | 42 | #endif /* CRC32_BRAID_COMB_P_H_ */ 43 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/crc32_braid_p.h: -------------------------------------------------------------------------------- 1 | #ifndef CRC32_BRAID_P_H_ 2 | #define CRC32_BRAID_P_H_ 3 | 4 | #include "zendian.h" 5 | 6 | /* Define N */ 7 | #ifdef Z_TESTN 8 | # define N Z_TESTN 9 | #else 10 | # define N 5 11 | #endif 12 | #if N < 1 || N > 6 13 | # error N must be in 1..6 14 | #endif 15 | 16 | /* 17 | Define W and the associated z_word_t type. If W is not defined, then a 18 | braided calculation is not used, and the associated tables and code are not 19 | compiled. 20 | */ 21 | #ifdef Z_TESTW 22 | # if Z_TESTW-1 != -1 23 | # define W Z_TESTW 24 | # endif 25 | #else 26 | # ifndef W 27 | # if defined(__x86_64__) || defined(_M_AMD64) || defined(__aarch64__) || defined(_M_ARM64) || defined(__powerpc64__) 28 | # define W 8 29 | # else 30 | # define W 4 31 | # endif 32 | # endif 33 | #endif 34 | #ifdef W 35 | # if W == 8 36 | typedef uint64_t z_word_t; 37 | # else 38 | # undef W 39 | # define W 4 40 | typedef uint32_t z_word_t; 41 | # endif 42 | #endif 43 | 44 | #if BYTE_ORDER == LITTLE_ENDIAN 45 | # define ZSWAPWORD(word) (word) 46 | # define BRAID_TABLE crc_braid_table 47 | #elif BYTE_ORDER == BIG_ENDIAN 48 | # if W == 8 49 | # define ZSWAPWORD(word) ZSWAP64(word) 50 | # elif W == 4 51 | # define ZSWAPWORD(word) ZSWAP32(word) 52 | # endif 53 | # define BRAID_TABLE crc_braid_big_table 54 | #else 55 | # error "No endian defined" 56 | #endif 57 | 58 | #define DO1 c = crc_table[(c ^ *buf++) & 0xff] ^ (c >> 8) 59 | #define DO8 DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1 60 | 61 | /* CRC polynomial. */ 62 | #define POLY 0xedb88320 /* p(x) reflected, with x^32 implied */ 63 | 64 | #endif /* CRC32_BRAID_P_H_ */ 65 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/deflate_huff.c: -------------------------------------------------------------------------------- 1 | /* deflate_huff.c -- compress data using huffman encoding only strategy 2 | * 3 | * Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler 4 | * For conditions of distribution and use, see copyright notice in zlib.h 5 | */ 6 | 7 | #include "zbuild.h" 8 | #include "deflate.h" 9 | #include "deflate_p.h" 10 | #include "functable.h" 11 | 12 | /* =========================================================================== 13 | * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table. 14 | * (It will be regenerated if this run of deflate switches away from Huffman.) 15 | */ 16 | Z_INTERNAL block_state deflate_huff(deflate_state *s, int flush) { 17 | int bflush = 0; /* set if current block must be flushed */ 18 | 19 | for (;;) { 20 | /* Make sure that we have a literal to write. */ 21 | if (s->lookahead == 0) { 22 | PREFIX(fill_window)(s); 23 | if (s->lookahead == 0) { 24 | if (flush == Z_NO_FLUSH) 25 | return need_more; 26 | break; /* flush the current block */ 27 | } 28 | } 29 | 30 | /* Output a literal byte */ 31 | bflush = zng_tr_tally_lit(s, s->window[s->strstart]); 32 | s->lookahead--; 33 | s->strstart++; 34 | if (bflush) 35 | FLUSH_BLOCK(s, 0); 36 | } 37 | s->insert = 0; 38 | if (flush == Z_FINISH) { 39 | FLUSH_BLOCK(s, 1); 40 | return finish_done; 41 | } 42 | if (s->sym_next) 43 | FLUSH_BLOCK(s, 0); 44 | return block_done; 45 | } 46 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/insert_string.c: -------------------------------------------------------------------------------- 1 | /* insert_string.c -- insert_string integer hash variant 2 | * 3 | * Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler 4 | * For conditions of distribution and use, see copyright notice in zlib.h 5 | * 6 | */ 7 | 8 | #include "zbuild.h" 9 | #include "deflate.h" 10 | 11 | #define HASH_SLIDE 16 12 | 13 | #define HASH_CALC(h, val) h = ((val * 2654435761U) >> HASH_SLIDE); 14 | #define HASH_CALC_VAR h 15 | #define HASH_CALC_VAR_INIT uint32_t h = 0 16 | 17 | #define UPDATE_HASH update_hash 18 | #define INSERT_STRING insert_string 19 | #define QUICK_INSERT_STRING quick_insert_string 20 | 21 | #include "insert_string_tpl.h" 22 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/insert_string_roll.c: -------------------------------------------------------------------------------- 1 | /* insert_string_roll.c -- insert_string rolling hash variant 2 | * 3 | * Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler 4 | * For conditions of distribution and use, see copyright notice in zlib.h 5 | * 6 | */ 7 | 8 | #include "zbuild.h" 9 | #include "deflate.h" 10 | 11 | #define HASH_SLIDE 5 12 | 13 | #define HASH_CALC(h, val) h = ((h << HASH_SLIDE) ^ ((uint8_t)val)) 14 | #define HASH_CALC_VAR s->ins_h 15 | #define HASH_CALC_VAR_INIT 16 | #define HASH_CALC_READ val = strstart[0] 17 | #define HASH_CALC_MASK (32768u - 1u) 18 | #define HASH_CALC_OFFSET (STD_MIN_MATCH-1) 19 | 20 | #define UPDATE_HASH update_hash_roll 21 | #define INSERT_STRING insert_string_roll 22 | #define QUICK_INSERT_STRING quick_insert_string_roll 23 | 24 | #include "insert_string_tpl.h" 25 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/tools/config.sub: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Canonicalize CHOST. 3 | # In particular, converts Debian multiarch tuples into GNU triplets. 4 | # See also 5 | # https://wiki.debian.org/Multiarch/Tuples 6 | # https://wiki.gentoo.org/wiki/CHOST 7 | # If you need an architecture not listed here, file a bug at github.com/zlib-ng/zlib-ng 8 | # and work around the problem by dropping libtool's much more comprehensive config.sub 9 | # on top of this file, see 10 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 11 | 12 | case "$1" in 13 | *-*-linux-gnu*) echo $1;; 14 | i686-linux-gnu*|x86_64-linux-gnu*) echo $1 | sed 's/-linux-gnu/-pc-linux-gnu/';; 15 | *-linux-gnu*) echo $1 | sed 's/-linux-gnu/-unknown-linux-gnu/';; 16 | *) echo $1;; 17 | esac 18 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/trees.h: -------------------------------------------------------------------------------- 1 | #ifndef TREES_H_ 2 | #define TREES_H_ 3 | 4 | /* Constants */ 5 | 6 | #define DIST_CODE_LEN 512 7 | /* see definition of array dist_code in trees.c */ 8 | 9 | #define MAX_BL_BITS 7 10 | /* Bit length codes must not exceed MAX_BL_BITS bits */ 11 | 12 | #define REP_3_6 16 13 | /* repeat previous bit length 3-6 times (2 bits of repeat count) */ 14 | 15 | #define REPZ_3_10 17 16 | /* repeat a zero length 3-10 times (3 bits of repeat count) */ 17 | 18 | #define REPZ_11_138 18 19 | /* repeat a zero length 11-138 times (7 bits of repeat count) */ 20 | 21 | static const int extra_lbits[LENGTH_CODES] /* extra bits for each length code */ 22 | = {0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0}; 23 | 24 | static const int extra_dbits[D_CODES] /* extra bits for each distance code */ 25 | = {0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13}; 26 | 27 | static const int extra_blbits[BL_CODES] /* extra bits for each bit length code */ 28 | = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7}; 29 | 30 | static const unsigned char bl_order[BL_CODES] 31 | = {16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15}; 32 | /* The lengths of the bit length codes are sent in order of decreasing 33 | * probability, to avoid transmitting the lengths for unused bit length codes. 34 | */ 35 | 36 | 37 | /* Function definitions */ 38 | void gen_codes (ct_data *tree, int max_code, uint16_t *bl_count); 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/zlib-config.cmake.in: -------------------------------------------------------------------------------- 1 | set(ZLIB_VERSION @ZLIB_HEADER_VERSION@) 2 | 3 | @PACKAGE_INIT@ 4 | 5 | set_and_check(ZLIB_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@") 6 | set(ZLIB_INCLUDE_DIRS "${ZLIB_INCLUDE_DIR}") 7 | set_and_check(ZLIB_LIB_DIR "@PACKAGE_LIB_INSTALL_DIR@") 8 | set(ZLIB_LIBRARIES ZLIB::ZLIB) 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/ZLIB.cmake") 11 | 12 | check_required_components(ZLIB) 13 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/zlib-ng-config.cmake.in: -------------------------------------------------------------------------------- 1 | set(zlib-ng_VERSION @ZLIBNG_HEADER_VERSION@) 2 | 3 | @PACKAGE_INIT@ 4 | 5 | set_and_check(zlib-ng_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@") 6 | set_and_check(zlib-ng_LIB_DIR "@PACKAGE_LIB_INSTALL_DIR@") 7 | 8 | include("${CMAKE_CURRENT_LIST_DIR}/zlib-ng.cmake") 9 | 10 | check_required_components(zlib-ng) 11 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/zlib.pc.cmakein: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=${prefix} 3 | symbol_prefix=@ZLIB_SYMBOL_PREFIX@ 4 | libdir=@PC_LIB_INSTALL_DIR@ 5 | sharedlibdir=${libdir} 6 | includedir=@PC_INC_INSTALL_DIR@ 7 | 8 | Name: zlib@SUFFIX@ 9 | Description: zlib-ng compression library 10 | Version: @ZLIB_FULL_VERSION@ 11 | 12 | Requires: 13 | Libs: -L${libdir} -L${sharedlibdir} -lz@SUFFIX@ 14 | Cflags: -I${includedir} @PKG_CONFIG_CFLAGS@ 15 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/zlib.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | symbol_prefix=@symbol_prefix@ 4 | libdir=@libdir@ 5 | sharedlibdir=@sharedlibdir@ 6 | includedir=@includedir@ 7 | 8 | Name: zlib@SUFFIX@ 9 | Description: zlib-ng compression library 10 | Version: @VERSION@ 11 | 12 | Requires: 13 | Libs: -L${libdir} -L${sharedlibdir} -lz@SUFFIX@ 14 | Cflags: -I${includedir} @PKG_CONFIG_CFLAGS@ 15 | -------------------------------------------------------------------------------- /unix/Xvnc/lib/zlib-ng/zlib_name_mangling.h.empty: -------------------------------------------------------------------------------- 1 | /* zlib_name_mangling.h has been automatically generated from 2 | * zlib_name_mangling.h.empty because ZLIB_SYMBOL_PREFIX was NOT set. 3 | */ 4 | 5 | #ifndef ZLIB_NAME_MANGLING_H 6 | #define ZLIB_NAME_MANGLING_H 7 | 8 | #endif /* ZLIB_NAME_MANGLING_H */ 9 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/unix/Xvnc/programs/Xserver/ChangeLog -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xext/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../Xi ../composite ../damageext ../mi ../miext/sync 2 | ../render ../xfixes) 3 | 4 | foreach(dir /run/shm /dev/shm /var/tmp /tmp) 5 | if(EXISTS ${dir}) 6 | add_definitions(-DSHMDIR=\"${dir}\") 7 | break() 8 | endif() 9 | endforeach() 10 | 11 | disable_compiler_warnings() 12 | 13 | add_library(Xext-server STATIC 14 | bigreq.c 15 | dpms.c 16 | dpmsstubs.c 17 | geext.c 18 | hashtable.c 19 | panoramiX.c 20 | panoramiXprocs.c 21 | panoramiXSwap.c 22 | saver.c 23 | security.c 24 | shape.c 25 | shm.c 26 | sleepuntil.c 27 | sync.c 28 | xace.c 29 | xcmisc.c 30 | xf86bigfont.c 31 | xres.c 32 | xtest.c 33 | xvdisp.c 34 | xvmain.c 35 | xvmc.c) 36 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xext/dpmsproc.h: -------------------------------------------------------------------------------- 1 | /* Prototypes for functions that the DDX must provide */ 2 | 3 | #ifdef HAVE_DIX_CONFIG_H 4 | #include 5 | #endif 6 | 7 | #ifndef _DPMSPROC_H_ 8 | #define _DPMSPROC_H_ 9 | 10 | #include "dixstruct.h" 11 | 12 | extern int DPMSSet(ClientPtr client, int level); 13 | extern Bool DPMSSupported(void); 14 | 15 | extern CARD32 DPMSStandbyTime; 16 | extern CARD32 DPMSSuspendTime; 17 | extern CARD32 DPMSOffTime; 18 | extern CARD16 DPMSPowerLevel; 19 | extern Bool DPMSEnabled; 20 | extern Bool DPMSDisabledSwitch; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xext/xf86bigfontsrv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2010 Yaakov Selkowitz 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining 5 | * a copy of this software and associated documentation files (the 6 | * "Software"), to deal in the Software without restriction, including 7 | * without limitation the rights to use, copy, modify, merge, publish, 8 | * distribute, sublicense, and/or sell copies of the Software, and to 9 | * permit persons to whom the Software is furnished to do so, subject to 10 | * the following conditions: 11 | * 12 | * The above copyright notice and this permission notice (including the 13 | * next paragraph) shall be included in all copies or substantial portions 14 | * of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | */ 24 | 25 | #ifndef _XF86BIGFONTSRV_H_ 26 | #define _XF86BIGFONTSRV_H_ 27 | 28 | #include 29 | 30 | extern void XF86BigfontFreeFontShm(FontPtr); 31 | extern void XF86BigfontCleanup(void); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xext/xvdisp.h: -------------------------------------------------------------------------------- 1 | extern void XineramifyXv(void); 2 | extern void XvResetProcVector(void); 3 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(. ../mi ../render ../xfixes) 2 | 3 | disable_compiler_warnings() 4 | 5 | add_library(Xi STATIC 6 | allowev.c 7 | chgdctl.c 8 | chgfctl.c 9 | chgkbd.c 10 | chgkmap.c 11 | chgprop.c 12 | chgptr.c 13 | closedev.c 14 | devbell.c 15 | exevents.c 16 | extinit.c 17 | getbmap.c 18 | getdctl.c 19 | getfctl.c 20 | getfocus.c 21 | getkmap.c 22 | getmmap.c 23 | getprop.c 24 | getselev.c 25 | getvers.c 26 | grabdev.c 27 | grabdevb.c 28 | grabdevk.c 29 | gtmotion.c 30 | listdev.c 31 | opendev.c 32 | queryst.c 33 | selectev.c 34 | sendexev.c 35 | setbmap.c 36 | setdval.c 37 | setfocus.c 38 | setmmap.c 39 | setmode.c 40 | stubs.c 41 | ungrdev.c 42 | ungrdevb.c 43 | ungrdevk.c 44 | xiallowev.c 45 | xibarriers.c 46 | xichangecursor.c 47 | xichangehierarchy.c 48 | xigetclientpointer.c 49 | xigrabdev.c 50 | xipassivegrab.c 51 | xiproperty.c 52 | xiquerydevice.c 53 | xiquerypointer.c 54 | xiqueryversion.c 55 | xiselectev.c 56 | xisetclientpointer.c 57 | xisetdevfocus.c 58 | xiwarppointer.c) 59 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/allowev.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef ALLOWEV_H 31 | #define ALLOWEV_H 1 32 | 33 | int SProcXAllowDeviceEvents(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXAllowDeviceEvents(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* ALLOWEV_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/chgfctl.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef CHGFCTL_H 31 | #define CHGFCTL_H 1 32 | 33 | int SProcXChangeFeedbackControl(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXChangeFeedbackControl(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* CHGFCTL_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/chgkbd.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef CHGKBD_H 31 | #define CHGKBD_H 1 32 | 33 | int SProcXChangeKeyboardDevice(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXChangeKeyboardDevice(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* CHGKBD_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/chgkmap.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef CHGKMAP_H 31 | #define CHGKMAP_H 1 32 | 33 | int SProcXChangeDeviceKeyMapping(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXChangeDeviceKeyMapping(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* CHGKMAP_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/chgprop.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef CHGPROP_H 31 | #define CHGPROP_H 1 32 | 33 | int SProcXChangeDeviceDontPropagateList(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXChangeDeviceDontPropagateList(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* CHGPROP_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/chgptr.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef CHGPTR_H 31 | #define CHGPTR_H 1 32 | 33 | int SProcXChangePointerDevice(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXChangePointerDevice(ClientPtr /* client */ 37 | ); 38 | 39 | void DeleteFocusClassDeviceStruct(DeviceIntPtr /* dev */ 40 | ); 41 | 42 | #endif /* CHGPTR_H */ 43 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/closedev.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef CLOSEDEV_H 31 | #define CLOSEDEV_H 1 32 | 33 | int SProcXCloseDevice(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXCloseDevice(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* CLOSEDEV_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/devbell.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef DEVBELL_H 31 | #define DEVBELL_H 1 32 | 33 | int SProcXDeviceBell(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXDeviceBell(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* DEVBELL_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/grabdevb.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef GRABDEVB_H 31 | #define GRABDEVB_H 1 32 | 33 | int SProcXGrabDeviceButton(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXGrabDeviceButton(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* GRABDEVB_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/grabdevk.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef GRABDEVK_H 31 | #define GRABDEVK_H 1 32 | 33 | int SProcXGrabDeviceKey(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXGrabDeviceKey(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* GRABDEVK_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/selectev.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef SELECTEV_H 31 | #define SELECTEV_H 1 32 | 33 | int SProcXSelectExtensionEvent(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXSelectExtensionEvent(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* SELECTEV_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/sendexev.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef SENDEXEV_H 31 | #define SENDEXEV_H 1 32 | 33 | int SProcXSendExtensionEvent(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXSendExtensionEvent(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* SENDEXEV_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/setfocus.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef SETFOCUS_H 31 | #define SETFOCUS_H 1 32 | 33 | int SProcXSetDeviceFocus(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXSetDeviceFocus(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* SETFOCUS_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/ungrdev.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef UNGRDEV_H 31 | #define UNGRDEV_H 1 32 | 33 | int SProcXUngrabDevice(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXUngrabDevice(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* UNGRDEV_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/ungrdevb.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef UNGRDEVB_H 31 | #define UNGRDEVB_H 1 32 | 33 | int SProcXUngrabDeviceButton(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXUngrabDeviceButton(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* UNGRDEVB_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/ungrdevk.h: -------------------------------------------------------------------------------- 1 | /************************************************************ 2 | 3 | Copyright 1996 by Thomas E. Dickey 4 | 5 | All Rights Reserved 6 | 7 | Permission to use, copy, modify, and distribute this software and its 8 | documentation for any purpose and without fee is hereby granted, 9 | provided that the above copyright notice appear in all copies and that 10 | both that copyright notice and this permission notice appear in 11 | supporting documentation, and that the name of the above listed 12 | copyright holder(s) not be used in advertising or publicity pertaining 13 | to distribution of the software without specific, written prior 14 | permission. 15 | 16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | 24 | ********************************************************/ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef UNGRDEVK_H 31 | #define UNGRDEVK_H 1 32 | 33 | int SProcXUngrabDeviceKey(ClientPtr /* client */ 34 | ); 35 | 36 | int ProcXUngrabDeviceKey(ClientPtr /* client */ 37 | ); 38 | 39 | #endif /* UNGRDEVK_H */ 40 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/xiallowev.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2009 Red Hat, Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | * 23 | * Author: Peter Hutterer 24 | */ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef XIALLOWEV_H 31 | #define XIALLOWEV_H 1 32 | 33 | int ProcXIAllowEvents(ClientPtr client); 34 | int SProcXIAllowEvents(ClientPtr client); 35 | 36 | #endif /* XIALLOWEV_H */ 37 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/xibarriers.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef HAVE_DIX_CONFIG_H 3 | #include 4 | #endif 5 | 6 | #ifndef _XIBARRIERS_H_ 7 | #define _XIBARRIERS_H_ 8 | 9 | #include "resource.h" 10 | 11 | extern _X_EXPORT RESTYPE PointerBarrierType; 12 | 13 | struct PointerBarrier { 14 | INT16 x1, x2, y1, y2; 15 | CARD32 directions; 16 | }; 17 | 18 | int 19 | barrier_get_direction(int, int, int, int); 20 | BOOL 21 | barrier_is_blocking(const struct PointerBarrier *, int, int, int, int, 22 | double *); 23 | BOOL 24 | barrier_is_blocking_direction(const struct PointerBarrier *, int); 25 | void 26 | barrier_clamp_to_barrier(struct PointerBarrier *barrier, int dir, int *x, 27 | int *y); 28 | 29 | #include 30 | 31 | int 32 | XICreatePointerBarrier(ClientPtr client, 33 | xXFixesCreatePointerBarrierReq * stuff); 34 | 35 | int 36 | XIDestroyPointerBarrier(ClientPtr client, 37 | xXFixesDestroyPointerBarrierReq * stuff); 38 | 39 | Bool XIBarrierInit(void); 40 | void XIBarrierReset(void); 41 | 42 | int SProcXIBarrierReleasePointer(ClientPtr client); 43 | int ProcXIBarrierReleasePointer(ClientPtr client); 44 | 45 | void XIBarrierNewMasterDevice(ClientPtr client, int deviceid); 46 | void XIBarrierRemoveMasterDevice(ClientPtr client, int deviceid); 47 | 48 | #endif /* _XIBARRIERS_H_ */ 49 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/xichangecursor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007-2008 Peter Hutterer 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | * 23 | * Author: Peter Hutterer, University of South Australia, NICTA 24 | */ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef CHDEVCUR_H 31 | #define CHDEVCUR_H 1 32 | 33 | int SProcXIChangeCursor(ClientPtr /* client */ ); 34 | int ProcXIChangeCursor(ClientPtr /* client */ ); 35 | 36 | #endif /* CHDEVCUR_H */ 37 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/xisetclientpointer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007-2008 Peter Hutterer 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | * 23 | * Author: Peter Hutterer, University of South Australia, NICTA 24 | */ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef SETCPTR_H 31 | #define SETCPTR_H 1 32 | 33 | int SProcXISetClientPointer(ClientPtr /* client */ ); 34 | int ProcXISetClientPointer(ClientPtr /* client */ ); 35 | 36 | #endif /* SETCPTR_H */ 37 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/Xi/xiwarppointer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007-2008 Peter Hutterer 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | * DEALINGS IN THE SOFTWARE. 22 | * 23 | * Author: Peter Hutterer, University of South Australia, NICTA 24 | */ 25 | 26 | #ifdef HAVE_DIX_CONFIG_H 27 | #include 28 | #endif 29 | 30 | #ifndef WARPDEVP_H 31 | #define WARPDEVP_H 1 32 | 33 | int SProcXIWarpPointer(ClientPtr /* client */ ); 34 | int ProcXIWarpPointer(ClientPtr /* client */ ); 35 | 36 | #endif /* WARPDEVP_H */ 37 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/composite/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../Xi ../damageext ../mi ../render ../xfixes) 2 | 3 | disable_compiler_warnings() 4 | 5 | add_library(composite STATIC 6 | compalloc.c 7 | compext.c 8 | compinit.c 9 | compoverlay.c 10 | compwindow.c) 11 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/damageext/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../Xi ../render ../xfixes) 2 | 3 | add_library(damageext STATIC 4 | damageext.c) 5 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/damageext/damageext.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2002 Keith Packard 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that 7 | * copyright notice and this permission notice appear in supporting 8 | * documentation, and that the name of Keith Packard not be used in 9 | * advertising or publicity pertaining to distribution of the software without 10 | * specific, written prior permission. Keith Packard makes no 11 | * representations about the suitability of this software for any purpose. It 12 | * is provided "as is" without express or implied warranty. 13 | * 14 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20 | * PERFORMANCE OF THIS SOFTWARE. 21 | */ 22 | 23 | #ifdef HAVE_DIX_CONFIG_H 24 | #include 25 | #endif 26 | 27 | #ifndef _DAMAGEEXT_H_ 28 | #define _DAMAGEEXT_H_ 29 | 30 | void 31 | DamageExtensionInit(void); 32 | 33 | #endif /* _DAMAGEEXT_H_ */ 34 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/dix/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../Xi ../composite ../damageext ../mi ../miext/sync 2 | ../randr ../render ../xfixes) 3 | 4 | set(DEFAULT_XORG_FONT_PATH 5 | "/usr/share/X11/fonts/misc/,/usr/share/X11/fonts/Type1/,/usr/share/X11/fonts/75dpi/,/usr/share/X11/fonts/100dpi/") 6 | set(XORG_FONT_PATH ${DEFAULT_XORG_FONT_PATH} CACHE STRING 7 | "X.org font path (default: ${DEFAULT_XORG_FONT_PATH})") 8 | message(STATUS "XORG_FONT_PATH = ${XORG_FONT_PATH}") 9 | add_definitions(-DCOMPILEDDEFAULTFONTPATH=\"${XORG_FONT_PATH}\") 10 | 11 | if(BITS EQUAL 64) 12 | set(DEFAULT_XORG_REGISTRY_PATH "/usr/lib64/xorg") 13 | else() 14 | set(DEFAULT_XORG_REGISTRY_PATH "/usr/lib/xorg") 15 | endif() 16 | set(XORG_REGISTRY_PATH ${DEFAULT_XORG_REGISTRY_PATH} CACHE PATH 17 | "X.org registry path, which contains protocol.txt (default: ${DEFAULT_XORG_REGISTRY_PATH})") 18 | message(STATUS "XORG_REGISTRY_PATH = ${XORG_REGISTRY_PATH}") 19 | add_definitions(-DSERVER_MISC_CONFIG_PATH=\"${XORG_REGISTRY_PATH}\") 20 | 21 | disable_compiler_warnings() 22 | 23 | add_library(dix STATIC 24 | atom.c 25 | colormap.c 26 | cursor.c 27 | devices.c 28 | dispatch.c 29 | dixfonts.c 30 | dixutils.c 31 | enterleave.c 32 | eventconvert.c 33 | events.c 34 | extension.c 35 | gc.c 36 | getevents.c 37 | globals.c 38 | glyphcurs.c 39 | grabs.c 40 | initatoms.c 41 | inpututils.c 42 | main.c 43 | pixmap.c 44 | privates.c 45 | property.c 46 | ptrveloc.c 47 | region.c 48 | registry.c 49 | resource.c 50 | selection.c 51 | swaprep.c 52 | swapreq.c 53 | tables.c 54 | touch.c 55 | window.c) 56 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/dix/buildatoms: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | hfile=../../../include/Xatom.h 3 | cfile=initatoms.c 4 | rm -f $hfile $cfile 5 | umask 222 6 | awk ' 7 | BEGIN { 8 | hfile = "'$hfile'"; 9 | cfile = "'$cfile'"; 10 | hformat = "#define XA_%s ((Atom) %d)\n"; 11 | printf("#ifndef XATOM_H\n") > hfile; 12 | printf("#define XATOM_H 1\n\n") > hfile; 13 | printf("/* THIS IS A GENERATED FILE\n") > hfile; 14 | printf(" *\n") > hfile; 15 | printf(" * Do not change! Changing this file implies a protocol change!\n") > hfile; 16 | printf(" */\n\n") > hfile; 17 | 18 | printf("/* THIS IS A GENERATED FILE\n") > cfile; 19 | printf(" *\n") > cfile; 20 | printf(" * Do not change! Changing this file implies a protocol change!\n") > cfile; 21 | printf(" */\n\n") > cfile; 22 | printf("#include \"X.h\"\n") > cfile; 23 | printf("#include \"Xatom.h\"\n") > cfile; 24 | printf("#include \"misc.h\"\n") > cfile; 25 | printf("#include \"dix.h\"\n") > cfile; 26 | printf("void MakePredeclaredAtoms()\n") > cfile; 27 | printf("{\n") > cfile; 28 | 29 | } 30 | 31 | NF == 2 && $2 == "@" { 32 | printf(hformat, $1, ++atomno) > hfile ; 33 | printf(" if (MakeAtom(\"%s\", %d, 1) != XA_%s) AtomError();\n", $1, length($1), $1) > cfile ; 34 | } 35 | 36 | END { 37 | printf("\n") > hfile; 38 | printf(hformat, "LAST_PREDEFINED", atomno) > hfile ; 39 | printf("#endif /* XATOM_H */\n") > hfile; 40 | printf("}\n") > cfile ; 41 | } 42 | ' BuiltInAtoms 43 | exit 0 44 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/dix/stubmain.c: -------------------------------------------------------------------------------- 1 | /*********************************************************** 2 | 3 | Copyright 2012 Jon TURNEY 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a 6 | copy of this software and associated documentation files (the "Software"), 7 | to deal in the Software without restriction, including without limitation 8 | the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | and/or sell copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice (including the next 13 | paragraph) shall be included in all copies or substantial portions of the 14 | Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22 | DEALINGS IN THE SOFTWARE. 23 | 24 | ******************************************************************/ 25 | 26 | int dix_main(int argc, char *argv[], char *envp[]); 27 | 28 | /* 29 | A default implementation of main, which can be overridden by the DDX 30 | */ 31 | int 32 | main(int argc, char *argv[], char *envp[]) 33 | { 34 | return dix_main(argc, argv, envp); 35 | } 36 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/dri3/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../miext/sync ../randr ../render) 2 | 3 | add_definitions(-DHAVE_XORG_CONFIG_H) 4 | 5 | add_library(dri3 STATIC 6 | dri3.c 7 | dri3_request.c 8 | dri3_screen.c) 9 | 10 | target_link_libraries(dri3 PkgConfig::DRM) 11 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/fb/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../mi ../render) 2 | 3 | disable_compiler_warnings() 4 | 5 | add_library(fb STATIC 6 | fballpriv.c 7 | fbarc.c 8 | fbbits.c 9 | fbblt.c 10 | fbbltone.c 11 | fbcmap_mi.c 12 | fbcopy.c 13 | fbfill.c 14 | fbfillrect.c 15 | fbfillsp.c 16 | fbgc.c 17 | fbgetsp.c 18 | fbglyph.c 19 | fbimage.c 20 | fbline.c 21 | fboverlay.c 22 | fbpict.c 23 | fbpixmap.c 24 | fbpoint.c 25 | fbpush.c 26 | fbscreen.c 27 | fbseg.c 28 | fbsetsp.c 29 | fbsolid.c 30 | fbtrap.c 31 | fbutil.c 32 | fbwindow.c) 33 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/genpatch: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PROJECT=xserver-dbf6d1c24a00a1f598756c71028876ff2b3db17f 3 | FILE=$PROJECT.tar.gz 4 | URL=https://gitlab.freedesktop.org/xorg/xserver/-/archive/dbf6d1c24a00a1f598756c71028876ff2b3db17f/ 5 | SRCDIR=`dirname $0` 6 | 7 | . $SRCDIR/../../genpatch | filterdiff -p1 -x Xserver/include/dix-config.h.in -x Xserver/include/version-config.h.in -x Xserver/include/xkb-config.h.in >$SRCDIR/turbovnc.patch 8 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/glx/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(. ../composite ../randr ../render) 2 | 3 | if(BITS EQUAL 64) 4 | add_definitions(-D__GLX_ALIGN64) 5 | endif() 6 | 7 | check_symbol_exists(backtrace execinfo.h HAVE_BACKTRACE) 8 | if(HAVE_BACKTRACE) 9 | add_definitions(-DHAVE_BACKTRACE) 10 | endif() 11 | 12 | if(BITS EQUAL 64) 13 | set(DEFAULT_XORG_DRI_DRIVER_PATH "/usr/lib64/dri") 14 | else() 15 | set(DEFAULT_XORG_DRI_DRIVER_PATH "/usr/lib/dri") 16 | endif() 17 | set(XORG_DRI_DRIVER_PATH ${DEFAULT_XORG_DRI_DRIVER_PATH} CACHE PATH 18 | "X.org DRI driver path, which contains swrast_dri.so (default: ${DEFAULT_XORG_DRI_DRIVER_PATH})") 19 | message(STATUS "XORG_DRI_DRIVER_PATH = ${XORG_DRI_DRIVER_PATH}") 20 | add_definitions(-DDRI_DRIVER_PATH=\"${XORG_DRI_DRIVER_PATH}\") 21 | 22 | disable_compiler_warnings() 23 | 24 | add_library(glx-server STATIC 25 | clientinfo.c 26 | createcontext.c 27 | extension_string.c 28 | glxcmds.c 29 | glxcmdsswap.c 30 | glxdricommon.c 31 | glxdriswrast.c 32 | glxext.c 33 | glxscreens.c 34 | indirect_dispatch.c 35 | indirect_dispatch_swap.c 36 | indirect_program.c 37 | indirect_reqsize.c 38 | indirect_size_get.c 39 | indirect_table.c 40 | indirect_texture_compression.c 41 | indirect_util.c 42 | render2.c 43 | render2swap.c 44 | renderpix.c 45 | renderpixswap.c 46 | rensize.c 47 | single2.c 48 | single2swap.c 49 | singlepix.c 50 | singlepixswap.c 51 | singlesize.c 52 | swap_interval.c 53 | vndcmds.c 54 | vndext.c 55 | vndservermapping.c 56 | vndservervendor.c 57 | xfont.c) 58 | 59 | target_link_libraries(glx-server OpenGL::GL) 60 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/hw/vnc/README: -------------------------------------------------------------------------------- 1 | This is the directory containing the code specific to the TurboVNC X server. 2 | Note that within this directory the name RFB is still used instead of VNC. 3 | 4 | NOTE: 5 | 6 | This version of TurboVNC contains code from the xf4vnc project 7 | (http://xf4vnc.sourceforge.net) by Alan Hourihane . 8 | Mostly, we merged only the code that was necessary to implement the features 9 | we needed, such as the X Rendering and X Input Extensions, FreeType support, 10 | etc. However, this involved some systemic changes, such as replacing cfb and 11 | mfb with fb and modifying mi where necessary to support fb. We also merged in 12 | any minor fixes, such as compiler warning elimination, formatting and build 13 | system improvements, safety checks, etc. that had no risk of destabilization. 14 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/hw/vnc/base64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * NOTE: The original file (from LibVNCServer) lacks a copyright header but is 3 | * assumed, from Git logs and context, to have been authored by Jocelyn Le Sage 4 | * and made available either under the same license as base64.c or under the 5 | * same license as LibVNCServer (GPL v2+). 6 | */ 7 | 8 | #ifndef _BASE64_H 9 | #define _BASE64_H 10 | 11 | extern int __b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize); 12 | extern int __b64_pton(char const *src, u_char *target, size_t targsize); 13 | 14 | #define rfbBase64NtoP __b64_ntop 15 | #define rfbBase64PtoN __b64_pton 16 | 17 | #endif /* _BASE64_H */ 18 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/hw/vnc/input-xkb.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2014 D. R. Commander. All Rights Reserved. 2 | * 3 | * This is free software; you can redistribute it and/or modify 4 | * it under the terms of the GNU General Public License as published by 5 | * the Free Software Foundation; either version 2 of the License, or 6 | * (at your option) any later version. 7 | * 8 | * This software is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU General Public License 14 | * along with this software; if not, write to the Free Software 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 16 | * USA. 17 | */ 18 | 19 | #include 20 | #include "eventstr.h" 21 | #include "input.h" 22 | 23 | unsigned GetKeyboardState(void); 24 | unsigned GetLevelThreeMask(void); 25 | KeyCode PressShift(void); 26 | KeyCode *ReleaseShift(void); 27 | KeyCode PressLevelThree(void); 28 | KeyCode *ReleaseLevelThree(void); 29 | KeyCode KeysymToKeycode(KeySym keysym, unsigned state, unsigned *new_state); 30 | Bool IsLockModifier(KeyCode keycode, unsigned state); 31 | Bool IsAffectedByNumLock(KeyCode keycode); 32 | KeyCode AddKeysym(KeySym keysym, unsigned state); 33 | void vncXkbProcessDeviceEvent(int screenNum, InternalEvent *event, 34 | DeviceIntPtr dev); 35 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/hw/vnc/qnum_to_xorgevdev.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is auto-generated from keymaps.csv 3 | * Database checksum sha256(277b04f9dd721dd7942235d6ff107f992d95a083b651e73814ac3bb12f9c56d5) 4 | * To re-generate, run: 5 | * keymap-gen code-map --lang=stdc-header keymaps.csv qnum xorgevdev 6 | */ 7 | extern const unsigned short code_map_qnum_to_xorgevdev[254]; 8 | extern const unsigned int code_map_qnum_to_xorgevdev_len; 9 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/hw/vnc/qnum_to_xorgkbd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is auto-generated from keymaps.csv 3 | * Database checksum sha256(277b04f9dd721dd7942235d6ff107f992d95a083b651e73814ac3bb12f9c56d5) 4 | * To re-generate, run: 5 | * keymap-gen code-map --lang=stdc-header keymaps.csv qnum xorgkbd 6 | */ 7 | extern const unsigned short code_map_qnum_to_xorgkbd[254]; 8 | extern const unsigned int code_map_qnum_to_xorgkbd_len; 9 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/hw/vnc/zrletypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2002 RealVNC Ltd. All Rights Reserved. 3 | * 4 | * This is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this software; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 | * USA. 18 | */ 19 | 20 | #ifndef __ZRLE_TYPES_H__ 21 | #define __ZRLE_TYPES_H__ 22 | 23 | typedef unsigned char zrle_U8; 24 | typedef unsigned short zrle_U16; 25 | typedef unsigned int zrle_U32; 26 | typedef signed char zrle_S8; 27 | typedef signed short zrle_S16; 28 | typedef signed int zrle_S32; 29 | 30 | #endif /* __ZRLE_TYPES_H__ */ 31 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/include/globals.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _XSERV_GLOBAL_H_ 3 | #define _XSERV_GLOBAL_H_ 4 | 5 | #include "window.h" /* for WindowPtr */ 6 | #include "extinit.h" 7 | #ifdef DPMSExtension 8 | /* sigh, too many drivers assume this */ 9 | #include 10 | #endif 11 | 12 | /* Global X server variables that are visible to mi, dix, os, and ddx */ 13 | 14 | extern _X_EXPORT CARD32 defaultScreenSaverTime; 15 | extern _X_EXPORT CARD32 defaultScreenSaverInterval; 16 | extern _X_EXPORT CARD32 ScreenSaverTime; 17 | extern _X_EXPORT CARD32 ScreenSaverInterval; 18 | 19 | #ifdef SCREENSAVER 20 | extern _X_EXPORT Bool screenSaverSuspended; 21 | #endif 22 | 23 | extern _X_EXPORT const char *defaultFontPath; 24 | extern _X_EXPORT int monitorResolution; 25 | extern _X_EXPORT int defaultColorVisualClass; 26 | 27 | extern _X_EXPORT int GrabInProgress; 28 | extern _X_EXPORT Bool noTestExtensions; 29 | extern _X_EXPORT char *SeatId; 30 | extern _X_EXPORT char *ConnectionInfo; 31 | extern _X_EXPORT sig_atomic_t inSignalContext; 32 | 33 | #ifdef PANORAMIX 34 | extern _X_EXPORT Bool PanoramiXExtensionDisabledHack; 35 | #endif 36 | 37 | #ifdef XSELINUX 38 | #define SELINUX_MODE_DEFAULT 0 39 | #define SELINUX_MODE_DISABLED 1 40 | #define SELINUX_MODE_PERMISSIVE 2 41 | #define SELINUX_MODE_ENFORCING 3 42 | extern _X_EXPORT int selinuxEnforcingState; 43 | #endif 44 | 45 | #endif /* !_XSERV_GLOBAL_H_ */ 46 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/include/optionstr.h: -------------------------------------------------------------------------------- 1 | #ifndef OPTIONSTR_H_ 2 | #define OPTIONSTR_H_ 3 | #include "list.h" 4 | 5 | struct _InputOption { 6 | GenericListRec list; 7 | char *opt_name; 8 | char *opt_val; 9 | int opt_used; 10 | char *opt_comment; 11 | }; 12 | 13 | #endif /* INPUTSTRUCT_H */ 14 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/include/validate.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | 4 | Copyright 1989, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | */ 26 | 27 | #ifndef VALIDATE_H 28 | #define VALIDATE_H 29 | 30 | #include "miscstruct.h" 31 | #include "regionstr.h" 32 | 33 | typedef enum { VTOther, VTStack, VTMove, VTUnmap, VTMap, VTBroken } VTKind; 34 | 35 | /* union _Validate is now device dependent; see mivalidate.h for an example */ 36 | typedef union _Validate *ValidatePtr; 37 | 38 | #define UnmapValData ((ValidatePtr)1) 39 | 40 | #endif /* VALIDATE_H */ 41 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/include/version-config.h.in: -------------------------------------------------------------------------------- 1 | /* version-config.h.in: not generated */ 2 | 3 | #ifndef VERSION_CONFIG_H 4 | #define VERSION_CONFIG_H 5 | 6 | /* Vendor name */ 7 | #define VENDOR_NAME "@VENDOR_NAME@" 8 | 9 | /* Vendor release */ 10 | #define VENDOR_RELEASE @VENDOR_RELEASE@ 11 | 12 | #endif /* VERSION_CONFIG_H */ 13 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/include/xkb-config.h.in: -------------------------------------------------------------------------------- 1 | /* xkb-config.h.in: not at all generated. -*- c -*- 2 | * 3 | */ 4 | 5 | #ifndef _XKB_CONFIG_H_ 6 | #define _XKB_CONFIG_H_ 7 | 8 | /* Default set of XKB rules. */ 9 | #define XKB_DFLT_RULES "@XKB_DFLT_RULES@" 10 | 11 | /* Default XKB model. */ 12 | #define XKB_DFLT_MODEL "@XKB_DFLT_MODEL@" 13 | 14 | /* Default XKB layout. */ 15 | #define XKB_DFLT_LAYOUT "@XKB_DFLT_LAYOUT@" 16 | 17 | /* Default XKB variant. */ 18 | #define XKB_DFLT_VARIANT "@XKB_DFLT_VARIANT@" 19 | 20 | /* Default XKB options. */ 21 | #define XKB_DFLT_OPTIONS "@XKB_DFLT_OPTIONS@" 22 | 23 | /* Path to XKB definitions. */ 24 | #define XKB_BASE_DIRECTORY "@XKB_BASE_DIRECTORY@" 25 | 26 | /* Path to xkbcomp. */ 27 | #define XKB_BIN_DIRECTORY "@XKB_BIN_DIRECTORY@" 28 | 29 | #endif /* _XKB_CONFIG_H_ */ 30 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/include/xorg-config.h: -------------------------------------------------------------------------------- 1 | #ifndef _XORG_CONFIG_H_ 2 | #define _XORG_CONFIG_H_ 3 | 4 | #include 5 | #include 6 | 7 | #endif /* _XORG_CONFIG_H_ */ 8 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/include/xsha1.h: -------------------------------------------------------------------------------- 1 | #ifndef XSHA1_H 2 | #define XSHA1_H 3 | 4 | /* Initialize SHA1 computation. Returns NULL on error. */ 5 | void *x_sha1_init(void); 6 | 7 | /* 8 | * Add some data to be hashed. ctx is the value returned by x_sha1_init() 9 | * Returns 0 on error, 1 on success. 10 | */ 11 | int x_sha1_update(void *ctx, void *data, int size); 12 | 13 | /* 14 | * Place the hash in result, and free ctx. 15 | * Returns 0 on error, 1 on success. 16 | */ 17 | int x_sha1_final(void *ctx, unsigned char result[20]); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/mi/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(. ../Xi ../composite ../damageext ../render ../xfixes) 2 | 3 | disable_compiler_warnings() 4 | 5 | add_library(mi STATIC 6 | miarc.c 7 | mibitblt.c 8 | micmap.c 9 | micopy.c 10 | midash.c 11 | midispcur.c 12 | mieq.c 13 | miexpose.c 14 | mifillarc.c 15 | mifillrct.c 16 | migc.c 17 | miglblt.c 18 | miinitext.c 19 | mioverlay.c 20 | mipointer.c 21 | mipoly.c 22 | mipolypnt.c 23 | mipolyrect.c 24 | mipolyseg.c 25 | mipolytext.c 26 | mipushpxl.c 27 | miscrinit.c 28 | misprite.c 29 | mivaltree.c 30 | miwideline.c 31 | miwindow.c 32 | mizerarc.c 33 | mizerclip.c 34 | mizerline.c) 35 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/mi/mioverlay.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef HAVE_DIX_CONFIG_H 3 | #include 4 | #endif 5 | 6 | #ifndef __MIOVERLAY_H 7 | #define __MIOVERLAY_H 8 | 9 | typedef void (*miOverlayTransFunc) (ScreenPtr, int, BoxPtr); 10 | typedef Bool (*miOverlayInOverlayFunc) (WindowPtr); 11 | 12 | extern _X_EXPORT Bool 13 | 14 | miInitOverlay(ScreenPtr pScreen, 15 | miOverlayInOverlayFunc inOverlay, miOverlayTransFunc trans); 16 | 17 | extern _X_EXPORT Bool 18 | 19 | miOverlayGetPrivateClips(WindowPtr pWin, 20 | RegionPtr *borderClip, RegionPtr *clipList); 21 | 22 | extern _X_EXPORT Bool miOverlayCollectUnderlayRegions(WindowPtr, RegionPtr *); 23 | extern _X_EXPORT void miOverlayComputeCompositeClip(GCPtr, WindowPtr); 24 | extern _X_EXPORT Bool miOverlayCopyUnderlay(ScreenPtr); 25 | extern _X_EXPORT void miOverlaySetTransFunction(ScreenPtr, miOverlayTransFunc); 26 | extern _X_EXPORT void miOverlaySetRootClip(ScreenPtr, Bool); 27 | 28 | #endif /* __MIOVERLAY_H */ 29 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/miext/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(damage) 2 | add_subdirectory(sync) 3 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/miext/damage/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../../mi ../../render) 2 | 3 | add_library(damage STATIC 4 | damage.c) 5 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/miext/sync/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../../render) 2 | 3 | if(TVNC_DRI3) 4 | set(MISYNCSHMSRC misyncshm.c) 5 | endif() 6 | 7 | add_library(sync STATIC 8 | misync.c 9 | misyncfd.c 10 | ${MISYNCSHMSRC}) 11 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/miext/sync/misyncshm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2013 Keith Packard 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that copyright 7 | * notice and this permission notice appear in supporting documentation, and 8 | * that the name of the copyright holders not be used in advertising or 9 | * publicity pertaining to distribution of the software without specific, 10 | * written prior permission. The copyright holders make no representations 11 | * about the suitability of this software for any purpose. It is provided "as 12 | * is" without express or implied warranty. 13 | * 14 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 | * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 20 | * OF THIS SOFTWARE. 21 | */ 22 | 23 | #ifndef _MISYNCSHM_H_ 24 | #define _MISYNCSHM_H_ 25 | 26 | extern _X_EXPORT Bool miSyncShmScreenInit(ScreenPtr pScreen); 27 | 28 | #endif /* _MISYNCSHM_H_ */ 29 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/os/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../render ../../../lib/libsha1) 2 | 3 | add_definitions(-DUNIXCONN -DTCPCONN -DHASXDMAUTH ${ServerOSDefines} -DXDMCP 4 | -DHAVE_SHA1_IN_LIBSHA1) 5 | if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux") 6 | # This is already defined for Linux 7 | add_definitions(-DHAVE_ABSTRACT_SOCKETS) 8 | endif() 9 | 10 | if(FOUND_BSD44SOCKETS) 11 | add_definitions(-DBSD44SOCKETS) 12 | endif() 13 | 14 | set(EXTRASRCS "") 15 | if(NOT HAVE_REALLOCARRAY) 16 | set(EXTRASRCS ${EXTRASRCS} reallocarray.c) 17 | endif() 18 | if(NOT HAVE_STRCASECMP) 19 | set(EXTRASRCS ${EXTRASRCS} strcasecmp.c) 20 | endif() 21 | if(NOT HAVE_STRCASESTR) 22 | set(EXTRASRCS ${EXTRASRCS} strcasestr.c) 23 | endif() 24 | if(NOT HAVE_STRLCAT) 25 | set(EXTRASRCS ${EXTRASRCS} strlcat.c) 26 | endif() 27 | if(NOT HAVE_STRLCPY) 28 | set(EXTRASRCS ${EXTRASRCS} strlcpy.c) 29 | endif() 30 | if(NOT HAVE_STRNDUP) 31 | set(EXTRASRCS ${EXTRASRCS} strndup.c) 32 | endif() 33 | if(NOT HAVE_TIMINGSAFE_MEMCMP) 34 | set(EXTRASRCS ${EXTRASRCS} timingsafe_memcmp.c) 35 | endif() 36 | if(NOT HAVE_EPOLL_CREATE1 AND NOT HAVE_POLL) 37 | set(EXTRASRCS ${EXTRASRCS} xserver_poll.c) 38 | endif() 39 | 40 | disable_compiler_warnings() 41 | 42 | add_library(os STATIC 43 | WaitFor.c 44 | access.c 45 | auth.c 46 | backtrace.c 47 | busfault.c 48 | client.c 49 | connection.c 50 | inputthread.c 51 | io.c 52 | log.c 53 | mitauth.c 54 | oscolor.c 55 | osinit.c 56 | ospoll.c 57 | reallocarray.c 58 | rpcauth.c 59 | utils.c 60 | xdmauth.c 61 | xdmcp.c 62 | xprintf.c 63 | xsha1.c 64 | xstrans.c 65 | ${EXTRASRCS}) 66 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/os/reallocarray.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: reallocarray.c,v 1.2 2014/12/08 03:45:00 bcook Exp $ */ 2 | /* 3 | * Copyright (c) 2008 Otto Moerbeek 4 | * 5 | * Permission to use, copy, modify, and distribute this software for any 6 | * purpose with or without fee is hereby granted, provided that the above 7 | * copyright notice and this permission notice appear in all copies. 8 | * 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | */ 17 | 18 | #ifdef HAVE_DIX_CONFIG_H 19 | #include 20 | #endif 21 | 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include "os.h" 27 | 28 | /* 29 | * This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX 30 | * if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW 31 | */ 32 | #define MUL_NO_OVERFLOW ((size_t)1 << (sizeof(size_t) * 4)) 33 | 34 | void * 35 | reallocarray(void *optr, size_t nmemb, size_t size) 36 | { 37 | if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 38 | nmemb > 0 && SIZE_MAX / nmemb < size) { 39 | errno = ENOMEM; 40 | return NULL; 41 | } 42 | return realloc(optr, size * nmemb); 43 | } 44 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/os/xstrans.c: -------------------------------------------------------------------------------- 1 | #ifdef HAVE_DIX_CONFIG_H 2 | #include 3 | #endif 4 | 5 | #include 6 | 7 | /* ErrorF is used by xtrans */ 8 | #ifndef HAVE_DIX_CONFIG_H 9 | extern _X_EXPORT void 10 | ErrorF(const char *f, ...) 11 | _X_ATTRIBUTE_PRINTF(1, 2); 12 | #endif 13 | 14 | #define TRANS_REOPEN 15 | #define TRANS_SERVER 16 | #define XSERV_t 17 | #include 18 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/present/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../Xi ../miext/sync ../randr ../render ../xfixes) 2 | 3 | add_definitions(-DHAVE_XORG_CONFIG_H) 4 | 5 | disable_compiler_warnings() 6 | 7 | add_library(present STATIC 8 | present.c 9 | present_event.c 10 | present_execute.c 11 | present_fake.c 12 | present_fence.c 13 | present_notify.c 14 | present_request.c 15 | present_scmd.c 16 | present_screen.c 17 | present_vblank.c 18 | present_wnmd.c) 19 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/present/presentext.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2013 Keith Packard 3 | * 4 | * Permission to use, copy, modify, distribute, and sell this software and its 5 | * documentation for any purpose is hereby granted without fee, provided that 6 | * the above copyright notice appear in all copies and that both that copyright 7 | * notice and this permission notice appear in supporting documentation, and 8 | * that the name of the copyright holders not be used in advertising or 9 | * publicity pertaining to distribution of the software without specific, 10 | * written prior permission. The copyright holders make no representations 11 | * about the suitability of this software for any purpose. It is provided "as 12 | * is" without express or implied warranty. 13 | * 14 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 | * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 20 | * OF THIS SOFTWARE. 21 | */ 22 | 23 | #ifndef _PRESENTEXT_H_ 24 | #define _PRESENTEXT_H_ 25 | 26 | extern _X_EXPORT void 27 | present_extension_init(void); 28 | 29 | #endif /* _PRESENTEXT_H_ */ 30 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/randr/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../mi ../render) 2 | 3 | add_definitions(-DXINERAMA) 4 | 5 | disable_compiler_warnings() 6 | 7 | add_library(randr STATIC 8 | randr.c 9 | rrcrtc.c 10 | rrdispatch.c 11 | rrinfo.c 12 | rrlease.c 13 | rrmode.c 14 | rrmonitor.c 15 | rroutput.c 16 | rrpointer.c 17 | rrproperty.c 18 | rrprovider.c 19 | rrproviderproperty.c 20 | rrscreen.c 21 | rrsdispatch.c 22 | rrtransform.c 23 | rrxinerama.c) 24 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/record/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(record STATIC 2 | record.c 3 | set.c) 4 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/render/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(. ../mi) 2 | 3 | disable_compiler_warnings() 4 | 5 | add_library(render STATIC 6 | animcur.c 7 | filter.c 8 | glyph.c 9 | matrix.c 10 | miindex.c 11 | mipict.c 12 | mirect.c 13 | mitrap.c 14 | mitri.c 15 | picture.c 16 | render.c) 17 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/xfixes/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(. ../Xi ../mi ../render) 2 | 3 | add_library(xfixes STATIC 4 | cursor.c 5 | region.c 6 | saveset.c 7 | select.c 8 | xfixes.c) 9 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/xkb/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(../Xi ../mi ../render) 2 | 3 | add_definitions(-DXKM_OUTPUT_DIR=\"compiled/\") 4 | 5 | disable_compiler_warnings() 6 | 7 | add_library(xkb STATIC 8 | XKBAlloc.c 9 | XKBGAlloc.c 10 | XKBMAlloc.c 11 | XKBMisc.c 12 | ddxBeep.c 13 | ddxCtrls.c 14 | ddxKillSrv.c 15 | ddxLEDs.c 16 | ddxLoad.c 17 | ddxPrivate.c 18 | ddxVT.c 19 | maprules.c 20 | xkb.c 21 | xkbAccessX.c 22 | xkbActions.c 23 | xkbEvents.c 24 | xkbInit.c 25 | xkbLEDs.c 26 | xkbPrKeyEv.c 27 | xkbSwap.c 28 | xkbUtils.c 29 | xkbfmisc.c 30 | xkbout.c 31 | xkbtext.c 32 | xkmread.c) 33 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/xkb/ddxPrivate.c: -------------------------------------------------------------------------------- 1 | 2 | #ifdef HAVE_DIX_CONFIG_H 3 | #include 4 | #endif 5 | 6 | #include 7 | #include "windowstr.h" 8 | #include 9 | 10 | int 11 | XkbDDXPrivate(DeviceIntPtr dev, KeyCode key, XkbAction *act) 12 | { 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /unix/Xvnc/programs/Xserver/xkb/xkb.h: -------------------------------------------------------------------------------- 1 | #ifndef _XKB_H 2 | #define _XKB_H 3 | 4 | extern int ProcXkbUseExtension(ClientPtr client); 5 | extern int ProcXkbSelectEvents(ClientPtr client); 6 | extern int ProcXkbBell(ClientPtr client); 7 | extern int ProcXkbGetState(ClientPtr client); 8 | extern int ProcXkbLatchLockState(ClientPtr client); 9 | extern int ProcXkbGetControls(ClientPtr client); 10 | extern int ProcXkbSetControls(ClientPtr client); 11 | extern int ProcXkbGetMap(ClientPtr client); 12 | extern int ProcXkbSetMap(ClientPtr client); 13 | extern int ProcXkbGetCompatMap(ClientPtr client); 14 | extern int ProcXkbSetCompatMap(ClientPtr client); 15 | extern int ProcXkbGetIndicatorState(ClientPtr client); 16 | extern int ProcXkbGetIndicatorMap(ClientPtr client); 17 | extern int ProcXkbSetIndicatorMap(ClientPtr client); 18 | extern int ProcXkbGetNamedIndicator(ClientPtr client); 19 | extern int ProcXkbSetNamedIndicator(ClientPtr client); 20 | extern int ProcXkbGetNames(ClientPtr client); 21 | extern int ProcXkbSetNames(ClientPtr client); 22 | extern int ProcXkbGetGeometry(ClientPtr client); 23 | extern int ProcXkbSetGeometry(ClientPtr client); 24 | extern int ProcXkbPerClientFlags(ClientPtr client); 25 | extern int ProcXkbListComponents(ClientPtr client); 26 | extern int ProcXkbGetKbdByName(ClientPtr client); 27 | extern int ProcXkbGetDeviceInfo(ClientPtr client); 28 | extern int ProcXkbSetDeviceInfo(ClientPtr client); 29 | extern int ProcXkbSetDebuggingFlags(ClientPtr client); 30 | #endif 31 | -------------------------------------------------------------------------------- /unix/include/vncauth.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. 2 | * 3 | * This is free software; you can redistribute it and/or modify 4 | * it under the terms of the GNU General Public License as published by 5 | * the Free Software Foundation; either version 2 of the License, or 6 | * (at your option) any later version. 7 | * 8 | * This software is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU General Public License 14 | * along with this software; if not, write to the Free Software 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 16 | * USA. 17 | */ 18 | 19 | #define MAXPWLEN 8 20 | #define CHALLENGESIZE 16 21 | 22 | extern int vncEncryptAndStorePasswd(char *passwd, char *fname); 23 | extern int vncEncryptAndStorePasswd2(char *passwd, char *passwdViewOnly, 24 | char *fname); 25 | extern char *vncDecryptPasswdFromFile(char *fname); 26 | extern int vncDecryptPasswdFromFile2(char *fname, char *passwdFullControl, 27 | char *passwdViewOnly); 28 | extern int vncDecryptPasswd(char *encryptedPasswd, char *decryptedPasswd); 29 | extern void vncRandomBytes(unsigned char *bytes); 30 | extern void vncEncryptBytes(unsigned char *bytes, char *passwd); 31 | -------------------------------------------------------------------------------- /unix/libXNVCtrl/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(${X11_INCLUDE_DIR}) 2 | 3 | add_library(XNVCtrl STATIC NVCtrl.c) 4 | 5 | target_link_libraries(XNVCtrl ${X11_LIBRARIES}) 6 | -------------------------------------------------------------------------------- /unix/libvncauth/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(. ${CMAKE_SOURCE_DIR}/common/d3des) 2 | 3 | add_library(vncauth STATIC 4 | vncauth.c 5 | ${CMAKE_SOURCE_DIR}/common/d3des/d3des.c 6 | ${CMAKE_SOURCE_DIR}/common/d3des/d3des.h) 7 | -------------------------------------------------------------------------------- /unix/tvncconfig/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(${X11_INCLUDE_DIR}) 2 | 3 | add_executable(tvncconfig tvncconfig.c vncExt.c) 4 | 5 | target_link_libraries(tvncconfig ${X11_LIBRARIES}) 6 | 7 | install(TARGETS tvncconfig DESTINATION ${CMAKE_INSTALL_BINDIR}) 8 | 9 | install(FILES tvncconfig.man DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 10 | RENAME tvncconfig.1) 11 | -------------------------------------------------------------------------------- /unix/tvncservers: -------------------------------------------------------------------------------- 1 | # The VNCSERVERS variable is a list of display:user pairs, separated by 2 | # spaces. 3 | # 4 | # Uncomment the first line below to start a TurboVNC session under the account 5 | # 'myusername' (adjust this to your own username) and listening on Display :1. 6 | # You will also need to configure a VNC password (run 7 | # 'man -M {TurboVNC_directory}/man vncpasswd' for instructions) or another form 8 | # of authentication. See the TurboVNC User's Guide for more information about 9 | # the authentication methods available in TurboVNC. If you intend to connect 10 | # to the TurboVNC session over an untrusted network, then it is strongly 11 | # recommended that you configure the session to require TLS or SSH encryption. 12 | # Refer to the TurboVNC User's Guide and the Xvnc man page 13 | # ('man -M {TurboVNC_directory}/man Xvnc') for more information. Set the 14 | # VNCSERVERARGS[n] variable in order to specify arguments that should be passed 15 | # to vncserver when creating the TurboVNC session for Display :n. Refer to 16 | # the TurboVNC Server man pages ('man -M {TurboVNC_directory}/man vncserver' 17 | # and 'man -M {TurboVNC_directory}/man Xvnc') for a list of possible arguments. 18 | 19 | # VNCSERVERS="1:myusername" 20 | # VNCSERVERARGS[1]="" 21 | -------------------------------------------------------------------------------- /unix/vncconnect/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(${X11_INCLUDE_DIR}) 2 | 3 | add_executable(vncconnect vncconnect.c 4 | ${CMAKE_SOURCE_DIR}/unix/tvncconfig/vncExt.c) 5 | 6 | target_link_libraries(vncconnect ${X11_LIBRARIES}) 7 | 8 | install(TARGETS vncconnect DESTINATION ${CMAKE_INSTALL_BINDIR}) 9 | 10 | install(FILES vncconnect.man DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 11 | RENAME vncconnect.1) 12 | -------------------------------------------------------------------------------- /unix/vncpasswd/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(EXISTS /dev/urandom) 2 | message(STATUS "Using /dev/urandom for random number generation") 3 | add_definitions("-DUseDevUrandom") 4 | endif() 5 | 6 | include_directories(${X11_INCLUDE_DIR}) 7 | 8 | add_executable(vncpasswd vncpasswd.c) 9 | 10 | target_link_libraries(vncpasswd ${X11_LIBRARIES} vncauth) 11 | 12 | install(TARGETS vncpasswd DESTINATION ${CMAKE_INSTALL_BINDIR}) 13 | 14 | install(FILES vncpasswd.man DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 15 | RENAME vncpasswd.1) 16 | -------------------------------------------------------------------------------- /unix/vncviewer/JRSwizzle.h: -------------------------------------------------------------------------------- 1 | // JRSwizzle.h semver:1.1.0 2 | // Copyright (c) 2007-2016 Jonathan 'Wolf' Rentzsch: http://rentzsch.com 3 | // Some rights reserved: http://opensource.org/licenses/mit 4 | // https://github.com/rentzsch/jrswizzle 5 | 6 | #import 7 | 8 | @interface NSObject (JRSwizzle) 9 | 10 | + (BOOL)jr_swizzleMethod:(SEL)origSel_ withMethod:(SEL)altSel_ error:(NSError**)error_; 11 | + (BOOL)jr_swizzleClassMethod:(SEL)origSel_ withClassMethod:(SEL)altSel_ error:(NSError**)error_; 12 | 13 | 14 | /** 15 | ``` 16 | __block NSInvocation *invocation = nil; 17 | invocation = [self jr_swizzleMethod:@selector(initWithCoder:) withBlock:^(id obj, NSCoder *coder) { 18 | NSLog(@"before %@, coder %@", obj, coder); 19 | 20 | [invocation setArgument:&coder atIndex:2]; 21 | [invocation invokeWithTarget:obj]; 22 | 23 | id ret = nil; 24 | [invocation getReturnValue:&ret]; 25 | 26 | NSLog(@"after %@, coder %@", obj, coder); 27 | 28 | return ret; 29 | } error:nil]; 30 | ``` 31 | */ 32 | + (NSInvocation*)jr_swizzleMethod:(SEL)origSel withBlock:(id)block error:(NSError**)error; 33 | 34 | /** 35 | ``` 36 | __block NSInvocation *classInvocation = nil; 37 | classInvocation = [self jr_swizzleClassMethod:@selector(test) withBlock:^() { 38 | NSLog(@"before"); 39 | 40 | [classInvocation invoke]; 41 | 42 | NSLog(@"after"); 43 | } error:nil]; 44 | ``` 45 | */ 46 | + (NSInvocation*)jr_swizzleClassMethod:(SEL)origSel withBlock:(id)block error:(NSError**)error; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /unix/vncviewer/JavaAppLauncher: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/unix/vncviewer/JavaAppLauncher -------------------------------------------------------------------------------- /unix/vncviewer/cocoa.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2011 Pierre Ossman for Cendio AB 2 | * 3 | * This is free software; you can redistribute it and/or modify 4 | * it under the terms of the GNU General Public License as published by 5 | * the Free Software Foundation; either version 2 of the License, or 6 | * (at your option) any later version. 7 | * 8 | * This software is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU General Public License 14 | * along with this software; if not, write to the Free Software 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 16 | * USA. 17 | */ 18 | 19 | #ifndef __VNCVIEWER_COCOA_H__ 20 | #define __VNCVIEWER_COCOA_H__ 21 | 22 | int cocoa_is_key_press(const void *event); 23 | 24 | int cocoa_event_keycode(const void *event); 25 | int cocoa_event_keysym(const void *event); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /unix/vncviewer/com_turbovnc_rfb_Utils.h: -------------------------------------------------------------------------------- 1 | #include 2 | /* Header for class com_turbovnc_rfb_Utils */ 3 | 4 | #ifndef _Included_com_turbovnc_rfb_Utils 5 | #define _Included_com_turbovnc_rfb_Utils 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | /* 10 | * Class: com_turbovnc_rfb_Utils 11 | * Method: displaysHaveSeparateSpaces 12 | * Signature: ()Z 13 | */ 14 | JNIEXPORT jboolean JNICALL Java_com_turbovnc_rfb_Utils_displaysHaveSeparateSpaces 15 | (JNIEnv *, jobject); 16 | 17 | #ifdef __cplusplus 18 | } 19 | #endif 20 | #endif 21 | -------------------------------------------------------------------------------- /unix/vncviewer/keysym2ucs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This module converts keysym values into the corresponding ISO 10646-1 3 | * (UCS, Unicode) values. 4 | */ 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | unsigned keysym2ucs(unsigned keysym); 11 | unsigned ucs2keysym(unsigned ucs); 12 | 13 | unsigned ucs2combining(unsigned spacing); 14 | 15 | #ifdef __cplusplus 16 | } 17 | #endif 18 | -------------------------------------------------------------------------------- /unix/vncviewer/osx_to_qnum.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is auto-generated from keymaps.csv 3 | * Database checksum sha256(277b04f9dd721dd7942235d6ff107f992d95a083b651e73814ac3bb12f9c56d5) 4 | * To re-generate, run: 5 | * keymap-gen code-map --lang=stdc-header keymaps.csv osx qnum 6 | */ 7 | extern const unsigned short code_map_osx_to_qnum[256]; 8 | extern const unsigned int code_map_osx_to_qnum_len; 9 | -------------------------------------------------------------------------------- /unix/vncviewer/vncviewer-mac.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | BINDIR=`dirname $0` 5 | if [ -d $BINDIR/../java/jre ]; then 6 | JAVA="$BINDIR/../java/jre/bin/java" 7 | JAVAARGS="--add-exports java.desktop/com.apple.eawt=VncViewer" 8 | else 9 | if [ "$JAVA_HOME" = "" ]; then 10 | JAVA=java 11 | else 12 | JAVA="$JAVA_HOME/bin/java" 13 | fi 14 | fi 15 | TVNC_JAVADIR=@CMAKE_INSTALL_FULL_JAVADIR@ 16 | if [ -d $BINDIR/../java ]; then 17 | TVNC_JAVADIR=$BINDIR/../java 18 | fi 19 | 20 | if [ "@BITS@" = "32" ]; then 21 | exec "$JAVA" $JAVAARGS -server -d@BITS@ -Djava.library.path=$TVNC_JAVADIR -jar $TVNC_JAVADIR/VncViewer.jar ${1+"$@"} 22 | else 23 | exec "$JAVA" $JAVAARGS -server -Djava.library.path=$TVNC_JAVADIR -jar $TVNC_JAVADIR/VncViewer.jar ${1+"$@"} 24 | fi 25 | -------------------------------------------------------------------------------- /win/TurboVNC.url: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=http://www.TurboVNC.org 3 | -------------------------------------------------------------------------------- /win/vncviewer/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(BITS EQUAL 64) 2 | set(REQARCH amd64) 3 | else() 4 | set(REQARCH x86) 5 | endif() 6 | 7 | configure_file(vncviewer.bat.in ${CMAKE_BINARY_DIR}/vncviewer.bat 8 | @ONLY) 9 | configure_file(vncviewerw.bat.in ${CMAKE_BINARY_DIR}/vncviewerw.bat 10 | @ONLY) 11 | 12 | install(PROGRAMS ${CMAKE_BINARY_DIR}/vncviewer.bat 13 | DESTINATION ${CMAKE_INSTALL_BINDIR}) 14 | install(PROGRAMS ${CMAKE_BINARY_DIR}/vncviewerw.bat 15 | DESTINATION ${CMAKE_INSTALL_BINDIR}) 16 | 17 | find_package(JNI REQUIRED) 18 | 19 | add_definitions(-D_WINSTATIC) 20 | 21 | include_directories(${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2} omnithread 22 | ${TJPEG_INCLUDE_DIR}) 23 | 24 | add_library(turbovnchelper SHARED turbovnchelper.cpp LowLevelHook.cpp 25 | omnithread/nt.cpp ${CMAKE_SOURCE_DIR}/common/turbojpeg-jni/turbojpeg-jni.c) 26 | 27 | set_target_properties(turbovnchelper PROPERTIES PREFIX "" 28 | LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/java 29 | RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/java) 30 | 31 | target_link_libraries(turbovnchelper ${TJPEG_LIBRARY}) 32 | 33 | install(TARGETS turbovnchelper RUNTIME DESTINATION ${CMAKE_INSTALL_JAVADIR}) 34 | -------------------------------------------------------------------------------- /win/vncviewer/com_jcraft_jsch_PageantConnector.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class com_jcraft_jsch_PageantConnector */ 4 | 5 | #ifndef _Included_com_jcraft_jsch_PageantConnector 6 | #define _Included_com_jcraft_jsch_PageantConnector 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: com_jcraft_jsch_PageantConnector 12 | * Method: queryPageant 13 | * Signature: (Lcom/jcraft/jsch/Buffer;)V 14 | */ 15 | JNIEXPORT void JNICALL Java_com_jcraft_jsch_PageantConnector_queryPageant 16 | (JNIEnv *, jobject, jobject); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /win/vncviewer/com_turbovnc_vncviewer_Viewport.h: -------------------------------------------------------------------------------- 1 | #include 2 | /* Header for class com_turbovnc_vncviewer_Viewport */ 3 | 4 | #ifndef _Included_com_turbovnc_vncviewer_Viewport 5 | #define _Included_com_turbovnc_vncviewer_Viewport 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | /* 11 | * Class: com_turbovnc_vncviewer_Viewport 12 | * Method: grabKeyboard 13 | * Signature: (ZZ)V 14 | */ 15 | JNIEXPORT void JNICALL Java_com_turbovnc_vncviewer_Viewport_grabKeyboard 16 | (JNIEnv *, jobject, jboolean, jboolean); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /win/vncviewer/vncviewer.bat.in: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal enableextensions enabledelayedexpansion 3 | 4 | set CUSTOMJREPATH=%~d0%~p0java\jre 5 | if exist "%CUSTOMJREPATH%" ( 6 | set JAVA=!CUSTOMJREPATH!\bin\java 7 | set JAWT_PATH=!CUSTOMJREPATH!\bin 8 | goto jawt_path_defined 9 | ) 10 | 11 | if DEFINED JAVA_HOME goto java_home_defined 12 | 13 | set JAVA=java 14 | goto java_home_undefined 15 | 16 | :java_home_defined 17 | set JAVA_HOME=%JAVA_HOME:"=% 18 | if "%JAVA_HOME%"=="" ( 19 | set JAVA=java 20 | ) else ( 21 | set JAVA=%JAVA_HOME%\bin\java.exe 22 | set JAWT_PATH=%JAVA_HOME%\bin 23 | ) 24 | if DEFINED JAWT_PATH goto jawt_path_defined 25 | 26 | :java_home_undefined 27 | rem This should work with Java 7 and later. 28 | for /f "delims== tokens=2,3*" %%i in ('"%JAVA% -XshowSettings:properties -version 2>&1 | findstr sun.boot.library.path"') do set _TMP=?%%i 29 | set _TMP2=%_TMP:? =% 30 | if EXIST "%_TMP2%\jawt.dll" set JAWT_PATH=%_TMP2% 31 | if DEFINED JAWT_PATH goto jawt_path_defined 32 | 33 | rem Maybe we're using Java 6? 34 | if EXIST "c:\Program Files\Java\jre6\bin\jawt.dll" set JAWT_PATH=c:\Program Files\Java\jre6\bin 35 | if DEFINED JAWT_PATH goto jawt_path_defined 36 | 37 | echo WARNING: Could not find jawt.dll. Some features may not work properly. 38 | goto start 39 | 40 | :jawt_path_defined 41 | set PATH=%JAWT_PATH%;%PATH% 42 | echo jawt.dll path: %JAWT_PATH% 43 | goto start 44 | 45 | :start 46 | "%JAVA%" -Dsun.java2d.d3d=false -Djava.library.path="%~d0%~p0java" -jar "%~d0%~p0java\VncViewer.jar" -reqarch @REQARCH@ %* 47 | -------------------------------------------------------------------------------- /win/vncviewer/vncviewer.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TurboVNC/turbovnc/8c2d62f43f50cc42856405ddef470dc928035954/win/vncviewer/vncviewer.ico -------------------------------------------------------------------------------- /win/vncviewer/vncviewerw.bat.in: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal enableextensions enabledelayedexpansion 3 | 4 | set CUSTOMJREPATH=%~d0%~p0java\jre 5 | if exist "%CUSTOMJREPATH%" ( 6 | set JAVAW=!CUSTOMJREPATH!\bin\javaw 7 | set JAWT_PATH=!CUSTOMJREPATH!\bin 8 | goto jawt_path_defined 9 | ) 10 | 11 | if DEFINED JAVA_HOME goto java_home_defined 12 | 13 | set JAVAW=javaw 14 | goto java_home_undefined 15 | 16 | :java_home_defined 17 | set JAVA_HOME=%JAVA_HOME:"=% 18 | if "%JAVA_HOME%"=="" ( 19 | set JAVAW=javaw 20 | ) else ( 21 | set JAVAW=%JAVA_HOME%\bin\javaw.exe 22 | set JAWT_PATH=%JAVA_HOME%\bin 23 | ) 24 | if DEFINED JAWT_PATH goto jawt_path_defined 25 | 26 | :java_home_undefined 27 | rem This should work with Java 7 and later. 28 | for /f "delims== tokens=2,3*" %%i in ('"%JAVAW% -XshowSettings:properties -version 2>&1 | findstr sun.boot.library.path"') do set _TMP=?%%i 29 | set _TMP2=%_TMP:? =% 30 | if EXIST "%_TMP2%\jawt.dll" set JAWT_PATH=%_TMP2% 31 | if DEFINED JAWT_PATH goto jawt_path_defined 32 | 33 | rem Maybe we're using Java 6? 34 | if EXIST "c:\Program Files\Java\jre6\bin\jawt.dll" set JAWT_PATH=c:\Program Files\Java\jre6\bin 35 | if DEFINED JAWT_PATH goto jawt_path_defined 36 | 37 | echo WARNING: Could not find jawt.dll. Some features may not work properly. 38 | goto start 39 | 40 | :jawt_path_defined 41 | set PATH=%JAWT_PATH%;%PATH% 42 | echo jawt.dll path: %JAWT_PATH% 43 | goto start 44 | 45 | :start 46 | start /b "" "%JAVAW%" -Dsun.java2d.d3d=false -Djava.library.path="%~d0%~p0java" -jar "%~d0%~p0java\VncViewer.jar" -reqarch @REQARCH@ %* 47 | --------------------------------------------------------------------------------