Mercurial > ecos
comparison packages/io/common/current/src/io_file.c @ 72:da3908c9cd10 ecos-sw-2000-02-17
Merge from eCos master repository on 2000-02-17-18:56:14-GMT
| author | jlarmour |
|---|---|
| date | Thu, 17 Feb 2000 19:38:13 +0000 |
| parents | bf00f99aec69 |
| children | f2545e5de153 |
comparison
equal
deleted
inserted
replaced
| 71:f4a0d3a26b92 | 72:da3908c9cd10 |
|---|---|
| 45 | 45 |
| 46 // File I/O support | 46 // File I/O support |
| 47 | 47 |
| 48 #include <pkgconf/io.h> | 48 #include <pkgconf/io.h> |
| 49 #include <cyg/io/file.h> | 49 #include <cyg/io/file.h> |
| 50 #include <sys/errno.h> | 50 #include <cyg/error/codes.h> |
| 51 | 51 |
| 52 struct file fds[CYGPKG_IO_NFILE]; | 52 struct file fds[CYGPKG_IO_NFILE]; |
| 53 | 53 |
| 54 // | 54 // |
| 55 // This function allcates a file "slot". | 55 // This function allcates a file "slot". |
| 93 if (f->f_flag == 0) | 93 if (f->f_flag == 0) |
| 94 return -1; | 94 return -1; |
| 95 *fp = f; | 95 *fp = f; |
| 96 return 0; | 96 return 0; |
| 97 } | 97 } |
| 98 |
