!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
@reckenrode:matrix.orgRandy EckenrodeI wonder what they mean by “broken”.15:35:04
@reckenrode:matrix.orgRandy EckenrodeSometimes “broken” means “conforms to POSIX but doesn’t do what GNU does”.15:35:48
@ihar.hrachyshka:matrix.orgIhar Hrachyshka
/* The poll() emulation on OS/X doesn't handle fds=NULL, nfds=0,
 * so we prefer our own poll emulation.

15:35:50
@ihar.hrachyshka:matrix.orgIhar Hrachyshkathe MR that mentions tap networking broken? https://gitlab.gnome.org/GNOME/glib/-/merge_requests/257115:39:46
@ihar.hrachyshka:matrix.orgIhar Hrachyshkathere's a "check" they use to detect a "broken" poll here: https://gitlab.gnome.org/GNOME/glib/-/commit/caecf2dda082e9c46c4157cdc10763deb8dcfc27 but afaiu it is no longer needed and just forced on darwin. wonder if the check would pass now...15:40:56
@ihar.hrachyshka:matrix.orgIhar Hrachyshka* there's a "check" they use to detect a "broken" poll here: https://gitlab.gnome.org/GNOME/glib/-/commit/caecf2dda082e9c46c4157cdc10763deb8dcfc27 but afaiu it is no longer used and just forced on darwin. wonder if the check would pass now...15:41:04
@reckenrode:matrix.orgRandy Eckenrode According to POSIX, fds is an array. My understanding is that NULL is not a valid value for an array in C. 15:41:55
@ihar.hrachyshka:matrix.orgIhar Hrachyshkathe check compiled with xcode clang returns 115:42:22
@reckenrode:matrix.orgRandy Eckenrodehttps://pubs.opengroup.org/onlinepubs/9799919799/functions/poll.html15:42:38
@reckenrode:matrix.orgRandy Eckenrode ppoll is apparently part of POSIX now. No idea if or when Apple will add it. 15:43:07
@ihar.hrachyshka:matrix.orgIhar Hrachyshkathey could at least maybe conditionalize it. like if it's null and the user needs some non-standard behavior, go through select. otherwise... I think main loop for qemu doesn't pass nulls there.15:43:45
@ihar.hrachyshka:matrix.orgIhar Hrachyshkait's 2024 posix so rather new15:43:59

Show newer messages


Back to Room ListRoom Version: 6