libk  Diff

Differences From Artifact [d3b54028db]:

To Artifact [2374315a32]:


    45     45   typedef struct kiochan {
    46     46   	kiostream in;
    47     47   	  // text can be read from this stream
    48     48   	kiostream out;
    49     49   	  // text can be written to this stream
    50     50   } kiochan;
    51     51   
           52  +#include <k/internal.egroup.h>
    52     53   typedef enum kiocond {
    53     54   	/* to check if a call failed, perform (x >= kiocond_fail) where x
    54     55   	 * is that call's return value. more typically however you should
    55     56   	 * select explicitly against kiocond_ok or kiocond_partial, since
    56     57   	 * those situations will usually need to be handled differently. */
    57     58   
    58         -	kiocond_ok, // success
           59  +	kiocond_ok = kiocond_id, // success
           60  +
    59     61   	kiocond_partial, // partial read or write
    60     62   	kiocond_poll, // call would block
    61     63   	kiocond_interrupt, // call was interrupted by signal
    62     64   
    63     65       kiocond_fail, // action failed - unspecified reason
    64     66   	kiocond_fail_closed_stream, // action failed because stream is closed
    65     67   	kiocond_fail_invalid,