Project

General

Profile

Actions

Bug #2393

closed

ETIME not defined in /usr/include/errno.h, current pkgsrc libdrm 2.4.37 intel_bufmgr_gem.c won't build

Added by davshao over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/02/2012
Due date:
% Done:

0%

Estimated time:

Description

/usr/include/errno.h from latest DEVEL-3.1 does not appear to define ETIME. ETIME appears to be associated with STREAMS as an option in the POSIX standard; therefore, if STREAMS is not implemented, there may be good reason for it to not be defined.

Even if ETIME is to be deliberately not defined, there needs to be some recommendation on what its value should be for porting applications such as libdrm 2.4.37.

Actions #1

Updated by swildner over 12 years ago

Hmm, can this be brought to the libdrm people's attention, please?

We don't have ETIME at all (I don't see it being under #ifndef _POSIX_SOURCE as it is claimed in http://mail-index.netbsd.org/pkgsrc-bugs/2012/07/03/msg048227.html).

It's marked both optional and obsolescent in current OpenGroup Specs -> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html

I don't think the solution is to add it to our errno.h. It would be the first package I know of that requires it.

Sascha

Actions #2

Updated by marino over 12 years ago

I agree with Sascha except for the last line.
We've run into ETIME problems at least once before. In that case, we just changed the enumeration because it wasn't being used anyway for the reasons listed above. So in general, when I see ETIME, I suspect the software first.

Actions #3

Updated by swildner over 12 years ago

  • Status changed from New to Closed

No issues in DragonFly with ETIME. We don't have it, we won't add it. :)

Closing

Actions

Also available in: Atom PDF