<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2660</bug_id>
          
          <creation_ts>2012-06-26 06:55:24 +0000</creation_ts>
          <short_desc>POSIX: case lio_listio/11-1 fails on all arches</short_desc>
          <delta_ts>2012-06-27 02:14:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>2332</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kai Kang">kai.kang</reporter>
          <assigned_to name="Kai Kang">kai.kang</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22585</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-06-26 06:55:24 +0000</bug_when>
    <thetext>case lio_listio/11-1 fails on all arches

Error message:
lio_listio/11-1.c Error lio_listio() should have returned -1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22612</commentid>
    <comment_count>1</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-06-27 02:14:20 +0000</bug_when>
    <thetext>Open this bug just to record the case fails, but I think this failure is not a bug.

The case try to:
- open a file for writing                                                   
- submit a list with invalid opcodes to lio_listio in LIO_NOWAIT mode
- check that lio_listio returns -1

The POSIX specification(IEEE Std 1003.1-2008) says（Line 40292）：
The supported operations are LIO_READ, LIO_WRITE, and LIO_NOP

But the spec doesn&apos;t say what should happen if the value it not one of the 3 operation codes.

In Khem Raj&apos;s &lt;raj.khem@gmail.com&gt; opioion, 
&quot;for aio_lio_opcode posix says &quot;The supported operations are LIO_READ,
LIO_WRITE, and LIO_NOP&quot;

but it does not say what should happen if the value it not one of the above
so IMO its not a bug but falls into undefined behavior.&quot;

Ref: http://www.eglibc.org/archives/patches/msg01074.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>