libk  Diff

Differences From Artifact [34396da060]:

To Artifact [03256457ff]:


     4      4    * ~ lexi hale <lexi@hale.su>
     5      5    * this header declares IO primitive functions and
     6      6    * structures. it is the same for all platforms.
     7      7    * platform-specific code is found in the *.platform.h
     8      8    * files.
     9      9    */
    10     10   
    11         -#include <k/str.h>
    12     11   #include <k/type.h>
    13     12   #include <k/mem.h>
    14     13   
    15     14   #ifdef __cplusplus
    16     15   extern "C" {
    17     16   #endif
    18     17   
................................................................................
    72     71   	kiocond_fail_no_space,
    73     72   	kiocond_fail_forbidden,
    74     73   	kiocond_fail_over_quota,
    75     74   	kiocond_fail_pfault,
    76     75   	kiocond_fail_too_big,
    77     76   	kiocond_fail_stream_mismatch,
    78     77   } kiocond;
           78  +
           79  +#include <k/str.h>
    79     80   
    80     81   kiocond kiosend(kiochan, ksraw, sz*); // send data to a channel
    81     82   kiocond kiosendall(kiochan, ksraw); // keep sending data to a channel until it's all sent
    82     83   kiocond kiorecv(kiochan, ksraw*); // receive data from a channel
    83     84   kmptr kiorecvall(kiochan, kmcell*, kmkind); // automatically allocate a bufer for a channel
    84     85     // kmkind is only used if kmcell* is null
    85     86   kiocond kiocon(kiochan, kiochan); // connect one channel to another
    86     87   
    87     88   #ifdef __cplusplus
    88     89   }
    89     90   #endif
    90     91   
    91     92   #endif