digitalmars.D - setErrno
- Matthew (4/4) Aug 20 2004 I have need to use this (thanks Martin, Nick, Regan and Walter!) to set ...
I have need to use this (thanks Martin, Nick, Regan and Walter!) to set ENOENT. My problem is that ENOENT is not defined. Any ideas on how we can do this? The obvious thing is declare it for both Windows and Linux. Naturally it'd need to be version'd, but other than that, can anyone see any problems?
Aug 20 2004
"Matthew" <admin.hat stlsoft.dot.org> wrote in message news:cg64hq$vls$1 digitaldaemon.com...I have need to use this (thanks Martin, Nick, Regan and Walter!) to setENOENT. My problem is that ENOENT is notdefined. Any ideas on how we can do this? The obvious thing is declare it for bothWindows and Linux. Naturally it'd need to beversion'd, but other than that, can anyone see any problems?Since setErrno is in std.c.stdlib, that's probably where it should go.
Aug 21 2004
"Walter" <newshound digitalmars.com> wrote in message news:cg6vko$1hil$1 digitaldaemon.com..."Matthew" <admin.hat stlsoft.dot.org> wrote in message news:cg64hq$vls$1 digitaldaemon.com...Indeed. You don't see any other issues?I have need to use this (thanks Martin, Nick, Regan and Walter!) to setENOENT. My problem is that ENOENT is notdefined. Any ideas on how we can do this? The obvious thing is declare it for bothWindows and Linux. Naturally it'd need to beversion'd, but other than that, can anyone see any problems?Since setErrno is in std.c.stdlib, that's probably where it should go.
Aug 21 2004
"Matthew" <admin.hat stlsoft.dot.org> wrote in message news:cg7022$1hre$2 digitaldaemon.com..."Walter" <newshound digitalmars.com> wrote in messagenews:cg6vko$1hil$1 digitaldaemon.com...set"Matthew" <admin.hat stlsoft.dot.org> wrote in message news:cg64hq$vls$1 digitaldaemon.com...I have need to use this (thanks Martin, Nick, Regan and Walter!) tobothENOENT. My problem is that ENOENT is notdefined. Any ideas on how we can do this? The obvious thing is declare it forMy main issue is why do you need to set errno under Win32?Windows and Linux. Naturally it'd need to beIndeed. You don't see any other issues?version'd, but other than that, can anyone see any problems?Since setErrno is in std.c.stdlib, that's probably where it should go.
Aug 21 2004
"Walter" <newshound digitalmars.com> wrote in message news:cg72j5$1m8p$1 digitaldaemon.com..."Matthew" <admin.hat stlsoft.dot.org> wrote in message news:cg7022$1hre$2 digitaldaemon.com...As it turns out, I don't any more. But I'm quite sure I will at some point."Walter" <newshound digitalmars.com> wrote in messagenews:cg6vko$1hil$1 digitaldaemon.com...set"Matthew" <admin.hat stlsoft.dot.org> wrote in message news:cg64hq$vls$1 digitaldaemon.com...I have need to use this (thanks Martin, Nick, Regan and Walter!) tobothENOENT. My problem is that ENOENT is notdefined. Any ideas on how we can do this? The obvious thing is declare it forMy main issue is why do you need to set errno under Win32?Windows and Linux. Naturally it'd need to beIndeed. You don't see any other issues?version'd, but other than that, can anyone see any problems?Since setErrno is in std.c.stdlib, that's probably where it should go.
Aug 21 2004