venta: (Default)
[personal profile] venta
...there will be a POSIX error code:

EGONEWRONG

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

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

Date: 2003-12-03 09:35 am (UTC)
From: [identity profile] venta.livejournal.com
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...

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

:)

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

Date: 2003-12-03 11:29 am (UTC)
From: [identity profile] venta.livejournal.com
<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.

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

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 :-()

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

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.

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

A Fine Plan

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

Re: A Fine Plan

Date: 2003-12-03 01:35 pm (UTC)
From: [identity profile] venta.livejournal.com
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

Date: 2003-12-04 02:07 am (UTC)
From: [identity profile] bateleur.livejournal.com
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

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

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

Profile

venta: (Default)
venta

December 2025

S M T W T F S
 123456
78910111213
14151617181920
212223 24252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 28th, 2025 06:41 am
Powered by Dreamwidth Studios