Changeset b7fd2a0 in mainline for uspace/app/sysinst
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/app/sysinst
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/futil.c
r36f0738 rb7fd2a0 54 54 * @return EOK on success, EIO on I/O error 55 55 */ 56 int futil_copy_file(const char *srcp, const char *destp)56 errno_t futil_copy_file(const char *srcp, const char *destp) 57 57 { 58 58 int sf, df; 59 59 size_t nr, nw; 60 int rc;60 errno_t rc; 61 61 aoff64_t posr = 0, posw = 0; 62 62 … … 104 104 * @return EOK on success, ENOMEM if out of memory, EIO on I/O error 105 105 */ 106 int futil_rcopy_contents(const char *srcdir, const char *destdir)106 errno_t futil_rcopy_contents(const char *srcdir, const char *destdir) 107 107 { 108 108 DIR *dir; … … 110 110 struct stat s; 111 111 char *srcp, *destp; 112 int rc;112 errno_t rc; 113 113 114 114 dir = opendir(srcdir); … … 158 158 * I/O error, ENOMEM if out of memory 159 159 */ 160 int futil_get_file(const char *srcp, void **rdata, size_t *rsize)160 errno_t futil_get_file(const char *srcp, void **rdata, size_t *rsize) 161 161 { 162 162 int sf; 163 163 size_t nr; 164 int rc;164 errno_t rc; 165 165 size_t fsize; 166 166 char *data; -
uspace/app/sysinst/futil.h
r36f0738 rb7fd2a0 41 41 #include <stddef.h> 42 42 43 extern int futil_copy_file(const char *, const char *);44 extern int futil_rcopy_contents(const char *, const char *);45 extern int futil_get_file(const char *, void **, size_t *);43 extern errno_t futil_copy_file(const char *, const char *); 44 extern errno_t futil_rcopy_contents(const char *, const char *); 45 extern errno_t futil_get_file(const char *, void **, size_t *); 46 46 47 47 #endif -
uspace/app/sysinst/sysinst.c
r36f0738 rb7fd2a0 85 85 * @return EOK on success or an error code 86 86 */ 87 static int sysinst_label_dev(const char *dev, char **pdev)87 static errno_t sysinst_label_dev(const char *dev, char **pdev) 88 88 { 89 89 fdisk_t *fdisk; … … 93 93 cap_spec_t cap; 94 94 service_id_t sid; 95 int rc;95 errno_t rc; 96 96 97 97 printf("sysinst_label_dev(): get service ID '%s'\n", dev); … … 154 154 * @return EOK on success or an error code 155 155 */ 156 static int sysinst_fs_mount(const char *dev)156 static errno_t sysinst_fs_mount(const char *dev) 157 157 { 158 158 task_wait_t twait; 159 159 task_exit_t texit; 160 int rc;160 errno_t rc; 161 161 int trc; 162 162 … … 193 193 * @return EOK on success or an error code 194 194 */ 195 static int sysinst_copy_boot_files(void)195 static errno_t sysinst_copy_boot_files(void) 196 196 { 197 197 task_wait_t twait; 198 198 task_exit_t texit; 199 int rc;199 errno_t rc; 200 200 int trc; 201 201 … … 260 260 * @return EOK on success or an error code 261 261 */ 262 static int sysinst_copy_boot_blocks(const char *devp)262 static errno_t sysinst_copy_boot_blocks(const char *devp) 263 263 { 264 264 void *boot_img; … … 272 272 aoff64_t core_blocks; 273 273 grub_boot_blocklist_t *first_bl, *bl; 274 int rc;274 errno_t rc; 275 275 276 276 printf("sysinst_copy_boot_blocks: Read boot block image.\n"); … … 355 355 * @return EOK on success or an error code 356 356 */ 357 static int sysinst_install(const char *dev)358 { 359 int rc;357 static errno_t sysinst_install(const char *dev) 358 { 359 errno_t rc; 360 360 char *pdev; 361 361
Note:
See TracChangeset
for help on using the changeset viewer.