Geoffrey McRae
420eaebb71
[cmake] all: update cmake_minimum_required version to 3.10
2025-03-05 12:27:23 +11:00
Geoffrey McRae
551298ed5b
[doc] all: update copyright year
2025-03-05 12:24:38 +11:00
Geoffrey McRae
4e8201da07
[common] ivshmem: default to /dev/kvmfr0 if it's found
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled
2024-09-05 14:01:28 +10:00
Geoffrey McRae
fdad5daff8
[host/common] d12: add debug tracing
2024-03-11 19:14:54 +11:00
Geoffrey McRae
ad7ac6540f
[host] d12: implement hdr16 to hdr10 conversion
2024-02-28 11:59:58 +11:00
Geoffrey McRae
71b826458d
[host] fix host-windows-cross github compilation
2024-02-27 19:14:58 +11:00
Geoffrey McRae
0b210a280d
[all] update the copyright to 2024
2024-02-01 17:16:31 +11:00
Geoffrey McRae
b776b00a67
[common] host: fix compliation on windows
2023-12-07 16:11:28 +11:00
Geoffrey McRae
6104956a27
[common] reformat the debug output to be more useful
2023-12-07 15:37:54 +11:00
Geoffrey McRae
5d4c1d348c
[all] refactor cpuInfo function names
2023-11-19 01:22:09 +11:00
Geoffrey McRae
38b6b0ac40
[common] windows/event: fix control flow issue
2023-11-11 20:34:30 +11:00
Geoffrey McRae
ec88a52fe2
[common] ivshmem: fix possible resource leak
2023-11-11 14:04:54 +11:00
Geoffrey McRae
aa42751743
[client] common: fix time of check/time of use issue
2023-11-11 13:48:41 +11:00
Geoffrey McRae
9a53880b9b
[common] ivshmem: fix failure to check ioctl for error result
2023-11-11 13:48:41 +11:00
Geoffrey McRae
138a0aee53
[all] update cmake minimum version
2023-11-10 06:28:05 +11:00
Geoffrey McRae
2e515657dd
[all] update/add license headers
2023-10-20 15:36:34 +11:00
Geoffrey McRae
11676d3d56
[common] windows: fix invalid free of stack allocated memory
2023-04-11 16:51:25 +10:00
Quantum
a8521b821e
[all] cmake: standardize indentation to 2 spaces
2022-05-29 11:16:16 +10:00
Geoffrey McRae
3a8cb6a613
[client/common] fixes for issues detected through static analysis.
2022-03-07 10:14:52 +11:00
Geoffrey McRae
f3ebde7d9f
[common] ivshmem: fix memory leak
2022-01-25 03:37:56 +11:00
Geoffrey McRae
905c1d7f58
[common] ivshmem: check for failure to find a device
2022-01-25 03:37:56 +11:00
Geoffrey McRae
9c49dc6efd
[common] linux/time: fix memory leak
2022-01-14 14:19:16 +11:00
Geoffrey McRae
344d2ec599
[common] linux: replace create_timer with a single threaded timer
...
Now LG uses a 25Hz tick timer it is an issue that `create_timer` spawns
a new thread for every single timer event, so instead multiplex all the
timers into a single thread with a 1ms resolution.
2022-01-12 13:00:12 +11:00
Quantum
2099161b7e
[client] cpuinfo: implement CPU socket count for Windows
2022-01-07 21:03:20 +11:00
Quantum
a40a964b30
[client] cpuinfo: implement CPU socket count for Linux
2022-01-07 21:03:20 +11:00
Quantum
194241c5a3
[common] cpuinfo: add sockets to interface
2022-01-07 21:03:20 +11:00
Geoffrey McRae
952ebea2c5
[all] refresh copyright dates
2022-01-05 19:42:46 +11:00
Quantum
57d220a43b
[common] open: detach xdg-open instead of waiting for it
...
Sometimes, e.g. when xdg-open has to start the browser, the xdg-open
process can stay around until the browser exits, which freezes the
client. Instead, we should not wait for xdg-open to exit.
However, we can't simply not call wait, as that would leave the
xdg-open process around as a zombie. We could turn off the SIGCHLD
handler, but that's a global solution to a local problem. Instead, we
call setsid and fork again to detach the xdg-open process as if it's a
daemon, and let init take care of the reaping process.
Co-Authored-By: Tudor Brindus <me@tbrindus.ca >
2021-09-27 13:35:08 +10:00
Quantum
43b0e80f93
[common] ivshmem: use e.g. instead of incorrect ie for example
2021-09-04 13:28:34 +10:00
Quantum
ab033d84b1
[common] cpuinfo: handle more than 64 threads on Windows
...
The old code will not correctly report the number of threads on CPUs with
more than one processor group, i.e. when there are more than 64 logical
processors (threads).
2021-09-04 13:25:24 +10:00
Quantum
ffabdd348c
[common] cpuinfo: trim trailing whitespace from model name on Windows
2021-08-31 20:57:34 +10:00
Geoffrey McRae
5fc561fa63
[common] cpuinfo: trim any trailing whitespace from CPU model
2021-08-31 20:20:11 +10:00
Quantum
8514f35474
[common] windebug: handle FormatMessage failure
2021-08-31 20:14:29 +10:00
Quantum
0faafbff47
[common] cpuinfo: implement for Windows
2021-08-31 20:14:10 +10:00
Quantum
a6112feddb
[common] cpuinfo: implement for linux by parsing /proc/cpuinfo
2021-08-31 20:14:10 +10:00
Quantum
e6df0acad9
[common] vector: eliminate double allocation when possible
...
This commit creates two constructor/destructor pairs for vector:
* vector_alloc/vector_free dynamically allocates the vector itself
* vector_create/vector_destroy uses existing Vector objects
2021-08-28 19:17:15 +10:00
Quantum
e040b88bf0
[common] ivshmem: switch to using vectors
2021-08-24 22:10:36 +10:00
Quantum
ccda264648
[common] windebug: pass FORMAT_MESSAGE_IGNORE_INSERTS to FormatMessage
...
This avoids problems when the error message we are told to format contains
inserts like %1.
See https://devblogs.microsoft.com/oldnewthing/20071128-00/?p=24353 for
details (or for fun).
2021-08-17 19:07:41 +10:00
Quantum
2de9e3e9be
[common] remove all casts around malloc
2021-08-16 16:26:58 +10:00
Quantum
4d907cecab
[common] use correct argument order for calloc
...
The signature for calloc is void *calloc(size_t num, size_t size), where num
is the number of elements to allocate, and size is the size. Therefore, to
allocate a single struct, we should pass 1 for num and the size of the struct
as size.
In some places, we use the opposite order, and we should flip it.
2021-08-16 16:25:59 +10:00
Tudor Brindus
1c5620ba25
[common] use variable-relative sizeof where possible
2021-08-16 16:22:55 +10:00
Quantum
b2630024a7
[common] all: switch asserts to DEBUG_ASSERT
2021-08-14 12:19:07 +10:00
Quantum
e5d252290d
[common] array: add ALIGN_PAD macro for common logic
...
ALIGN_PAD(x, a) returns x rounded up to the nearest multiple of a.
2021-08-14 08:05:29 +10:00
Quantum
717b90366b
[common] ivshmem: use correct page alignment logic
...
Before, if the size is exactly the multiple of the page size, an extra padding
page is added for no reason. This commit fixes the logic and also uses the
page size obtained dynamically.
2021-08-13 20:24:15 +10:00
Quantum
9f4afcd944
[common] crash: use DEBUG_WINERROR on windows
2021-08-11 02:41:33 +10:00
Quantum
87a21f5f5e
[host] windows: use DEBUG_WINERROR for CallNtPowerInformation
...
We need to use the function RtlNtStatusToDosError to convert NTSTATUS to
Windows error codes.
2021-08-09 17:07:25 +10:00
Quantum
2f8ebc29e8
[common] open: implement opening URLs in browser
...
This is currently only implemented for Linux.
On Windows, ShellExecute should be used, but that should be done when it's
actually needed so it could be tested.
2021-08-05 22:43:46 +10:00
Quantum
51b9cd4e5a
[all] copyright: use unicode copyright sign ©
...
This is done for consistency with the license strings in appstrings.c.
2021-08-04 21:16:35 +10:00
Geoffrey McRae
90b90e667a
[common] event: lgResetEvent should return the last state of the event
2021-08-01 17:14:58 +10:00
Geoffrey McRae
a094fb8104
[common] events/linux: fix failure to call pthread_cond_broadcast
2021-08-01 17:13:31 +10:00