home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / darwin / darwinx86.iso / usr / include / mach-o / getsect.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-09-14  |  1.8 KB  |  58 lines

  1. /*
  2.  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
  3.  *
  4.  * @APPLE_LICENSE_HEADER_START@
  5.  * 
  6.  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
  7.  * Reserved.  This file contains Original Code and/or Modifications of
  8.  * Original Code as defined in and that are subject to the Apple Public
  9.  * Source License Version 1.1 (the "License").  You may not use this file
  10.  * except in compliance with the License.  Please obtain a copy of the
  11.  * License at http://www.apple.com/publicsource and read it before using
  12.  * this file.
  13.  * 
  14.  * The Original Code and all software distributed under the License are
  15.  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  16.  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  17.  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  18.  * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT.  Please see the
  19.  * License for the specific language governing rights and limitations
  20.  * under the License.
  21.  * 
  22.  * @APPLE_LICENSE_HEADER_END@
  23.  */
  24. #import <mach-o/loader.h>
  25.  
  26. extern const struct section *getsectbyname(
  27.     const char *segname,
  28.     const char *sectname);
  29.  
  30. extern char *getsectdata(
  31.     const char *segname,
  32.     const char *sectname,
  33.     unsigned long *size);
  34.  
  35. extern char *getsectdatafromheader(
  36.     const struct mach_header *mhp,
  37.     const char *segname,
  38.     const char *sectname,
  39.     unsigned long *size);
  40.  
  41. extern char *getsectdatafromFramework(
  42.     const char *FrameworkName,
  43.     const char *segname,
  44.     const char *sectname,
  45.     unsigned long *size);
  46.  
  47. extern const struct section *getsectbynamefromheader(
  48.     const struct mach_header *mhp,
  49.     const char *segname,
  50.     const char *sectname);
  51.  
  52. extern const struct segment_command *getsegbyname(
  53.     const char *segname);
  54.  
  55. extern unsigned long get_end(void);
  56. extern unsigned long get_etext(void);
  57. extern unsigned long get_edata(void);
  58.