Changeset c81d4f1 in mainline for uspace/lib
- Timestamp:
- 2018-01-04T20:50:53Z (8 years ago)
- Children:
- 3b47db6
- Parents:
- 847844a
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:53)
- Location:
- uspace/lib/c
- Files:
-
- 5 edited
-
generic/elf/elf_load.c (modified) (1 diff)
-
generic/inet/host.c (modified) (1 diff)
-
generic/inet/hostport.c (modified) (1 diff)
-
generic/str_error.c (modified) (2 diffs)
-
include/stdlib.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/elf/elf_load.c
r847844a rc81d4f1 80 80 81 81 errno_t rc2 = rtld_prog_process(&info->finfo, &env); 82 switch ( (case_errno_t)rc2) {83 case (case_errno_t)EOK:82 switch (rc2) { 83 case EOK: 84 84 rc = EE_OK; 85 85 break; 86 case (case_errno_t)ENOMEM:86 case ENOMEM: 87 87 rc = EE_MEMORY; 88 88 break; -
uspace/lib/c/generic/inet/host.c
r847844a rc81d4f1 210 210 rc = inet_host_parse(str, &host, endptr != NULL ? &eptr : NULL); 211 211 if (rc != EOK) { 212 switch ( (case_errno_t)rc) {213 case (case_errno_t)EINVAL:212 switch (rc) { 213 case EINVAL: 214 214 if (errmsg != NULL) 215 215 *errmsg = "Invalid format"; 216 216 goto error; 217 case (case_errno_t)ENOMEM:217 case ENOMEM: 218 218 if (errmsg != NULL) 219 219 *errmsg = "Out of memory"; -
uspace/lib/c/generic/inet/hostport.c
r847844a rc81d4f1 264 264 rc = inet_hostport_parse(str, &hp, endptr != NULL ? &eptr : NULL); 265 265 if (rc != EOK) { 266 switch ( (case_errno_t)rc) {267 case (case_errno_t)EINVAL:266 switch (rc) { 267 case EINVAL: 268 268 if (errmsg != NULL) 269 269 *errmsg = "Invalid format"; 270 270 goto error; 271 case (case_errno_t)ENOMEM:271 case ENOMEM: 272 272 if (errmsg != NULL) 273 273 *errmsg = "Out of memory"; 274 274 goto error; 275 case (case_errno_t)EOK:275 case EOK: 276 276 break; 277 277 default: -
uspace/lib/c/generic/str_error.c
r847844a rc81d4f1 96 96 } 97 97 98 snprintf(noerr, NOERR_LEN, "(%d)", (int) (case_errno_t)e);98 snprintf(noerr, NOERR_LEN, "(%d)", (int)e); 99 99 return noerr; 100 100 } … … 108 108 } 109 109 110 snprintf(noerr, NOERR_LEN, "Unknown error code (%d)", (int) (case_errno_t)e);110 snprintf(noerr, NOERR_LEN, "Unknown error code (%d)", (int)e); 111 111 return noerr; 112 112 } -
uspace/lib/c/include/stdlib.h
r847844a rc81d4f1 56 56 #include <errno.h> 57 57 static inline int EXIT_RC(errno_t rc) { 58 return (int) (case_errno_t)rc;58 return (int) rc; 59 59 } 60 60
Note:
See TracChangeset
for help on using the changeset viewer.
