Commit Graph

65438 Commits

Author SHA1 Message Date
Vladimir Serbinenko
51555e0784 fs_shell: Support truncate operation in fuse
This allows to copy a file over an existing file

Change-Id: I174751987dcb2f372718e949a8d57b795dc1fd29
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6868
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-23 15:24:58 +00:00
Zardshard
c6c2c04284 Icon-O-Matic: Add perspective transformations
As part of adding perspective transformations, agg_trans_perspective.h
was patched to fix a multiple definitions error. This change has been
submitted for review to the "upstream" repositories at [1], [2],
and [3].

Also includes various other improvements such as VertexSource being
split into its own file, code style improvements, and documentation
improvements.

[1] https://sourceforge.net/p/agg/patches/6/
[2] https://github.com/ghaerr/agg-2.6/pull/9
[3] https://github.com/aggeom/agg-2.6/pull/7

Change-Id: I4bffd2f87354bde10155e23145a232a925be6ff3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6801
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-22 09:44:49 +00:00
Zardshard
a1c86e7ada agg: Pull in updated perspective transformation
The new version has many more features than the old one. This update
is necessary for an upcoming update to Icon-O-Matic adding perspective
transformers.

This update is pulled from https://github.com/ghaerr/agg-2.6 at commit
e7db22bd12700118257b4cb780539c421e01aa51 with our changes applied on
top. Note that this repository isn't necessarily the chosen upstream
that all future updates should be pulled from. See the discussion
starting at [1] for more information.

This also updates the affine transformation since the newer perspective
transformation requires the newer version.

[1] https://discuss.haiku-os.org/t/gsoc-2023-progress-on-perspective-transformation-haiku-project/13594/34

Change-Id: Ic578eec15fbb9131338b3c605c737ce1bfb252ca
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6808
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-22 09:44:20 +00:00
Jérôme Duval
efbeada748 gnu: add sched_getcpu()
on x86_64 implemented with rdtscp or rdpid, generically with a syscall.

Change-Id: I8f776848bf35575abec8a8c612c4a25d8550daea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6866
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-21 17:55:16 +00:00
Vladimir Serbinenko
449929ad0e ufs2: Remove few optional stubs
Change-Id: I9502c09dad7c03b041abae65f6b7b8e56f3cbbff
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6864
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
95adf83454 ufs2: Add missing CheckPermissions
This brings us in-line with ext2

Change-Id: I0be7c4b1cbcd5a0a9f501e3e512b5bf6d0b86ffe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6865
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
bb83c2e223 ufs2: Allow opening directory as read-only.
I find this API weird but apparently Tracker relies on it and if it
doesn't work it forgets to show icon on the desktop.

Change-Id: I162ff004406e28f56db5ac2293851aa30535109e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6863
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
f2ce9dda40 ufs2: Add close and free_cookie
Change-Id: Iff7c341ab91b61d57c1509fc0acb9f0a840d6bdd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6862
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
0f0d334a50 ufs2: Fix can_page().
Return is boolean and not a status.

Change-Id: I03b74d8d7b9b205428665059a3b9d4dc708857a0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6861
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
0b66f41b8c ufs2: Add free_blocks and fsh_name to fs_info()
Change-Id: Ibfbcb41db507ad33051391babfafb4f22a59d971
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6860
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
70ef3d35f5 ufs2: Add st_nlink and st_blocks to stat()
Change-Id: I89279aa1b02c3814642f2e454408198b21cf7689
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6859
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
e62e8e246a ufs2: Add access() support
Change-Id: I4c2fa12a623f0893c976430893f448f734794548
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6858
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
260e6bd0a6 ufs2: Add unmount function
Change-Id: I8a8b7f7eac24f70e23afec5c79fbebcaa5f17e4b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6857
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
7bac1f2eba ufs2: Add size and file_offset sanity check
Change-Id: I33a1d509d9f9cac356982944a2c2491858cc1c14
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6856
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
f76f8716cb ufs2: Add rewind_dir functionality
Change-Id: I7033273d02131b38cf3de0632058710c5d2ff36c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6855
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-21 17:51:00 +00:00
Vladimir Serbinenko
947459f72e ufs2: Fix warning
Change-Id: I1eebcf6c5e324f8dbbfe5e80bffdfcd4e8de1f7b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6854
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-21 17:51:00 +00:00
Jérôme Duval
7713305bd2 pch_thermal: add Lewisburg and Wellsburg ids
Change-Id: I2acbec140d8d6155549b0c802f465f004a7a67ab
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6867
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-21 12:32:11 +00:00
Vladimir Serbinenko
3cfeaf2617 ufs2: Enable module
Change-Id: I1f9b92da13980637925be5e9c813af427b25feb4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6853
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-20 19:10:34 +00:00
Vladimir Serbinenko
5448262dc2 ufs2: Fix reading past the end of file and reading overwrite.
Current code forgets to clamp readings to actual file size anf moreover
never adjust the buffer fo subsequent reads. Fix both of those.

Change-Id: I3b8eb98142215ac3b30badfbbbb811147f76563a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6852
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-20 19:10:34 +00:00
Vladimir Serbinenko
dac0a050de ufs2: Fix directory iteration.
The step is reclen. Honour it or we end up stepping in the middle of garbage
when OS aligns next entry to avoid crossing sector boundaries.

Change-Id: I749f9533d4d39e7a9abf9295b8e7c519dab52921
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6851
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-20 19:10:34 +00:00
Vladimir Serbinenko
de4f20d48d ufs2: Fix wrong lookup iteration
Passed size needs to be size of name buffer, not of length we compare to.
Fix the value and remove now unused parameter.

Change-Id: Idb69a0e78ba376751edf8b3df3635cd0af4c9460
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6850
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-20 19:10:34 +00:00
Vladimir Serbinenko
a4845b5416 ufs2: Fix porentially uninited use of fName field
At the same time make it in line with ext2 module

Change-Id: Iab879cf532cbc0b58b23cdd97d50419c21d199b6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6849
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-20 19:10:34 +00:00
Vladimir Serbinenko
454dc0e951 ufs2: Fix inode retrieval
The code multiplied fragno by MINBSIZE instead on fragment size.
Moreover IsDirectory and IsSymlink were called before inode was read.

Change-Id: I9e62007c900fb4376812f8ebef508a3f8a8f619b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6848
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-20 19:10:34 +00:00
Vladimir Serbinenko
21425cfca0 ufs2: Add missing include
Change-Id: I6351ed9b5c841955c6d76aecf470ac914abef9ad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6847
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-20 19:10:34 +00:00
David Karoly
3568a4e11f update bootstrap package versions for x86_64
Change-Id: I623b927096547a1bc98d1011169142d841c78eac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6846
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-20 16:08:31 +00:00
Zardshard
6936878097 Icon-O-Matic: Fix bugs that occur when pasting text
Fixes a small, hard-to-see bug that occurs when pasting text into
Icon-O-Matic. Before when pasting, for example, an "O" into IOM, the
"O" would not be completely symmetrical. There would be an extra point
on one of its sides. Now that point is gone.

Also fixes paths not being closed when they should be. Back to the "O"
example, one of the two paths that make up the "O" would be open. Now
both paths are closed.

Also determines whether a point should be connected or disconnected
based on whether the control points and the vertices lie on a straight
line. (If a point is marked as connected, the control points and the
vertex are constrained to lie on the same line.)

Change-Id: I0cb9f878ac7887640288073ca253de35b3937f3b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6841
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-19 15:15:25 +00:00
PulkoMandy
52050c56f6 BTextView: improve GetHeightForWidth in non editable mode
In non editable mode, BTextView computes a preferred size that just fits
the current text. This did not take into account the insets from
SetInsets, so, when these are used, the resulting view size was too
small.

Additionally, avoid calling _Refresh that has two problems: it needs the
view to already be attached to a window, and it does a lot of things we
don't really need here: recomputing scrollbars, clearing the empty space
below the text to avoid flickering, and so on. We just need to recompute
fTextRect according to the suggested width, to do that, it is enough to
call _RecalculateLineBreaks instead.

Finally, also restore the text rect at the end of the method, since it
is not actually resizing the view, it is very unexpected that it changes
the text rect. This is not perfect, as the line breaks from
_RecalculateLineBreaks are not undone. But, since the next step is
probably to resize the view according to the computed width/height, this
will be sorted out at that time. If this proves to be a problem, we can
add a second call to _RecalculateLineBreaks after restoing the original
text rect, or refactor _RelcalculateLineBreaks so that it can return the
new height without actually changing the lines.

Change-Id: Ie2fa60c1b2314c8a3346d03ab3ff6843aebaf3dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6845
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-19 15:15:00 +00:00
PulkoMandy
7b2f246e69 Cortex: remove use of deprecated C++ features
Change-Id: I174bf8a5224b53370c3dd5f7dc152885ff0ec985
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6800
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-19 15:11:44 +00:00
David Karoly
6308236831 arm, arm64, riscv64: use gcc-13.2.0 for bootstrap build
Change-Id: I3cda82b46a224bddc51f9850c1fee9006a51b73e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6844
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-19 12:24:18 +00:00
Autocomitter
e5a4bee967 Update translations from Pootle 2023-08-19 08:17:33 +00:00
Augustin Cavalier
7602588721 Screen: Make some manual edits to Vendors.h.
This data comes from the PNP registry, where deprecated entries
have "DO NOT USE". But those deprecated entries were often once used
in actual products, and we don't want to display "DO NOT USE" for them.
So remove such text, and replace it with the actual vendor name in a few places.
2023-08-18 22:09:40 -04:00
Fredrik Holmqvist
2bffaa64dd null check fTeam in CoreDumper::Dump()
gcc warns "writing 4 bytes into a region of size 0"
on ARM64 (-march=armv8.1-a -mno-outline-atomics)
if it thinks fTeam can be null in atomic_or.

Change-Id: I44c88dadf0cee6e3e54d2baaf0453ae70aa1f3c1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6838
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-18 14:54:47 +00:00
Joachim Mairböck
82272adad5 kernel debugger: add missing newline to exception messages without position
This is the case, for example, for the "out of memory for command execution"
message.

Change-Id: I0951a91c7a9fcdd1730a0441d7fac0eb6e608615
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6843
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-18 12:28:46 +00:00
Zardshard
405c9dc3f2 Icon-O-Matic: Improve saving-related error messages
Improves the errors that are given to the user when exporting to an
HVIF file failed. Examples of errors improved include errors related to
having too many shapes, too many paths, or too many points in a path.

Also changes the icon shown in the alert box from an info icon to an
error icon.

Fixes #13978

Change-Id: I12a08e9857a95bd4d41da029320fa6f8182c3aa5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6837
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-17 19:02:51 +00:00
Zardshard
6da29a769f Icon-O-Matic: Fix window resizing bug
Previously, the window could not go any smaller than the current size
after some changes were made to the icon such as adding a style.

Fixes #4711

Also cleans up some code style.

Change-Id: I4e7af98ac8afbea28a46d81b9de7aba6fc6c894a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6836
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: humdinger humdinger <humdinger@mailbox.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-17 19:02:51 +00:00
Humdinger
52b930ce1c Added CodyCam I-O-M file
Adding the missing Icon-O-Matic file for the CodyCam icon.
Slightly improved shadow. Updated icon data in CodyCam.rdef.

Change-Id: I1582ccbc28e9600122a342b53a0adf5bbfd7b82d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6840
Reviewed-by: Zardshard <0azrune6@zard.anonaddy.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-16 15:57:36 +00:00
Axel Dörfler
9f21874394 kernelland_emu: Added missing user_memset()
Change-Id: I703525d73572c812b1adf8b4c4805a624c3b7df7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6839
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-15 18:58:29 +00:00
Zardshard
c70aca1135 Icon-O-Matic: Make left sidebar lists resizable
Makes the Path, Shape, Transformer, and Properties menu vertically
resizable.

Implements #2745

Change-Id: I322b6ecffbe807694c7f188c5ffa5025cbc5e711
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6815
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-15 00:54:32 +00:00
Trung Nguyen
303ff56a5f unix: Implement SO_RCVBUF
Implemented `UnixBufferQueue::SetCapacity` so that `setsockopt`
with `SO_RCVBUF` will not always return an error.

Change-Id: I2d9be84633f84474fac64b379e9f89ef2751a094
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6816
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-13 21:14:51 +00:00
David Karoly
2b514ce830 riscv64: update bootstrap package versions
Change-Id: I45b96ae1249985a2d92bcae7c826e40186d3b4a8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6813
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2023-08-13 19:33:47 +00:00
David Karoly
26bd8b3958 arm: update bootstrap package versions
Change-Id: Iaea37926246a95764253dcb24c47ab6b931c538c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6812
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2023-08-13 19:25:06 +00:00
David Karoly
45e19f162a arm64: update bootstrap package versions
Change-Id: Ifc42e09d1fed8ca51c214bee53dda8d0a203b5b8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6811
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2023-08-13 19:24:49 +00:00
Autocomitter
0d07b1d98a Update translations from Pootle 2023-08-12 08:19:36 +00:00
Niels Sascha Reedijk
d2edfdd11d docs: document the steps to update GCC buildtools
Change-Id: Iaa41194e0f76594efd504b65f3565b22743dce34
2023-08-12 07:59:29 +01:00
Jérôme Duval
ef611e96c4 kernel/x86: also write the cpu number when the rdpid instruction is available
Change-Id: I5b37fe8aff9b4cf12fbd4dd60a91eb09f11f4e2b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6807
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-10 16:35:03 +00:00
Jérôme Duval
67ee1d1a3e kernel/x86: don't load microcode on intel when already up to date
on Pentium Silver, loading the microcode on the boot cpu also updates the other ones.

Change-Id: Ifbd767e7d73fdbc8ae2bf0740fcce523e500de1b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6806
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-10 16:35:03 +00:00
Jérôme Duval
b761f9250a unix: respect MSG_DONTWAIT on recvmsg
fix #18548

Change-Id: I33f502c2a376be6dbdf913f9613aab9d4c5a3644
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6802
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-09 17:10:28 +00:00
PulkoMandy
9c8f4ac5d6 Remove usage of some deprecated C++ features
Change-Id: I8faff44ca5fbce9b56ce135ebd070be6bd4c1c78
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6799
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-08 19:52:09 +00:00
Augustin Cavalier
cc6365c7aa bootloader: Don't issue warnings upon encountering PT_EH_FRAME.
The kernel already does the same thing.
2023-08-07 12:46:44 -04:00
Augustin Cavalier
bfebd2b3c9 libroot: Acquire the process heap lock.
Upon further investigation, the global heap lock should actually
not need to be reset, but the process heap lock will.

Change-Id: Id1fd91cc0e7acecd5b4fd76cb82d4ed2ae3900ad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6777
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-07 16:12:01 +00:00