ChanServ changed the topic of #haiku to: Open-source operating system that specifically targets personal computing. | https://haiku-os.org | Nightlies: https://download.haiku-os.org | Bugtracker: https://dev.haiku-os.org | SCM: https://git.haiku-os.org/ | Logs: https://oftc.irclog.whitequark.org/haiku | Matrix: #haiku:matrix.org | XMPP: #haiku%irc.oftc.net@irc.jabberfr.org
HaikuUser has joined #haiku
HaikuUser has quit []
AlaskanEmily has joined #haiku
paul0 has joined #haiku
dqk_ has quit [Read error: Connection reset by peer]
dqk has joined #haiku
orealis has quit [Read error: Connection reset by peer]
orealis has joined #haiku
paul0 has quit [Quit: Leaving]
orealis has quit [Read error: Connection reset by peer]
orealis has joined #haiku
Rapo has quit [Quit: Konversation terminated!]
Maturi0n_ has joined #haiku
Maturi0n has quit [Ping timeout: 480 seconds]
AlaskanEmily has quit [Remote host closed the connection]
OscarL has quit [Quit: Nettalk6 - www.ntalk.de]
mmu_man has quit [Ping timeout: 480 seconds]
<botifico-c849d97b> [haikuports/haikuports] threedeyes pushed 1 commit to master [+1/-1/±0] https://github.com/haikuports/haikuports/compare/57126e294947...09ece5a25eb6
<botifico-c849d97b> [haikuports/haikuports] threedeyes 09ece5a - STLover: bump version
_Dario_ has quit [Read error: Connection reset by peer]
Blendie has quit [Quit: Connection closed for inactivity]
talos has quit [Quit: The Lounge - https://thelounge.chat]
HaikuUser has joined #haiku
HaikuUser has quit []
Diver has joined #haiku
HaikuUser has joined #haiku
HaikuUser has quit []
HaikuUser has joined #haiku
HaikuUser has quit []
B2IA has quit [Ping timeout: 480 seconds]
Begasus has joined #haiku
<Begasus> g'morning peeps
<botifico-c849d97b> [haikuports/haikuports] Begasus pushed 1 commit to master [+0/-0/±2] https://github.com/haikuports/haikuports/compare/09ece5a25eb6...1b810d2ea32e
<botifico-c849d97b> [haikuports/haikuports] Begasus 1b810d2 - ja2_stracciatella, build fix, force boost169 for build (#8604)
<botifico-c849d97b> [haikuports/haikuports] Begasus pushed 1 commit to master [+2/-1/±0] https://github.com/haikuports/haikuports/compare/1b810d2ea32e...b3ac5d30e389
<botifico-c849d97b> [haikuports/haikuports] Begasus b3ac5d3 - itstool, bump version (#8605)
<botifico-c849d97b> [haikuports/haikuports] Begasus pushed 1 commit to master [+0/-0/±1] https://github.com/haikuports/haikuports/compare/b3ac5d30e389...3c51f06b3844
<botifico-c849d97b> [haikuports/haikuports] kenmays 3c51f06 - paladin: bumped revision (#8603)
erysdren has quit [Quit: Konversation terminated!]
tuaris has quit [Quit: Leaving.]
jmairboeck has joined #haiku
diver1 has joined #haiku
Diver is now known as Guest741
diver1 is now known as Diver
Guest741 has quit [Ping timeout: 480 seconds]
<trungnt2910[m]> Given a device ID, what's the "correct" way to get its mount path on Haiku?
<trungnt2910[m]> I know that I can use fs_stat_dev to get the ino_t of the root, and then use _kern_entry_ref_to_path to obtain a path.
<trungnt2910[m]> The problem here is the only public function that exposes _kern_entry_ref_to_path is get_path_for_dirent, and that seems to imply that doing this for anything other than the output of readdir results in undefined behavior.
<PulkoMandy> You can create a BPath from an entry_ref, I don't know what this does internally
<PulkoMandy> _kern_entry_ref_to_path, apparently?
<PulkoMandy> So that seems a reasonably public way to do it, but C++ only, do you need it in C?
<PulkoMandy> It seems no one has needed a public get_path_for_ref yet, but that could be added in Entry.h if you need it (there is already a get_ref_for_path there)
JakeSays1 has quit [Read error: Connection reset by peer]
<trungnt2910[m]> <PulkoMandy> "So that seems a reasonably..." <- The file is C, yes.
JakeSays has joined #haiku
<trungnt2910[m]> How does the Haiku kernel deal with entry_ref? Can we give arbitrary dev_t, ino_t, and string name values and expect the kernel to return a valid entry_ref as long as a file matching these conditions exist?
<trungnt2910[m]> Or do these values need to be obtained from a prior invocation of some syscall, like _kern_read_stat or _kern_read_dir?
Diver has quit [Quit: Leaving.]
<trungnt2910[m]> > <@trungnt2910:matrix.org> ```... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/NkpJEQvGVfdMXVPvytqkKZvB>)
Blendie has joined #haiku
<Skipp_OSX> You create a Volume from the device id and then ask it its path
<Skipp_OSX> a BVolume
<trungnt2910[m]> What in the world is this.
<trungnt2910[m]> Skipp_OSX: I'm porting some C code so I can't access Haiku C++ classes.
<Skipp_OSX> well that's the correct way
<jessicah> trungnt2910[m]: haha, that's probably FBC padding
<trungnt2910[m]> Had to dig a few things to see what you mean: https://2f.ru/holy-wars/fbc.html
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #haiku
vdamewood has joined #haiku
<PulkoMandy> trungnt2910[m]: the kernel is able to locate any file by just the dev_t and ino_t, so if you have these, you can access the file. To access things that are stored in the directory entry (file name, permissions, etc) you need an entry_ref, that's the dev_t and ino_t of the parent directory plus the filename of the entry in that directory
<PulkoMandy> Really, if you need a public function to convert an entry_ref to a path in C, I'd suggest you just add that to Entry.h, there's no reason to not have it there and it will be simpler and clearer than what you have now?
Diver has joined #haiku
<trungnt2910[m]> <PulkoMandy> "Really, if you need a public..." <- Yeah I'll do that later today.
<trungnt2910[m]> What I need is converting an dev_t and ino_t pair from C code though.
<trungnt2910[m]> So Entry.h isn't appropriate for my case.
<trungnt2910[m]> Also, a few more questions about Haiku:
<trungnt2910[m]> - Does Haiku have a mechanism for apps to watch for network changes, like what `net_daemon` is currently doing?
<trungnt2910[m]> - Does Haiku have an API to retrieve another process's start time? I can see a way to retrieve the process's _CPU_ time but that might be reduced because of sleep time so...
matt1 has joined #haiku
matt1 has left #haiku [#haiku]
mmu_man has joined #haiku
<PulkoMandy> For network changes I guess you can look at the NetworkStatus replicant source to see how it's done there?
CPYou has joined #haiku
orealis has quit [Read error: Connection reset by peer]
<PulkoMandy> I don't see anything for tracking a team "real" time from outside the team
orealis has joined #haiku
Diver has quit [Ping timeout: 480 seconds]
<trungnt2910[m]> OK then, there is a certain function that tries to distinguish PIDs using a process's start time, on Haiku I'm using the area_id of the process's app image.
<trungnt2910[m]> Hmmm I can see a start_watching_network function but it requires a BMessenger...
orealis has quit [Read error: Connection reset by peer]
<trungnt2910[m]> And, last question, does Haiku provide a way to read another process's memory, other than attaching a debugger or using clone_area (which requires the target area to be set cloneable)?
orealis has joined #haiku
<PulkoMandy> Probably not, that would be a security hole and that's the reason we added a flag to allow areas to be clonable
<PulkoMandy> In beos you could clone anything
CPYou has quit [Remote host closed the connection]
HaikuUser has joined #haiku
HaikuUser has quit []
<x512[m]> It is possible to directly access C++ API from C by using mangled functions (_ZN...).
<trungnt2910[m]> x512[m]: yeah but I don't think it's a good idea to create a BMessenger or BLooper from the runtime.
<trungnt2910[m]> Or am I missing something? Can an app have multiple instances of these?
<x512[m]> It is only one BAPplication, but it can be multiple BLooper's.
<x512[m]> s/BAPplication/BApplication/
tqh has joined #haiku
<x512[m]> I made Haiku GUI support in Blackbox framefork written in Oberon variant (Component Pascal): https://github.com/X547/BlackBox-Haiku.
<trungnt2910[m]> I don't know which one can be created from C code.
<x512[m]> BMessanger is a structure that contains team_id, port_id and BHandler token ID.
<trungnt2910[m]> Urrrhhhh... virtual functions...
<x512[m]> trungnt2910: Where it supposed to be used?
<trungnt2910[m]> Other platforms provide some kind of magic socket.
<x512[m]> trungnt2910: If it is a C code, nothing prevents to use C++ from it.
<x512[m]> Rename to *.cpp etc..
<trungnt2910[m]> Instead of hacking the vtable I'd rather hack the buildsystem instead.
<x512[m]> I thought that it is used directly from C#.
super_user_do has joined #haiku
super_user_do has quit []
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #haiku
HaikuUser has joined #haiku
HaikuUser has quit []
ClaudioM has joined #haiku
<trungnt2910[m]> <PulkoMandy> "Probably not, that would be a..." <- As for security, why don't you just use a check using the effective UID or the same check used by `_kern_install_team_debugger`?
<trungnt2910[m]> That's how process_vm_readv works on Linux, it uses the same access check as ptrace, but it doesn't bear the cost of actually installing a debugger (so, for example, multiple processes can use that call on the same target).
<botifico-c849d97b> [haikuports/haikuports] diversys pushed 1 commit to master [+2/-2/±0] https://github.com/haikuports/haikuports/compare/3c51f06b3844...3d9c215a6d55
<botifico-c849d97b> [haikuports/haikuports] davidkaroly 3d9c215 - tenacity: update to 1.3 beta 3 (#8606)
B2IA has joined #haiku
Diver has joined #haiku
nosycat has joined #haiku
ClaudioM has quit [Quit: leaving]
Rapo has joined #haiku
ScottD1 has quit [Quit: Ping timeout (120 seconds)]
ScottD1 has joined #haiku
HaikuUser has joined #haiku
HaikuUser2 has joined #haiku
HaikuUser2 has quit []
HaikuUser has quit []
HaikuUser has joined #haiku
HaikuUser has quit []
<botifico-c849d97b> [haikuports/haikuports] diversys pushed 1 commit to master [+2/-2/±0] https://github.com/haikuports/haikuports/compare/3d9c215a6d55...42748fa248d2
<botifico-c849d97b> [haikuports/haikuports] davidkaroly 42748fa - audacity: update to 3.3.2 (#8607)
HaikuUser has joined #haiku
HaikuUser has quit []
humdinger has joined #haiku
<botifico-c849d97b> [haikuports/haikuports] korli pushed 1 commit to master [+0/-0/±1] https://github.com/haikuports/haikuports/compare/42748fa248d2...c0ef2897aef8
<botifico-c849d97b> [haikuports/haikuports] korli c0ef289 - libxml2: also build python subpackage on x86_64
_Dario_ has joined #haiku
<nekobot> [haiku/haiku] korli pushed 1 commit to master [hrev56972] - https://git.haiku-os.org/haiku/log/?qt=range&q=18f35e4ebd7c+%5Ecfbfb8473c66
<nekobot> [haiku/haiku] 18f35e4ebd7c - libroot/os/driver_settings.cpp: fix memory leak
Diver has quit [Ping timeout: 480 seconds]
xet7 has quit [Read error: No route to host]
humdinger has quit [Quit: Vision[]: Oi with the poodles already!!]
xet7 has joined #haiku
FreeFull has joined #haiku
Diver has joined #haiku
HaikuUser has joined #haiku
HaikuUser has quit []
AlaskanEmily has joined #haiku
Rapo has quit [Quit: Konversation terminated!]
<nekobot> [haiku/haiku] davidkaroly pushed 1 commit to master [hrev56973] - https://git.haiku-os.org/haiku/log/?qt=range&q=19537d01d14e+%5E18f35e4ebd7c
<nekobot> [haiku/haiku] 19537d01d14e - kernel/arm: adjust function names for getting/setting SCTLR
<botifico-c849d97b> [haikuports/haikuports] korli pushed 1 commit to master [+0/-0/±1] https://github.com/haikuports/haikuports/compare/c0ef2897aef8...9aa382ee3fd9
<botifico-c849d97b> [haikuports/haikuports] korli 9aa382e - itstool: trigger build
nosycat has quit [Quit: Leaving]
vezhlys has quit [Quit: Leaving]
talos has joined #haiku
talos has quit [Quit: leaving]
<botifico-c849d97b> [haikuports/haikuports] korli pushed 1 commit to master [+2/-2/±0] https://github.com/haikuports/haikuports/compare/9aa382ee3fd9...9975305a0695
<botifico-c849d97b> [haikuports/haikuports] jmairboeck 9975305 - flif: bump version, cleanup (#8609)
HaikuUser has joined #haiku
HaikuUser has quit []
<Begasus> closing down, cu peeps!
Begasus has quit [Quit: Leaving]
tuaris has joined #haiku
orealis has quit [Read error: Connection reset by peer]
orealis has joined #haiku
orealis has quit [Read error: Connection reset by peer]
orealis has joined #haiku
jmairboeck has quit [Quit: Konversation terminated!]
tqh has quit [Ping timeout: 480 seconds]
FreeFull has quit []
DKnoto has quit [Ping timeout: 480 seconds]
ScottD1 has quit [Quit: Ping timeout (120 seconds)]
dqk has quit [Read error: Connection reset by peer]
ScottD1 has joined #haiku
dqk has joined #haiku
<andreasdr[m]> Good night
<Skipp_OSX> https://insightfactory.tumblr.com/post/716695229457137664/tracker-used-space-bar-updating-live <= Tracker with modular color picker and live updating used space bar color
Anarchos has joined #haiku
<zdykstra> Very cool
<Anarchos> do ehci or realtekwifi driver were broken in tod'ays' revision ?
<jessicah> hmm, my gcc2h vm in virtual box keeps causing a fault, killing the vm
<jessicah> doesn't happen with my main x86_64 vm
orealis has quit [Read error: Connection reset by peer]
orealis has joined #haiku
Anarchos has quit []
orealis has quit [Read error: Connection reset by peer]
orealis has joined #haiku
tuaris has quit [Read error: Connection reset by peer]
tuaris has joined #haiku
tuaris1 has joined #haiku
tuaris has quit [Read error: Connection reset by peer]
jason123santa has left #haiku [Error from remote client]
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Halamix2 has quit [Quit: ZNC - https://znc.in]
Halamix2 has joined #haiku
Diver has quit [Read error: Connection reset by peer]
Diver has joined #haiku
<trungnt2910[m]> It seems like Haiku provides `pthread_attr_get_np` but does not seem to expose it through any headers.
<trungnt2910[m]> I know that `pthread_getattr_np` is available under `_GNU_SOURCE` but why isn't `pthread_attr_get_np` exposed? On some BSDs both seem to be exposed without any problems.
<trungnt2910[m]> The fact that pthread_attr_get_np is available but not declared through headers is causing confusion for some CMake configuration scripts.
Diver has quit [Quit: Leaving.]
<x512[m]> trungnt2910: Should be added to public header?
<trungnt2910[m]> Yeah I can make a patch in 5 minutes but just asking in case it really is something intended.
<trungnt2910[m]> Probably add that somewhere under _BSD_SOURCE.
<trungnt2910[m]> s/_BSD_SOURCE./`_DEFAULT_SOURCE`./
<trungnt2910[m]> x512[m]: Yeah I saw that commit.
<x512[m]> Seems introduced here.
<trungnt2910[m]> Also the fact that the GNU extension has been exported.
<trungnt2910[m]> Was attempting to ping @Korli but he doesn't seem to be present here.
<jessicah> seems adding the bsd variant should be fine
erysdren has joined #haiku
ScottD19 has joined #haiku
<trungnt2910[m]> Done.
ScottD1 has quit [Ping timeout: 480 seconds]
ScottD19 is now known as ScottD1
<trungnt2910[m]> That was fast, you reviewed before I could mention you as a reviewer.
<x512[m]> trungnt2910: Have you checked that it is recognized in test source file?
<x512[m]> Not sure about mechanism how new header file will be included.
<jessicah> as long as using gnu variant of language standard, should work like the rest of the bsd/gnu extensions currently do
<jessicah> like -std=gnu++20, etc.
<trungnt2910[m]> x512[m]: Seems to work fine when I copy that header to a $HPREFIX.
orealis has quit [Read error: Connection reset by peer]
orealis has joined #haiku
orealis has quit [Read error: Connection reset by peer]
orealis has joined #haiku
dqk has quit [Read error: Connection reset by peer]
jason123santa has joined #haiku