• Home
  • Raw
  • Download

Lines Matching refs:var

3   (int @var{descriptor}, off_t @var{offset}, const char *{segment_name}, @
4 const char **@var{errmsg}, int *@var{err})
10 @var{descriptor} holds a file descriptor which permits reading.
12 @var{offset} is the offset into the file; this will be @code{0} in the
16 @var{segment_name} is only used with the Mach-O file format used on
22 @code{*@var{errmsg}} to an error string and sets @code{*@var{err}} to
28 (simple_object_read *@var{simple_object}, int (*@var{pfn}) (void *@var{data}, @
29 const char *@var{name}, off_t @var{offset}, off_t @var{length}), @
30 void *@var{data}, int *@var{err})
32 This function calls @var{pfn} for each section in @var{simple_object}.
33 It calls @var{pfn} with the section name, the offset within the file
36 @code{simple_object_open_read}. The @var{data} argument to this
37 function is passed along to @var{pfn}.
39 If @var{pfn} returns @code{0}, the loop over the sections stops and
40 @code{simple_object_find_sections} returns. If @var{pfn} returns some
44 returns an error string, and sets @code{*@var{err}} to an errno value
50 (simple_object_read *@var{simple_object} off_t *@var{offset}, @
51 off_t *@var{length}, const char **@var{errmsg}, int *@var{err})
53 Look for the section @var{name} in @var{simple_object}. This returns
56 If found, return 1 and set @code{*@var{offset}} to the offset in the
57 file of the section contents and set @code{*@var{length}} to the
58 length of the section contents. The value in @code{*@var{offset}}
64 @code{*@var{errmsg}} to @code{NULL}.
67 @code{0}, sets @code{*@var{errmsg}} to an error message, and sets
68 @code{*@var{err}} to an errno value or @code{0} if there is no
74 (simple_object_read *@var{simple_object})
76 Release all resources associated with @var{simple_object}. This does
82 (simple_object_read *@var{simple_object}, const char **@var{errmsg}, int *@var{err})
84 Fetch the attributes of @var{simple_object}. The attributes are
88 @var{simple_object} itself is released.
90 On error this returns @code{NULL}, sets @code{*@var{errmsg}} to an
91 error message, and sets @code{*@var{err}} to an errno value or
97 (simple_object_attributes *@var{attrs1}, simple_object_attributes *@var{attrs2}, @
98 int *@var{err})
100 Compare @var{attrs1} and @var{attrs2}. If they could be linked
102 error message and set @code{*@var{err}} to an errno value or @code{0}
108 (simple_object_attributes *@var{attrs})
110 Release all resources associated with @var{attrs}.
115 (simple_object_attributes @var{attrs}, const char *@var{segment_name}, @
116 const char **@var{errmsg}, int *@var{err})
119 described in @var{attrs}. You must fetch attribute information from
123 @var{segment_name} is only used with Mach-O as found on Darwin aka Mac
129 @code{*@var{ERRMSG}} to an error message, and sets @code{*@var{err}}
135 (simple_object_write *@var{simple_object}, const char *@var{name}, @
136 unsigned int @var{align}, const char **@var{errmsg}, int *@var{err})
138 Add a section to @var{simple_object}. @var{name} is the name of the
139 new section. @var{align} is the required alignment expressed as the
147 On error this returns @code{NULL}, sets @code{*@var{errmsg}} to an
148 error message, and sets @code{*@var{err}} to an errno value or
154 (simple_object_write *@var{simple_object}, @
155 simple_object_write_section *@var{section}, const void *@var{buffer}, @
156 size_t @var{size}, int @var{copy}, int *@var{err})
158 Add data @var{buffer}/@var{size} to @var{section} in
159 @var{simple_object}. If @var{copy} is non-zero, the data will be
160 copied into memory if necessary. If @var{copy} is zero, @var{buffer}
165 message, and sets @code{*@var{err}} to an errno value or 0 if there is
171 (simple_object_write *@var{simple_object}, int @var{descriptor}, int *@var{err})
173 Write the complete object file to @var{descriptor}, an open file
176 @var{simple_object_write_add_data}.
179 message and sets @code{*@var{err}} to an errno value or @code{0} if
185 (simple_object_write *@var{simple_object})
187 Release all resources associated with @var{simple_object}.