Changeset a35b458 in mainline for uspace/lib/posix/src/sys
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- Location:
- uspace/lib/posix/src/sys
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/sys/mman.c
r3061bc1 ra35b458 44 44 if (!start) 45 45 start = AS_AREA_ANY; 46 46 47 47 // if (!((flags & MAP_SHARED) ^ (flags & MAP_PRIVATE))) 48 48 // return MAP_FAILED; 49 49 50 50 if (!(flags & MAP_ANONYMOUS)) 51 51 return MAP_FAILED; 52 52 53 53 return as_area_create(start, length, prot, AS_AREA_UNPAGED); 54 54 } -
uspace/lib/posix/src/sys/stat.c
r3061bc1 ra35b458 52 52 { 53 53 memset(dest, 0, sizeof(struct stat)); 54 54 55 55 dest->st_dev = src->service; 56 56 dest->st_ino = src->index; 57 57 58 58 /* HelenOS doesn't support permissions, so we set them all */ 59 59 dest->st_mode = S_IRWXU | S_IRWXG | S_IRWXO; … … 64 64 dest->st_mode |= S_IFDIR; 65 65 } 66 66 67 67 dest->st_nlink = src->lnkcnt; 68 68 dest->st_size = src->size; -
uspace/lib/posix/src/sys/wait.c
r3061bc1 ra35b458 95 95 assert(stat_ptr != NULL); 96 96 assert(options == 0 /* None of the options are supported. */); 97 97 98 98 task_exit_t texit; 99 99 int retval; 100 100 101 101 if (failed(task_wait_task_id((task_id_t) pid, &texit, &retval))) { 102 102 /* Unable to retrieve status. */ 103 103 return (pid_t) -1; 104 104 } 105 105 106 106 if (texit == TASK_EXIT_NORMAL) { 107 107 // FIXME: relies on application not returning this value … … 112 112 *stat_ptr = INT_MIN; 113 113 } 114 114 115 115 return pid; 116 116 }
Note:
See TracChangeset
for help on using the changeset viewer.