Commit Graph
67700 Commits
Author SHA1 Message Date
Chris Roberts 7521af58c4 syslog_daemon: add syslog_max_history option
This driver setting in ~/config/settings/kernel/drivers/kernel allows
setting an arbitrary number of syslog files to keep around.  The
files are now named with a numeric suffix instead of being called
"syslog.old".  The old files are rotated so that syslog.1 is the
newest, then syslog.2, and so on.

Change-Id: I7e3d01caa34680553b161ceb27ab8c3b2eaf508c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9055
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-03-24 21:24:21 +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
X512 c02537f91b BPicture: add missing WriteSetBlendingMode method.
Actual blending mode writing is still disabled for now. According to
previous commit messages it cause problems with BView::Begin/EndLayer
API.

Change-Id: Ib3c58b05a949e556e9f14a57822b20cd259e12d4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8559
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-03-23 10:30:14 +00:00
PulkoMandy eb853f8901 elf.h: add some missing macros
ElfW(x): to automatically use the relevant Elf32 or Elf64 type for the
current system

NT_GNU_BUILD_ID: constant defining the GNU "build ID" note in ELF files.

WebKit uses both of these to store info in javascript object caches, so
it can detect if the same version of WebKit is being used and the cache
can safely be reused, or if it should be reconstructed.

Change-Id: Ia9eccc1acc79ac4982b87609d2815c4a611e4176
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9143
Reviewed-by: nephele nephele <[email protected]>
2025-03-23 10:29:23 +00:00
Autocomitter ade0f7d831 Update translations from Pootle 2025-03-22 08:09:44 +00:00
Augustin Cavalier c6f736315a BSlider: Copy the UpdateText inside UpdateTextChanged.
We can't rely on it not changing between calls, especially as
MaxUpdateTextWidth() changes the value and re-gets it, and
that's called at the end of this method always. So we need to
keep our own copy rather than using the one that's owned by
the subclass.

Fixes a use-after-free uncovered by the guarded heap in VolumeSlider,
reported in #19493.
2025-03-21 11:54:37 -04:00
Augustin Cavalier aa2b9830e1 libroot/glibc: Zero-initialize the mbstate.
May fix #19493.
2025-03-21 11:52:00 -04: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
Augustin Cavalier a3fe8122be libroot/glibc: Delete even more unused stuff. 2025-03-20 17:22:10 -04:00
Augustin Cavalier 88b063d5e6 libroot/glibc: Delete now-uneeded locale files. 2025-03-20 16:45:53 -04:00
Augustin Cavalier 843c97b01f libroot: Make glibc use the native Haiku locale structs.
It accesses values through macros, so just write functions that
fetch the appropriate value from Haiku's structures.

Note that the values for multibyte digit characters are hardcoded.
As far as I can tell, we never set or updated these in glibc's
locale structures, so it always just used the default, so this
should not be a behavioral change from before.
2025-03-20 16:31:53 -04:00
Augustin Cavalier 910fdeee84 libroot/glibc: Delete more unused stuff.
Fixes more warnings.
2025-03-20 16:06:43 -04:00
Augustin Cavalier cf8410ca16 libroot/musl: Clean up x86_64 math Jamfile rules.
No functional change intended.
2025-03-20 16:06:43 -04:00
zeldakatze cca890220c libroot: add fpclassify & s_cacos to the PPC build
This fixes part of the PPC build process

Change-Id: I2321e9bf8a080f5973794da6ea0d69536dfdec6b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9139
Reviewed-by: waddlesplash <[email protected]>
2025-03-20 19:25:55 +00:00
Augustin Cavalier cd7aab83d1 headers/posix: Drop commented-out strsep from string.h.
It's in the BSD header instead.
2025-03-20 14:00:48 -04:00
Augustin Cavalier 42adc340f4 libroot: Add missing files to arm64 Jamfiles to fix the build. 2025-03-20 14:00:31 -04:00
Augustin Cavalier 2ab23a1ade libroot/glibc: Fold needed declarations in stdlib/stdlib.h into include/stdlib.h.
Most aren't needed. This fixes quite a lot of compiler warnings.
2025-03-20 13:50:47 -04:00
X512 2e46e092db drivers/input: fix unkillable input_server
Change-Id: I8bcad3a166ccf45bac0832e9cfbdfbf601abbd13
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9138
Reviewed-by: waddlesplash <[email protected]>
2025-03-20 17:37:01 +00:00
Jim906 ed030a3905 nfs4: Add debug output functions
* Create Dump functions for several classes.
* Add 2 nfs4 kernel debugger commands.
* Incorporate the shared macros from DebugSupport.h.

The Dump functions accept an argument that determines type of output
(dprintf/kprint).  In cases where the class has an internal lock, Dump
is calling a separate _DumpLocked(), just so the output can be
done by a const function.

Change-Id: Id8da904726cb1a3ffcf9e9ac13452d1be1c9e00a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9134
Reviewed-by: waddlesplash <[email protected]>
2025-03-20 17:32:51 +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
Augustin Cavalier 55835d115b libroot/glibc: Add back cacos files to ARM sources. 2025-03-19 13:29:56 -04:00
Augustin Cavalier ac70aeab5b libroot/glibc: Remove some more unneeded stuff. 2025-03-19 13:29:41 -04:00
Augustin Cavalier a9f0038de7 libroot/musl: Add fpclassify to riscv64 & arm math sources.
Should fix the build there after recent changes.
2025-03-19 13:14:16 -04:00
Augustin Cavalier 91b06c1ca3 libroot: Replace most complex functions with musl's.
All compiled with the new GCC. Some where musl had TODOs/FIXMEs,
or where we would need the newer libgcc, the glibc versions are
left as-is.
2025-03-19 13:13:47 -04:00
Augustin Cavalier 42dcb9029f libroot/glibc: Delete more unused math files. 2025-03-19 11:46:56 -04:00
Augustin Cavalier 3ddb199a6e libroot: Replace s_ math routines from glibc with fully generic versions.
We define these as __builtins in math.h, but the compiler might
use out-of-line versions, and we need to export the symbols anyway.
musl implements the __fpclassify routines, so just use them.
2025-03-19 11:45:58 -04:00
Augustin Cavalier a5854d713e libroot/glibc: Add missing stdio_ext methods needed by gnulib.
Otherwise it needs to use libio internals to implement these,
which we don't want. musl also exports all these methods for
the same reason.

Implementations taken from glibc 2.15, current gnulib (5077f67), and
in a few cases tweaked for better Haiku support.

Should fix #19479.
2025-03-18 22:03:10 -04:00
Augustin Cavalier 0796aaabfc libroot: Clean up fpurge implementation.
* Take it from upstream glibc 2.15, much closer to the version we use.

 * Drop fpurge from stdio.h, it's nonstandard. Keep it around for
   ABI compatibility for now (BeOS didn't have it.) __fpurge is left
   in stdio_ext.h.
2025-03-18 22:03:10 -04:00
Augustin Cavalier 802a83e7ed libroot/glibc: Drop some unused stdio files. 2025-03-18 22:03:10 -04:00
Augustin Cavalier bb61eb2df3 libroot: Update stubs. 2025-03-18 19:51:24 -04:00
Augustin Cavalier e22463dc84 libroot: Update stubs for GCC2. 2025-03-18 19:45:46 -04:00
Augustin Cavalier d17f55ce84 libroot: Add R5 compatibility definition to OpenBSD malloc glue.
Only for GCC2.
2025-03-18 19:45:27 -04:00
Augustin Cavalier 13a3941b17 libroot/malloc: Don't export malloc_options.
It isn't needed.
2025-03-18 19:39:50 -04:00
Augustin Cavalier ee31ca9f7e libroot: Restore inadvertently removed mkstemps. 2025-03-18 19:30:58 -04:00
Augustin Cavalier a8b3a6b022 libroot: Replace tempfile functions with BSD or homegrown versions.
Same upstream commit as the mktemp file came from. Some modifications
to integrate better with Haiku.

FreeBSD has no tmpnam_r, so a new version implemented here
(inspired by FreeBSD's tmpnam implementation) that is fully
thread-safe.
2025-03-18 18:56:03 -04:00
Augustin Cavalier 8fadf59d1a headers: Move asprintf & vasprintf to stdio.h.
They're implemented in libroot, not libbsd, and they're now
in POSIX-2024 anyway.
2025-03-18 18:44:48 -04:00
Augustin Cavalier be5f87e9b9 libroot: Import most changes to mktemp from upstream FreeBSD.
From upstream dc36d6f9bb1.

Methods not declared for Haiku removed, and the old randomization
code is retained for now (but with getentropy() at least.)
2025-03-18 18:11:42 -04:00
Augustin Cavalier 0b27126820 libroot: Replace [efg]cvt implementations with musl's.
From latest musl release (1.2.5). This drops the _r versions,
which are nonstandard and are not present in our headers
(nor BeOS' headers.)
2025-03-18 18:01:03 -04:00
X512 0a80f7f0e2 MediaPlayer: add 25% video scale menu option
Useful for high resolution video on low resolution screen.

Change-Id: I9e8c5ee4eee4ea39b14af896d126d412d087aa16
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9132
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-03-18 11:22:55 +00:00
Máximo Castañeda bbac6dc904 app_server: transform text decoration lines
Apply the full affine transformation, not just a translation.

Change-Id: Ifbb4ce0e3be3b0746474fcefad2d00c08a2f3513
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9131
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2025-03-17 18:57:19 +00:00
Máximo Castañeda 396f9dc3e2 app_server: fix text drawing with clipping path
Until we have a subpixel antialiasing + mask pipeline, fallback to
vector glyph data and grayscale AA.

Fixes: #19435
Change-Id: Ibc102f4a1054a378e28f2882df84828891500155
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9130
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2025-03-17 18:57:19 +00:00
Máximo Castañeda 28cd4f5dd7 app_server: check glyph bounding box
AGG scanline storage is initialized with min and max coordinates with
maximum absolute values in the opposite direction, defining an invalid
rect that is updated when something is rendered. For a whitespace glyph
nothing is rendered, so we get an invalid bounding box. The moment we
offset that, the values overflow giving a valid enormous rect, which we
later use.

Fixes a crash in TextRenderer tests.

Change-Id: Ia8bbbcfd27bab6e6954eb890d9c783d04037794d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9129
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-03-17 18:13:04 +00:00
Máximo Castañeda ab1f14f362 tests/app_server: test some AGGTextRenderer paths
Change-Id: I099029590f5d9ee5d86fa0701c3858fc4f630df7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9128
Reviewed-by: waddlesplash <[email protected]>
2025-03-17 18:13:04 +00:00
Niklas Poslovski ef67cb1ace app_server/AGGTextRenderer: Improve code quality, remove duplicates
Change-Id: Ia1d6ec8ad836dcd08f36841cbc16b5a609fd7aff
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8861
Reviewed-by: Máximo Castañeda <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2025-03-17 18:13:04 +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
Augustin Cavalier 3d0e9319f6 libroot/glibc: Put wctype_t declaration inside second guard.
Should fix the build on GCC2.
2025-03-15 09:20:15 -04:00