!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1160 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org187 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
22 Dec 2025
@ihar.hrachyshka:matrix.orgIhar Hrachyshka you mean fd_sets? 17:43:04
@reckenrode:matrix.orgRandy EckenrodeYeah.17:43:51
@reckenrode:matrix.orgRandy EckenrodeThat comment about where the sets are allocated doesn’t make sense to me.17:44:42
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaguess I should just test and see. I have a reproducer, just need to recompile glib to qemu and see.17:44:57
@reckenrode:matrix.orgRandy Eckenrode * 17:44:59
@ihar.hrachyshka:matrix.orgIhar Hrachyshka source == hacker news nobody 17:45:27
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/apple-oss-distributions/xnu/blob/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea/bsd/sys/_types/_fd_def.h#L52_L5417:46:06
@reckenrode:matrix.orgRandy EckenrodeFish shell developer?17:47:01
@ihar.hrachyshka:matrix.orgIhar HrachyshkaI was actually also looking at the same struct def. so looks like we may need to also define the __DARWIN_FD_SETSIZE otherwise we write past the end of the struct (I think)17:47:57
@reckenrode:matrix.orgRandy EckenrodeOr malloc it based on the size of the incoming set.17:49:12
@reckenrode:matrix.orgRandy EckenrodeGlib supports using cleanup functions to make that less messy.17:49:27
@reckenrode:matrix.orgRandy Eckenrode Though if it’s a mask for all fds, you don’t really know the needed size. 17:50:00
@reckenrode:matrix.orgRandy Eckenrodehttps://man.freebsd.org/cgi/man.cgi?select17:52:21
@reckenrode:matrix.orgRandy Eckenrode Apple mentioned FreeBSD being unlimited. I agree we should probably increase the amount of memory it’s using (either by defining FD_SETSIZE or some other way). 17:53:19

Show newer messages


Back to Room ListRoom Version: 6