Jérôme Duval
59a481a049
Terminal: support for overlined text
...
Change-Id: I7444acb1da4c225b4af5a527fb5b0cd2d5ac2b5d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9635
Reviewed-by: waddlesplash <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-09-10 11:06:52 +00:00
Jérôme Duval
2858af6540
Terminal: CSI REP min value is 1
...
Change-Id: I73666750b92ed64affb975dcba207c972567ea88
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9634
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2025-09-10 11:06:52 +00:00
Jérôme Duval
6ec9699bb5
Terminal: add support for DECRQM
...
* report mouse state, report cursor blink, report bracketed state
* introduce modes for flags to simplify the code
* keep modes in TerminalBuffer, TermParse can then write responses.
Change-Id: Id9961e90a96420ee63aca17375bd7f0a748d083a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9633
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-09-10 11:06:52 +00:00
Jérôme Duval
0937305b84
gnu/sched.h: fix CPU_COUNT on gcc2 C89
...
Change-Id: Ia193e342d2bbac8060189f062e35aca47426444e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9626
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-09-03 15:10:23 +00:00
Jérôme Duval
e1e1c75a1f
gnu/sched.h: fix CPU_* definitions to match glibc
...
add CPU_COUNT and cpu_set_t
Change-Id: I9b92cab27a8bb4fda71a99721801013647e02588
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9618
Reviewed-by: Jérôme Duval <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-09-01 08:00:26 +00:00
Jérôme Duval
ad49acb949
null: merge /dev/zero and add a /dev/full
...
present on both FreeBSD and Linux.
useful to test a "disk full" condition.
Change-Id: Ibac6b50e8063c90e3e324ec04ac136c34298cc7f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9617
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-08-29 06:57:40 +00:00
Jérôme Duval
843f2bcce4
ext2: fix inode blocks count after enlarge or shrink
...
Change-Id: I6ac6253b761f25d567b969d8303fbf0858e47221
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9616
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-08-28 13:12:23 +00:00
Jérôme Duval
2df6cc0b3b
ext2: don't put the root vnode in unmount hook
...
as the vfs already put all vnodes before calling unmount.
found with the guarded heap.
Change-Id: Ia8d9ea22db1eb4241efe470bea27a00a413bedb3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9615
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-08-28 13:12:23 +00:00
Jérôme Duval
795849800c
ext2: remove orphan list support
...
it's too easy to get a broken orphan list.
Change-Id: Ib84e84bd685017cb7e1d1a3ae34f0fa6897aacec
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9614
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-08-28 13:12:23 +00:00
Jérôme Duval
aa31f66532
ext2: fix htree first splitting and checksumming
...
fix #19665
Change-Id: Id4bba3541f750a7b4756a80ee0234f34c25dcf98
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9449
Reviewed-by: waddlesplash <[email protected] >
2025-07-09 18:46:01 +00:00
Jérôme Duval
334de37d58
udp: empty address is different from uninitialized address
...
* instead teach getpeername that family is to be checked.
* fix #19652
Change-Id: I0e2150820687ca08e339adaf111918adc83b9e6b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9397
Reviewed-by: waddlesplash <[email protected] >
2025-06-26 15:09:13 +00:00
Jérôme Duval
2b9fdf7847
ipv4: empty address should be a zero sa_len
...
UdpDomainSupport::ConnectEndpoint() uses SetToEmpty() to unconnect when used
with AF_UNSPEC.
checked against the output of the test sortix/os-test/udp/connect-unconnect-getpeername
Change-Id: Iccfa46399a0e14057459966a2f406469566bcbac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9396
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-06-26 05:43:59 +00:00
Jérôme Duval
48e3aa8081
kernel/socket: allow sendto to an empty address
...
should return EDESTADDRREQ for UDP
checked against the output of the test sortix/os-test/udp/sendto-null
Change-Id: I3bc61e0cc9d75319d61f0395f1ae45d28171bfef
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9395
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-06-26 05:43:59 +00:00
Jérôme Duval
74be257edf
udp: send should return the error on the last send packet
...
checked against the output of the test sortix/os-test/udp/connect-send-error-send
* icmp: add more error codes
Change-Id: I7b1695d37cf5eae8cd09132047404b990f8791dd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9394
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-06-26 05:43:59 +00:00
Jérôme Duval
f2a0f2a3e0
udp: implement shutdown()
...
instead of returning B_NOT_SUPPORTED.
* this fixes a few tests of sortix/os-test/udp.
Change-Id: I961e71cc419ce7ab38419749a42df8737e272c83
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9392
Reviewed-by: waddlesplash <[email protected] >
2025-06-25 13:24:25 +00:00
Jérôme Duval
3aaa4c9d96
udp: a second bind on broadcast address should error with EADDRNOTAVAIL
...
Testcase: https://gitlab.com/sortix/os-test/-/blob/master/udp/bind-conflict-loopback-broadcast.c
Change-Id: I37c6d05910c3d9573610207b650f1957bccd1e47
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9390
Reviewed-by: waddlesplash <[email protected] >
2025-06-24 17:33:06 +00:00
Jérôme Duval
090519cfe5
network/stack: socket_accept: return B_NOT_SUPPORTED for non-stream sockets
...
Testcase: https://gitlab.com/sortix/os-test/-/blob/master/udp/accept.c
Change-Id: I9020292facb47339ede31a8d1c49d197e40d6ca9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9389
Reviewed-by: waddlesplash <[email protected] >
2025-06-24 17:33:06 +00:00
Jérôme Duval
3ef89f758f
network/stack: socket() can error with EPROTOTYPE/EPROTONOSUPPORT
...
as POSIX requires.
Change-Id: Iee15bd3db6283a52ac5bc68be99752f36e12f1ee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9384
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-06-20 22:26:35 +00:00
Jérôme Duval
0b97e6ab9a
tcp: don't notify EPIPE/ENOTCONN when no connect or listen happened
...
Change-Id: I18bf8ceee7963729c5037e39fc1c23f243eba0bb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9380
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-06-20 11:55:44 +00:00
Jérôme Duval
0847894277
tests/storage: reorder tests
...
Change-Id: Ic57c14c8124778b01357ef1afe6c7de7ad7aca8c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9383
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-06-19 15:51:33 +00:00
Jérôme Duval
914d5aea44
kernel/events: event_queue shouldn't be kept after fork()
...
_user_event_queue_wait(): when no timeout is passed, it means infinite timeout
Change-Id: Ic064551251413da8f4788f91d92c13c40201548a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9379
Reviewed-by: waddlesplash <[email protected] >
2025-06-18 17:06:19 +00:00
Jérôme Duval
0b9af29d07
kernel/socket: shutdown() now checks argument how
...
Change-Id: I1d3c7b1e07588f712da094c1872cb63635e4eeee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9378
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-06-17 22:33:08 +00:00
Jérôme Duval
5ac839cb94
kernel/fs: vnode_path_to_vnode(): check directory on trailing slash
...
fix #14352
Change-Id: I2fb7f0f455f46f0b5b2fe0eb487896f41b33a44b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9335
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-06-10 16:00:13 +00:00
Jérôme Duval
23f923bcaf
libbsd: add closefrom() and close_range()
...
Change-Id: I9c88948d6c4d5a32e3aa06cd696e2ce24c2d298f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9334
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-06-09 16:26:13 +00:00
Jérôme Duval
396ebbc16f
POSIX-2024: support for MSG_CMSG_CLOEXEC and MSG_CMSG_CLOFORK
...
Change-Id: I55551860fb7dac5d0c11a6d4201502fff9ab2d13
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9332
Reviewed-by: waddlesplash <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-06-09 16:26:13 +00:00
Jérôme Duval
904fd2abf0
POSIX-2024: support for O_CLOFORK, SO_CLOFORK
...
Change-Id: I4f3a961947eefdeafd5a249499899cc92d67c2d1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9330
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-06-09 16:26:13 +00:00
Jérôme Duval
7b2b77d482
kernel/x86: fix syscall parameters calling user_debug_post_syscall()
...
regression introduced in hrev58093
Change-Id: Ic1a508485c64964b0e2aab85db0989e3a707c958
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9325
Reviewed-by: waddlesplash <[email protected] >
2025-06-03 19:37:39 +00:00
Jérôme Duval
4bb864d0a6
ext2: enable the checksum_seed feature
...
Change-Id: I5a34ae9247220f3c40441623bef2b3806b56d934
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9312
Reviewed-by: Jérôme Duval <[email protected] >
2025-05-28 15:19:17 +00:00
Jérôme Duval
3646c0e4ed
tcp: retransmit SYN when not acknowledged after some time
...
* 4 times one second then exponential back off
* fix #19575
Change-Id: If9348191e1c8260f381e0e6fec338cfe83d53660
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9283
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2025-05-15 08:00:38 +00:00
Jérôme Duval
bfce786a2e
nvme: actually pass parameters to nvme_admin_set_feature()
...
align len parameter type
noticed by waddlesplash, thanks!
Change-Id: I3d9352f253ca0fc3f2be5966e10a354f3f47ef4b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9199
Reviewed-by: waddlesplash <[email protected] >
2025-04-22 20:55:36 +00:00
Jérôme Duval
d6547c7f81
kernel & libbsd.so: add getloadavg() and _user_get_loadavg()
...
the algorithm and reference values are from FreeBSD.
Change-Id: Ia74a796e13adce6a70434c7546c25ca3d553f11f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9150
Reviewed-by: waddlesplash <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-04-21 18:43:29 +00:00
Jérôme Duval
893afab7d1
kernel/fs: create_dir should return EEXIST before EROFS
...
fix #19123
Change-Id: I020ba4fd69a765d3bafa578512ad127384a85e3b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9142
Reviewed-by: Jérôme Duval <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-03-24 21:24:36 +00:00
Jérôme Duval
ce6f846b6f
Update haiku-current.list, add haiku-r1beta4.list and haiku-r1beta5.list
...
Change-Id: I00300242e56e50ab312e92057be9113e310af43e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9141
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-03-23 17:26:38 +00:00
Jérôme Duval
ba4b365101
runtime_loader: resolves to weak symbols for non-gcc2 images
...
non-gcc2 can hide conflicting symbols, thus resolving to weak symbols
shouldn't be a problem. This permits add-ons to use the static asan
allocator in the main image.
Change-Id: I28bdd45e636afa4e97dc88b0cc956eae58df1009
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9133
Reviewed-by: Adrien Destugues <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-03-21 08:12:50 +00:00
Jérôme Duval
5cce8bc757
nvme_disk: enable the autonomous power save feature
...
if available.
we follow the algorithm in Linux, choosing at most two power states
with low and higher latencies. this allows to save about 1W power
on a WD Blue SN570 device.
Change-Id: Ic403ec19765e9abff54aed4f6d7dcad8f22695ae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9137
Reviewed-by: Jérôme Duval <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-03-19 22:51:01 +00:00
Jérôme Duval
0890cb4057
nvme: print available power states
...
Change-Id: I0e092211e8cd411e199439e4bc250aaa4488e7ae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9136
Reviewed-by: waddlesplash <[email protected] >
2025-03-19 18:29:50 +00:00
Jérôme Duval
41f477706a
kernel/lib: vsnprintf correctly prints fractions smaller than 0.1
...
zeros between the dot and the next digit were missing.
Change-Id: Ibac3364866d978e140235594c1c173ba19c31f2e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9135
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-03-19 17:40:17 +00:00
Jérôme Duval
7aa3dc423e
launch_daemon: fix stopping services
...
* Job::GetMessenger(): try harder to check the application is valid, not only preregistered.
* LaunchDaemon::_StopJob(): signal SIGTERM instead of SIGINT, to stop the process.
* fix #13320
Change-Id: I612ff0de9bf064fd0a1e1f149cc6021bfaac93bd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9127
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-03-15 18:33:16 +00:00
Jérôme Duval
34c270d993
RosterPrivate: add missing parameters in documentation
...
Change-Id: I7e9ba8fa07eaf95717a31f51273653340864e731
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9126
Reviewed-by: waddlesplash <[email protected] >
2025-03-15 18:33:16 +00:00
Jérôme Duval
3bb7234bcb
launch_daemon: job is launching when condition is met
...
fix Tracker and Deskbar not starting on first boot
Change-Id: I7e1f8009ccb1e620549952d9372a0532e80a633b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9125
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-03-15 13:20:44 +00:00
Jérôme Duval
bf0c6bfb90
libnetwork: freeifaddrs() deletes with the right type
...
to silence libasan on libnetwork
Change-Id: I0a2c35569fe2092d047c830d40763317eb1c4d1b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9123
Reviewed-by: waddlesplash <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2025-03-14 18:30:13 +00:00
Jérôme Duval
52c25f31c7
launch_daemon: setting condition also checks for driver_settings
...
only checks for a field, or field = value
Change-Id: I5dfadb6187831a51e97064cdfed55430b74f7b30
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9117
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-03-11 02:15:39 +00:00
Jérôme Duval
778fe0b67b
driver_settings: bufferSize being zero means buffer overflow
...
Change-Id: I87b4a57c651840ac6aa01d602eddabb192c8c323
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9116
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-03-11 02:15:39 +00:00
Jérôme Duval
63792e3fd0
Revert "driver_settings: Replace type of bufferSize from size_t to ssize_t"
...
This reverts commit d2a423e499 .
this matches the method found in driver_settings.h
Change-Id: Idb1a83dd648d18916ee2ec34727c88fb8f25cb3e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9095
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-03-11 02:15:39 +00:00
Jérôme Duval
7f7d085c59
launch_daemon: implement file_created event
...
Change-Id: Ie42abe85c594be3c354e2d1b5bb25b881a7adea4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9089
Reviewed-by: Jérôme Duval <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-03-11 02:15:39 +00:00
Jérôme Duval
e4e3f81a1b
launch_daemon: failed condition now skips the job
...
Change-Id: I0d3db96a068ecc40dfd1c501dfae5800c0e28116
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9080
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-03-11 02:15:39 +00:00
Jérôme Duval
91880bad83
kernel/vm: when resizing down a VMCache, fill a partial page with zeros
...
* factored out file_cache
* fix two gVisor tests: MMapFileTest.ReadSharedTruncatePartialPage
and MMapFileTest.WriteSharedTruncatePartialPage
* fix #19438
Change-Id: Ia7f119478d306ab6d867632e4a5270733f0b29df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9060
Reviewed-by: waddlesplash <[email protected] >
2025-02-26 17:14:18 +00:00
Jérôme Duval
64a0bc243c
pthread_key: when calling destructors, iterates over keys again
...
when a non-null value is found, up to PTHREAD_DESTRUCTOR_ITERATIONS (4).
* fixes LLVM unit test SanitizerCommon.PthreadDestructorIterations.
Change-Id: I1f9f4d3e8723261326e6e22b0f0d23907dccb59f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8979
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-02-14 18:27:12 +00:00
Jérôme Duval
74b5b25f77
virtio_pci: accept any pci revision for modern devices
...
as in the specification.
Change-Id: I74d667daea386d3189095542d8f515fc3711a910
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8978
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-02-14 12:59:38 +00:00
Jérôme Duval
12b22e8e48
strace: mapping type handler for _kern_map_file()
...
Change-Id: I1f315c285668221fb9ff15165c81dfcd753d7df8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8977
Reviewed-by: waddlesplash <[email protected] >
2025-02-14 12:59:38 +00:00
Jérôme Duval
74e01ea162
BMenuField: SetLabel(): do nothing if current and new label are NULL
...
Change-Id: Ia4bb6f99d3b633a23a43624208e16cb7e4ae0399
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8940
Reviewed-by: X512 X512 <[email protected] >
Reviewed-by: Axel Dörfler <[email protected] >
Reviewed-by: John Scipione <[email protected] >
Tested-by: Commit checker robot <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2025-02-10 21:53:08 +00:00
Jérôme Duval
46dd344bdd
strace: Add tracing for rlimit syscalls.
...
Change-Id: I1e99622027f04fb93d00ebd94b45e05f7142fbec
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8965
Reviewed-by: waddlesplash <[email protected] >
2025-02-10 20:17:28 +00:00
Jérôme Duval
146617c29b
runtime_loader: dlsym(RTLD_NEXT) searches all regions for the caller address
...
clang/lld can put code in multiple regions.
Change-Id: I495e3f12105ef2e894809da7e4a91bac08a12fd6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8961
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2025-02-10 07:37:47 +00:00
Jérôme Duval
b5eb38ec58
shared: use the correct delete for array
...
to silence libasan on libtracker.so
Change-Id: I7c634271f4ec2b4ca0d5f76c18ddbfc7dddf2793
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8910
Reviewed-by: Axel Dörfler <[email protected] >
2025-02-05 16:35:47 +00:00
Jérôme Duval
b71707da2c
kernel: comment should match the guard macro
...
Change-Id: I4cfa9eda18f3502e50adff9ffa8ded47f318f372
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8909
Reviewed-by: Axel Dörfler <[email protected] >
2025-02-05 16:35:23 +00:00
Jérôme Duval
d59339ff6c
x86_cstates: disable C5 and C6 states on Skylake
...
could help with #19341
see https://bugzilla.kernel.org/show_bug.cgi?id=109081
Change-Id: Ide72f46193093c3c4695c39d4466e9418808cbd0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8881
Reviewed-by: waddlesplash <[email protected] >
2025-02-04 17:22:34 +00:00
Jérôme Duval
6c380f3c8e
kernel/x86: add definitions for cpuid leaves
...
remove feature_5_ecx
Change-Id: I247a37c875e5dd04f2239fdceeef67e402b1245d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8880
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2025-02-04 17:22:34 +00:00
Jérôme Duval
aedcf2476d
virtualkeyboard: update keymap when it changed
...
load current keymap on start
Change-Id: I1030cf5aaf9641f7e915f8fc10dec3144cab014f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8904
Reviewed-by: waddlesplash <[email protected] >
2025-02-03 21:27:47 +00:00
Jérôme Duval
0328ffe12a
virtualkeyboard: add a hook for ScreenChanged()
...
Change-Id: I18d2a4e7e29858406c75dae54c6ea6c5f5e0c26b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8903
Reviewed-by: waddlesplash <[email protected] >
2025-02-03 17:14:39 +00:00
Jérôme Duval
9d2283baab
virtualkeyboard: style fixes
...
Change-Id: Iee76c0cae38a0677b60e51f73aa0e2e5d9b7c2ee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8902
Reviewed-by: waddlesplash <[email protected] >
2025-02-03 17:14:39 +00:00
Jérôme Duval
c8cd427e30
build: extend stack protection
...
* use -fstack-protector-strong and -fstack-clash-protection
* also bin and some user add-ons
Change-Id: I593365e55414ac447bde54980a5c73202e9bb172
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8887
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2025-02-03 17:14:18 +00:00
Jérôme Duval
3805924471
kernel: fix warning
...
warning: "user_strlcpy" redefined
Change-Id: I2a0a4307e1ca8904ced7eafb498f9ea94d538362
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8893
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-02-01 20:21:26 +00:00
Jérôme Duval
cb5d195553
fs_shell: fix warning
...
warning: too many arguments for format [-Wformat-extra-args]
Change-Id: If35737dc2fe193923aa1d756cfd10ca6d820a09e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8892
Reviewed-by: waddlesplash <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2025-02-01 20:21:26 +00:00
Jérôme Duval
f9af89e754
RemoteMessage.h: fix warning
...
error: 'rectCount' may be used uninitialized [-Werror=maybe-uninitialized]
Change-Id: Id899f6ef9c249861dbe286a71109c461501519b4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8891
Reviewed-by: waddlesplash <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2025-02-01 20:21:26 +00:00
Jérôme Duval
e01dfaf620
build: add acpi_thermal, amd_thermal and pch_thermal to minimum definition
...
Change-Id: I943b77390266c4e444ddb406455ebaa6a9549565
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8856
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2025-01-23 05:25:54 +00:00
Jérôme Duval
4d5debea9e
amd_thermal: new driver
...
inspired by ksmn in OpenBSD
Change-Id: Ic272fc15f1ea082496db99ed2df15c77655ba9c7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8855
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-01-23 05:25:54 +00:00
Jérôme Duval
77f06cf2ae
pch_thermal: use user_memcpy() to write in a user buffer
...
Change-Id: I8eccde638ba30051fcec375b7d616e1d1bddf5ed
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8854
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2025-01-23 05:25:54 +00:00
Jérôme Duval
5a2be54dd0
kernel: data_acquisition_other is also found in drivers
...
Change-Id: Ia3f9c661a97b54d9bfa33ca0df9f5bd773023c2f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8853
Haiku-Format: Haiku-format Bot <[email protected] >
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2025-01-23 05:25:54 +00:00
Jérôme Duval
04c90835ac
POSIX: add pthread_getcpuclockid()
...
fix #15615
Change-Id: I6b34f97464fac97d0b339fa338cfc5df34536080
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8681
Reviewed-by: Jérôme Duval <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2024-12-17 09:45:13 +00:00
Jérôme Duval
d866277547
virtio_pci: in setup_queue(), only check queue number on v1 devices
...
* fix #18962
* bus->queue_count wasn't initialized yet so the check could succeed
or not, depending on the init value for memory: on release, 0 mostly,
on nightly, a non-zero value.
Change-Id: Id745932e8171abe3b8b78a3e9b2f2058c9507f7a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8618
Tested-by: Commit checker robot <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2024-12-01 19:32:25 +00:00
Jérôme Duval
fbdac8d61e
headers: Don't define static_assert for C23 and C++
...
Change-Id: I1e67b09b2a310de5cf41c4eef9af46f78b4e9de0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8586
Reviewed-by: waddlesplash <[email protected] >
2024-11-21 19:26:51 +00:00
Jérôme Duval
0edecdc00e
BBitmap: Amend special-casing for B_RGB32 in SetBits.
...
* Spirograph uses SetBits with length 1 und 4, which can't work as
expected. As Spirograph uses the same source and target colorspace,
the memcpy codepath is used with the right length.
* fix #12931
Change-Id: I4f27e748fb842c2d81d4161e7c94586844995bdf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8562
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2024-11-20 10:03:58 +00:00
Jérôme Duval
ba8970a3e0
haiku_loader.efi: add support for rgb16
...
Change-Id: I7634b8734d057f99d69c494ea941e1f38f94b757
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8564
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2024-11-15 02:06:28 +00:00
Jérôme Duval
1e3e4210de
FAT: restore all lowercase labels, the behavior from r1beta4.
...
Change-Id: If65e2899b841cfb6be68b7f896a0cb199098232d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8530
Tested-by: Commit checker robot <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: Axel Dörfler <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2024-11-11 10:11:08 +00:00
Jérôme Duval
a31d463b38
Screen: initialize fUserSelectedColorSpace
...
should fix #19244
Change-Id: I629cd6689409f91a6399d3cca821759b59c94a0a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8558
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2024-11-10 19:52:34 +00:00
Jérôme Duval
67c520afb0
auvia & es1370: let userland access audio buffers
...
Change-Id: I23873c7e102f0a0ba112f427d72b185887755835
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8521
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2024-11-05 16:54:59 +00:00
Jérôme Duval
7190c0f117
libroot: add tcgetwinsize() and tcsetwinsize() for POSIX.1/2024
...
Change-Id: I46c0b7b5b9c8e7c74278a6e10e9b83142db21d94
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8520
Reviewed-by: waddlesplash <[email protected] >
2024-11-04 17:55:40 +00:00
Jérôme Duval
7a4e12b7b8
libroot: add ptsname_r for POSIX.1/2024
...
Change-Id: I9996ff998b2b52a65a101cf7075a3ffb37220962
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8519
Reviewed-by: waddlesplash <[email protected] >
2024-11-04 17:55:40 +00:00
Jérôme Duval
8b5cc9cf52
libroot: move memmem for POSIX.1/2024
...
Change-Id: I1b051586c993cd0e3d43abaa22a3722699f7134e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8517
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2024-11-04 17:55:40 +00:00
Jérôme Duval
6beff0d163
kernel/libnetwork: add accept4() from POSIX.1/2024
...
* add SOCK_NONBLOCK and SOCK_CLOEXEC
* also extends the type parameter on socketpair() and socket()
Change-Id: I73570d5bfb57c2da00c1086149c9f07547ba61ce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8515
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2024-11-04 17:55:40 +00:00
Jérôme Duval
966076b273
kernel/libroot: add dup3() from POSIX.1-2024
...
this adds a parameter to the dup2 syscall. Adjust strace.
Change-Id: Icc2d0e054365865d38e5d596843a47c95100ca59
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8514
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2024-11-04 17:55:40 +00:00
Jérôme Duval
11cd4af6e1
kernel/libroot: add pipe2() from POSIX.1-2024
...
this adds a parameter to the create_pipe syscall. Adjust strace.
Change-Id: I83e9f039eb28c862458654b66c03e2e21a258822
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8513
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2024-11-04 17:55:40 +00:00
Jérôme Duval
30179dd326
libroot: add reallocarray() from POSIX.1-2024
...
Change-Id: I75d469ad9a01eb221ca607830589a7794eff71e8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8512
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2024-11-04 17:55:40 +00:00
Jérôme Duval
53cab618ef
kernel/legacy_drivers: check priority when finding a driver with the same leaf name
...
* fix get_priority(): only compares the path length, not the buffer length.
* fix #17264 second part (don't replace the user driver with the system one)
Change-Id: I199ba5751884a4f2ec86f6d9fb81cd560fe164a8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8500
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2024-10-22 18:42:05 +00:00
Jérôme Duval
89264cfe2e
kernel/legacy_drivers: reverse order of search for kernel add-ons
...
* DirectoryIterator uses a stack to hold the paths values, pushed in SetTo(),
then popped with GetNext(). So the path directories have to added in reverse
order.
* fix #17264
Change-Id: I728365f069071f109c79e647d6a33cd24f68ce0e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8498
Tested-by: Commit checker robot <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2024-10-21 16:26:23 +00:00
Jérôme Duval
e4a557f372
kernel/fifo: honor O_NONBLOCK on open() for FIFOs
...
according to POSIX:
- O_NONBLOCK set:
* read-only open() shall return asap
* write-only open() shall return an error if no reader.
- O_NONBLOCK clear:
* read-only open() shall block until a writer opens.
* write-only open() shall block until a reader opens.
for FIFOs used for pipes, open with O_NONBLOCK then reset O_NONBLOCK.
can be tested with:
bash -norc -c '/bin/printf "test" > >(/bin/tee -a trace.log) 2>&1'
Change-Id: I3cb70810fec50f643b5e6e84dbdeb0a16961936a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8469
Reviewed-by: waddlesplash <[email protected] >
2024-10-19 18:39:49 +00:00
Jérôme Duval
039f93ce5e
ActivityMonitor: restores default position when it starts out of screen
...
Change-Id: Ied6339a900f3314be39a7ec1a4b9906d20c529e7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8373
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2024-09-30 15:57:23 +00:00
Jérôme Duval
ad747ccb1c
virtio_pci: Fix index out of bounds
...
* Update size of registersArea[] to fix index out of bounds
in init_bus() and uninit_bus() caused by mismatching
between sizeof(registersArea[]) and loop counters.
Pointed out by cppcheck.
* actually use index to populate registers and registersArea arrays.
Change-Id: Iec6337c7dd475bb86f94fe8f2a7b8fed9776ee28
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8376
Reviewed-by: waddlesplash <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2024-09-30 15:57:23 +00:00
Jérôme Duval
1c64d7a913
virtio_pci: poll device status after resetting the device
...
From the spec:
"After writing 0 to device_status, the driver MUST wait for a read
of device_status to return 0 before reinitializing the device."
Change-Id: Ib708d6ec843877b40cdb64c15beacec3dcc4c009
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8358
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2024-09-24 16:16:14 +00:00
Jérôme Duval
0f807f4401
kernel/x86: dump hwpstate, cpb, proc_feedback features
...
Change-Id: I06b6da05013c7271d0a97d5aa3af2b6f416496a9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8331
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2024-09-18 16:21:44 +00:00
Jérôme Duval
017c5e70d5
Shortcuts: Mute shortcut is now from "toggle mute" instead of "mute"
...
Change-Id: I62ded761ac096d5ae29d7c82e0d562995a2c3811
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8347
Reviewed-by: Axel Dörfler <[email protected] >
2024-09-18 14:01:55 +00:00
Jérôme Duval
c936122410
intel: enable the active checkbox, if it's the first primary partition
...
* also set the active checkbox on edit
* part of #7930
Change-Id: Ia91e5f7295e7868647cf940aa1f281bd8dab1918
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8323
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2024-09-12 18:44:32 +00:00
Jérôme Duval
6533131daf
posix: dladdr was introduced in POSIX-2024, but with Dl_info_t
...
instead of Dl_info
Change-Id: Id2fe6d4b094c57ea49260c5765206c5e4bac5a63
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8274
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2024-09-11 14:02:22 +00:00
Jérôme Duval
1754f053a3
pthread: add PTHREAD_MAX_NAMELEN_NP for pthread_setname_np
...
Change-Id: I52e9e8a672f76048e1ff0c4a6ddeeecb2d134a5a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8259
Reviewed-by: Axel Dörfler <[email protected] >
2024-09-09 14:41:35 +00:00
Jérôme Duval
c27e4aff72
kernel: link with orphan sections warning
...
* this avoid letting the linker defaults to take precedence.
* add common/debuginfo.ld taken from ppc/kernel.ld for debug sections,
extended by me for Dwarf 4/5.
* put the __bss_start symbol in the .bss section.
* add asserts for expected empty sections on x86 or x86_64.
Change-Id: If34433a8d7d82b3f115fe6dbf5881c1f9ea42442
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8229
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2024-09-05 15:17:47 +00:00
Jérôme Duval
1512c9d2f3
Add the linprog headers to the haiku_devel package.
...
these are required by libalm headers
Change-Id: I7eb0164383ca919f0ede72952759a85a66a88c70
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8086
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2024-08-21 17:17:43 +00:00
Jérôme Duval
6aab5c47c2
XHCI: define the SuperSpeedPlus ID for 10Gbps connection speed
...
can be found on USB 3.1 xhci controllers in the PORTSC register
Change-Id: I11df7e22ca1ab71b42325f8c3db1e4745287feeb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7923
Haiku-Format: Haiku-format Bot <[email protected] >
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2024-08-01 04:24:54 +00:00
Jérôme Duval
f00e314e57
kernel: Vector: fix warning
...
template-id not allowed for constructor in C++20
Change-Id: I562856908ab2deb9fdbf6bf24eedb58e5ebf6c9f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7908
Tested-by: Commit checker robot <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2024-07-29 08:11:40 +00:00
Jérôme Duval
7ffd2c9e59
kernel: LegacyDevice: SetHooks() needs a non-null fDeviceModule
...
fix gcc analyzer warning
Change-Id: Ic2aaeebb516f680ba40c343c01d5be1a9232d46d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7907
Haiku-Format: Haiku-format Bot <[email protected] >
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2024-07-29 08:11:40 +00:00
Jérôme Duval
9d18e52191
kernel: newGroups was allocated with malloc, deallocate with free()
...
fix gcc analyzer warning
Change-Id: I0427a3d9b288e081055242fff59f2e15e478dac6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7904
Reviewed-by: waddlesplash <[email protected] >
Haiku-Format: Haiku-format Bot <[email protected] >
2024-07-26 16:14:04 +00:00