Rev 1787 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1866 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup libc |
29 | /** @addtogroup libc |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef __libc_STREAM_H_ |
35 | #ifndef LIBC_STREAM_H_ |
36 | #define __libc_STREAM_H_ |
36 | #define LIBC_STREAM_H_ |
37 | 37 | ||
38 | #include <libarch/types.h> |
38 | #include <libarch/types.h> |
39 | 39 | ||
40 | #define EMFILE -17 |
40 | #define EMFILE -17 |
41 | 41 | ||
42 | typedef int fd_t; |
42 | typedef int fd_t; |
43 | 43 | ||
44 | - | ||
45 | typedef ssize_t (*pwritefn_t)(void *, const void *, size_t); |
44 | typedef ssize_t (*pwritefn_t)(void *, const void *, size_t); |
46 | typedef ssize_t (*preadfn_t)(void *, void *, size_t); |
45 | typedef ssize_t (*preadfn_t)(void *, void *, size_t); |
47 | 46 | ||
48 | fd_t open(const char *fname, int flags); |
47 | fd_t open(const char *fname, int flags); |
49 | int get_fd_phone(int fd); |
48 | int get_fd_phone(int fd); |
50 | 49 | ||
51 | #endif |
50 | #endif |
52 | 51 | ||
53 | - | ||
54 | /** @} |
52 | /** @} |
55 | */ |
53 | */ |
56 | - | ||
57 | - |