What is the policy on implementing system-specific functions within Stdio.File? I've implemented support for the notify-functions within the Linux kernel which fits very well into the Stdio.File module but I'm not sure they belong there since they are Linux-specific.
It's not a problem as long as it's documented that the extra functionality does not exist on all systems. There are already other system dependent things in there, like the OOB handling.
However I think the interface should be on a level so that it's possible to implement the same functionality also on other systems, i.e. it should not be an ultra-thin wrapper for some linux specific calls.
One way to ensure that is to see approximately how it could be done on NT and make sure the interface allows for that too. This is often a good test since most features exist there but in a radically different way.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-02-09 20:08: Subject: F_NOTIFY
What is the policy on implementing system-specific functions within Stdio.File? I've implemented support for the notify-functions within the Linux kernel which fits very well into the Stdio.File module but I'm not sure they belong there since they are Linux-specific.
/ Marcus Agehall (Trådlös)
pike-devel@lists.lysator.liu.se