Changeset 651 for trunk/kernel/libk
- Timestamp:
- Nov 14, 2019, 11:50:09 AM (5 years ago)
- Location:
- trunk/kernel/libk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/elf.c
r635 r651 216 216 process_t * process ) 217 217 { 218 uint32_t new_offset; // unused, required by vfs_lseek() 218 219 kmem_req_t req; // kmem request for program header 219 220 Elf_Ehdr header; // local buffer for .elf header … … 274 275 275 276 // set seek pointer in file descriptor to access segment descriptors array 276 error = vfs_lseek( file_xp , header.e_phoff, SEEK_SET , NULL);277 error = vfs_lseek( file_xp , header.e_phoff, SEEK_SET , &new_offset ); 277 278 278 279 if( error ) -
trunk/kernel/libk/list.h
r636 r651 61 61 62 62 /*************************************************************************** 63 * This macro return an uint32_t that is the offset (number of bytes)63 * This macro return an intptr_t that is the offset (number of bytes) 64 64 * of a field in a structure. 65 *************************************************************************** 65 66 * @ type : structure type 66 67 * @ member : name of the field -
trunk/kernel/libk/user_dir.h
r635 r651 37 37 * - An user process open a directory by calling the "opendir()" syscall. 38 38 * The user_dir_create() function allocates physical memory to create in the cluster 39 * containing the targetinode one or several physical pages to implement an array40 * of "dirent" , mapped in the user process space as an ANON vseg. It allocates also41 * an "user_dir_t" descriptor structure defined below, registered in the xlist rooted42 * in the reference user process descriptor.39 * containing the directory inode one or several physical pages to implement an array 40 * of "dirent". This array is mapped in the user process space as an ANON vseg. 41 * It allocates also an "user_dir_t" descriptor structure defined below, registered 42 * in the xlist rooted in the reference user process descriptor. 43 43 * - This "user_dir_t" structure contains the total number of "entries", the "current" 44 44 * pointer used by the readdir() syscall, and an "ident" field, that is actually … … 104 104 * structures rooted in the reference process descriptor, release all memory 105 105 * allocated for the user_dir_t struct in the directory inode cluster, including 106 * the dirent array, and delete allANON vseg copies in all process VMM copies,106 * the dirent array, and delete the ANON vseg copies in all process VMM copies, 107 107 * using parallel RPCs. 108 108 * It must be executed by a thread running in the cluster containing the target inode.
Note: See TracChangeset
for help on using the changeset viewer.