Changeset 5c925ce in mainline for uspace/app/bithenge/file.c
- Timestamp:
- 2012-06-07T17:00:12Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8375d0eb
- Parents:
- 5f679702
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/file.c
r5f679702 r5c925ce 97 97 }; 98 98 99 static int new_file_blob(bithenge_ blob_t **out, int fd, bool needs_close)99 static int new_file_blob(bithenge_node_t **out, int fd, bool needs_close) 100 100 { 101 101 assert(out); … … 127 127 blob->size = stat.size; 128 128 blob->needs_close = needs_close; 129 *out = b lob_from_file(blob);129 *out = bithenge_blob_as_node(blob_from_file(blob)); 130 130 131 131 return EOK; … … 137 137 * @param filename The name of the file. 138 138 * @return EOK on success or an error code from errno.h. */ 139 int bithenge_new_file_blob(bithenge_ blob_t **out, const char *filename)139 int bithenge_new_file_blob(bithenge_node_t **out, const char *filename) 140 140 { 141 141 assert(filename); … … 153 153 * @param fd The file descriptor. 154 154 * @return EOK on success or an error code from errno.h. */ 155 int bithenge_new_file_blob_from_fd(bithenge_ blob_t **out, int fd)155 int bithenge_new_file_blob_from_fd(bithenge_node_t **out, int fd) 156 156 { 157 157 return new_file_blob(out, fd, false); … … 163 163 * @param file The file pointer. 164 164 * @return EOK on success or an error code from errno.h. */ 165 int bithenge_new_file_blob_from_file(bithenge_ blob_t **out, FILE *file)165 int bithenge_new_file_blob_from_file(bithenge_node_t **out, FILE *file) 166 166 { 167 167 int fd = fileno(file);
Note:
See TracChangeset
for help on using the changeset viewer.