Lines Matching defs:segment
164 // Given a pointer to a 32 bit mach object segment, iterate the segment to
168 OSRuntimeUnloadCPPForSegment(struct segment_command * segment) {
172 for (section = firstsect(segment);
174 section = nextsect(segment, section)) {
197 struct segment_command * segment;
204 segment = firstsegfromheader(header);
206 for (segment = firstsegfromheader(header);
207 segment != 0;
208 segment = nextseg(segment)) {
210 OSRuntimeUnloadCPPForSegment(segment);
241 struct segment_command * segment;
259 * segment, and invoke the constructors within those sections.
261 for (segment = firstsegfromheader(header);
262 segment != 0 && load_success;
263 segment = nextseg(segment)) {
267 /* Record the current segment in the event of a failure.
269 failure_segment = segment;
271 for (section = firstsect(segment);
273 section = nextsect(segment, section)) {
280 // section names are unique within a segment?
294 printf("Error! Null constructor in segment %s.\n",
303 } /* for (segment...) */
310 * segment, and invoke the constructors within those sections.
312 for (segment = firstsegfromheader(header);
313 segment != failure_segment && segment != 0;
314 segment = nextseg(segment)) {
316 OSRuntimeUnloadCPPForSegment(segment);
318 } /* for (segment...) */