1.1 --- a/libexec/include/exec/segment.h Wed May 11 01:23:28 2022 +0200
1.2 +++ b/libexec/include/exec/segment.h Wed May 11 16:37:05 2022 +0200
1.3 @@ -37,39 +37,47 @@
1.4 protected:
1.5 MappedRegion _region;
1.6
1.7 -public:
1.8 /* Allocated memory. */
1.9
1.10 - char *buf;
1.11 - l4re_ds_t ds;
1.12 + char *_buf;
1.13 + l4re_ds_t _ds;
1.14
1.15 /* Segment base and corresponding region base. */
1.16
1.17 - l4_addr_t base, region_base;
1.18 + l4_addr_t _base, _region_base;
1.19
1.20 /* Segment size and corresponding region size. */
1.21
1.22 - offset_t size, region_size;
1.23 + offset_t _size, _region_size;
1.24
1.25 /* Offset of segment content within the region. */
1.26
1.27 - offset_t region_offset;
1.28 + offset_t _region_offset;
1.29
1.30 /* Access flags. */
1.31
1.32 - l4re_rm_flags_t flags;
1.33 + l4re_rm_flags_t _flags;
1.34
1.35 /* File access details. */
1.36
1.37 - offset_t file_offset, file_contents;
1.38 + offset_t _file_offset, _file_contents;
1.39
1.40 +public:
1.41 explicit Segment(l4_addr_t base, offset_t size, l4re_rm_flags_t flags,
1.42 offset_t file_offset = 0, offset_t file_contents = 0);
1.43
1.44 + char *address();
1.45 +
1.46 + offset_t size();
1.47 +
1.48 + /* Segment population methods. */
1.49 +
1.50 long allocate();
1.51
1.52 long fill(file_t *file);
1.53
1.54 + /* Mapped region methods. */
1.55 +
1.56 MappedRegion ®ion();
1.57
1.58 l4_addr_t region_address(char *address);