IRC channel logs

2021-11-24.log

back to list of logs

<stikonas>gbrlwck: I don't think so
<stikonas>at least I don't think we need to do more in M2libc...
<gbrlwck>do you think this addition to stdlib.c would suffice? https://termbin.com/4xt5
<gbrlwck>not sure how i would check for the permissions
<gbrlwck>no
<gbrlwck>wait
<gbrlwck>without the "fi->fd" line
<gbrlwck>no, it didn't like "fi.fd = fildes", so i changed it (back) to "fi->fd = fildes" (and it compiled happily)
<gbrlwck>bummer; segfault
<gbrlwck> https://github.com/gbrlwck/M2libc/commit/86817bc44008c138fb1f5f10afd6b1dbbeda9658 if anybody wants to have a look. segfault happens in _END_IF_main_48 (not sure if that information is of much use)
<stikonas>maybe fildes -> fd?
<stikonas>that's what man fdopen uses
<gbrlwck>how do you mean?
<gbrlwck>ah, i see
<gbrlwck>i saw fildes there: https://man7.org/linux/man-pages/man3/fdopen.3p.html
<stikonas>hmm, yes, this one has fildes...
<stikonas>strange...
<stikonas>it's probably older though
<stikonas>2017...
<stikonas>this is newer https://linux.die.net/man/3/fdopen
<stikonas>ant it seems the same as running "man fdopen"
<stikonas>anyway, it's a minor thing...
<oriansj>gbrlwck: your M2-Mesoplanet improvement has been merged, thank you
<oriansj>I think O_EXCL is wrong in M2libc
<oriansj> https://paste.debian.net/1220619/
<oriansj>a test file which should be hitting file numbers but isn't
<oriansj>no, the value is correct; so what is being passed to open is correct
<oriansj>ok the open is returning -17 instead of -1
<oriansj>and now fixed
<gbrlwck>oriansj: cool, thanks!
<gbrlwck>any ideas how do inspect/debug the segfault we're getting with bootstrapped M2-Mesoplanet?
<gbrlwck>i made some syntax highlighting rules for (riscv64 flavored) M1: https://github.com/gbrlwck/M1-mode.el
<gbrlwck>:b
<muurkha>happy Freddie Mercury Day!