Skip to contentSkip to conversation

sysconf(_SC_ASYNCHRONOUS_IO) != 200112L

RFC Cyril Hrubis 1 participant 2 messages Dec 17, 2010 – Dec 23, 2010 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi!
Newer glibc returns 200809 as a result from sysconf(_SC_ASYNCHRONOUS_IO) (the git commit was done on 26 Feb 2009) and the change seems to be propagated into stable glibc versions (mine is 2.11.2-r3).

The problem is that nearly all aio testcases starts with

if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L)

	return PTS_UNRESOLVED;

So these tests are disabled with newer glibc.

However the changes between posix 200112 and 200908 seems to be minimal (I haven't been able to find the full list of changes, but at least the
testcases seems to work.)

My proposal is to do one of the following:

* remove these two lines to enable the tests

* change them to sysconf(_SC_ASYNCHRONOUS_IO) >= 200112L

(I would gladly prepare patch, once we agree on reasonable solution)

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hi!

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

Hi!
Newer glibc returns 200809 as a result from sysconf(_SC_ASYNCHRONOUS_IO) (the git commit was done on 26 Feb 2009) and the change seems to be propagated into stable glibc versions (mine is 2.11.2-r3).

The problem is that nearly all aio testcases starts with

if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L)
       return PTS_UNRESOLVED;

So these tests are disabled with newer glibc.

However the changes between posix 200112 and 200908 seems to be minimal (I haven't been able to find the full list of changes, but at least the testcases seems to work.)

My proposal is to do one of the following:

* remove these two lines to enable the tests

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

* change them to sysconf(_SC_ASYNCHRONOUS_IO) >= 200112L

Option 2 is better than option 1.

That being said though, it would be nice if we had tests specific to these requirements, in addition to ones that aren't, and if glibc is unnecessarily bumping values then someone needs to talk to Ulrich about not creating unnecessary churn.

The problem is that I've been unable to find a document which sumarizes changes between 1003.1-2002 and 1003.1-2008. And coparing the documentation page by page is troublesome, especially when there seems to be miminal number of changes.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list