venta: (Default)
venta ([personal profile] venta) wrote2003-12-03 05:20 pm

When I am dictator...

...there will be a POSIX error code:

EGONEWRONG

For those cases where, like, I dunno, something just went wrong.

[identity profile] nisaba.livejournal.com 2003-12-03 09:24 am (UTC)(link)
I think Windows already has the market on meaningless error codes...

[identity profile] venta.livejournal.com 2003-12-03 09:35 am (UTC)(link)
I only want one meaningless error code. I've called a function, it failed, it didn't tell me why. Now I want to return failure, but I have to retun ESOMETHING, and none of them fit...

[identity profile] thegreenman.livejournal.com 2003-12-03 11:07 am (UTC)(link)
Do we have an EUNKNOWN defined in our errno.h?

:)

[identity profile] wechsler.livejournal.com 2003-12-03 11:19 am (UTC)(link)
I thought that was already a standard?

[identity profile] venta.livejournal.com 2003-12-03 11:29 am (UTC)(link)
<checks>

We don't seem to have it, no. But then we aren't POSIX compliant either. Though I might investigate why we don't have EUNKNOWN, it sounds useful.
pm215: (Default)

[personal profile] pm215 2003-12-03 02:15 pm (UTC)(link)

It's not defined by POSIX and Linux doesn't seem to have it. (I see that POSIX does define EOPNOTSUPP, though, which probably originates in some idiot not knowing about the existence of ENOTSUP. Since it's now enshrined in a standard as a distinct errno I don't suppose it will go away now :-()

[identity profile] onebyone.livejournal.com 2003-12-04 03:31 am (UTC)(link)

That's just because of the rule that at least 50% of errnos must be specific to sockets and thus of no use to anyone else. Maybe they needed to make up the numbers.

[identity profile] timeplease.livejournal.com 2003-12-05 12:25 pm (UTC)(link)
ENOTTY seems to be used by several people for this...

A Fine Plan

[identity profile] bateleur.livejournal.com 2003-12-03 12:21 pm (UTC)(link)
But isn't EGONEWRONG copyright [livejournal.com profile] zandev ?

Re: A Fine Plan

[identity profile] venta.livejournal.com 2003-12-03 01:35 pm (UTC)(link)
Is it? If so, apologies to Zandev for using it unattributed :)

It gets used a lot in our room, usually followed by Dan suggesting we start lobbying for the inclusion of EGONRONAY.

Re: A Fine Plan

[identity profile] bateleur.livejournal.com 2003-12-04 02:07 am (UTC)(link)
AVE room culture is a little different. If I could have only one new ERRNO it would have to be:

ENOCLUE - The user has done something so mind-numbingly stupid that I don't care what the spec implies should happen, I'm going to return failure because they deserve it.

And even spoiled the women's chats

[identity profile] steer.livejournal.com 2003-12-05 08:44 am (UTC)(link)
~~(__c>

http://www.livejournal.com/users/steer/78706.html