<?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>2665</bug_id>
          
          <creation_ts>2012-06-27 03:26:57 +0000</creation_ts>
          <short_desc>POSIX: case aio_return 2-1 3-2 4-1 return UNRESOLVED on all arches</short_desc>
          <delta_ts>2012-07-31 08:26:12 +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>VERIFIED</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>1.3 M2</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>laurentiu.serban</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>22615</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-06-27 03:26:57 +0000</bug_when>
    <thetext>case aio_return 2-1 3-2 4-1 return UNRESOLVED on all arches
case 2-1 and 3-2 call aio_return 2 times and expect return -1
case 4-1 call aio_return with argument aiocbp which does not point at a control block for an asynchronous I/O request, and expect error EINVAL</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22617</commentid>
    <comment_count>1</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-06-27 03:34:17 +0000</bug_when>
    <thetext>For case 2-1 3-2, they test call aio_return 2 times and expect return -1. 

In the POSIX spec, it says:
The aio_return( ) function may be called exactly once to retrieve the
return status of a given asynchronous operation; thereafter, if the same aiocb structure is used in
a call to aio_return( ) or aio_error( ), an error *may* be returned.

It just says &quot;may&quot; and not compel to return an error, so it is implement dependent and I think they are not bugs.

---------------------------------------------
For case 4-1, the spec says:

The aio_return() function *may* fail if:

[EINVAL]  The aiocbp argument does not refer to an asynchronous operation whose
          return status has not yet been retrieved.

This is also &apos;may&apos; and is implement dependent and not a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23631</commentid>
    <comment_count>2</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-07-31 08:26:12 +0000</bug_when>
    <thetext>Setting to Verified after last comment</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>