src/java.base/share/native/libjli/manifest_info.h
author ihse
Wed, 28 Mar 2018 23:56:08 +0200
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 56721 01b558efd286
permissions -rw-r--r--
8200178: Remove mapfiles for JDK native libraries Reviewed-by: erikj, alanb, mchung, prr, weijun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
49440
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
     2
 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#ifndef _MANIFEST_INFO_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#define _MANIFEST_INFO_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#include <sys/types.h>
49440
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    30
#include "jni.h"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * Zip file header signatures
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
#define SIGSIZ 4                    /* size of all header signatures */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
29389
348a32f79d79 8074579: Use more efficient and readable way of checking PKZIP signatures
martin
parents: 25859
diff changeset
    37
#define PKZIP_SIGNATURE_AT(p, b2, b3) \
348a32f79d79 8074579: Use more efficient and readable way of checking PKZIP signatures
martin
parents: 25859
diff changeset
    38
  (((p)[0] == 'P') & ((p)[1] == 'K') & ((p)[2] == b2) & ((p)[3] == b3))
348a32f79d79 8074579: Use more efficient and readable way of checking PKZIP signatures
martin
parents: 25859
diff changeset
    39
#define CENSIG_AT(p)       PKZIP_SIGNATURE_AT(p, 1, 2)
348a32f79d79 8074579: Use more efficient and readable way of checking PKZIP signatures
martin
parents: 25859
diff changeset
    40
#define LOCSIG_AT(p)       PKZIP_SIGNATURE_AT(p, 3, 4)
348a32f79d79 8074579: Use more efficient and readable way of checking PKZIP signatures
martin
parents: 25859
diff changeset
    41
#define ENDSIG_AT(p)       PKZIP_SIGNATURE_AT(p, 5, 6)
348a32f79d79 8074579: Use more efficient and readable way of checking PKZIP signatures
martin
parents: 25859
diff changeset
    42
#define EXTSIG_AT(p)       PKZIP_SIGNATURE_AT(p, 7, 8)
348a32f79d79 8074579: Use more efficient and readable way of checking PKZIP signatures
martin
parents: 25859
diff changeset
    43
#define ZIP64_ENDSIG_AT(p) PKZIP_SIGNATURE_AT(p, 6, 6)
348a32f79d79 8074579: Use more efficient and readable way of checking PKZIP signatures
martin
parents: 25859
diff changeset
    44
#define ZIP64_LOCSIG_AT(p) PKZIP_SIGNATURE_AT(p, 6, 7)
348a32f79d79 8074579: Use more efficient and readable way of checking PKZIP signatures
martin
parents: 25859
diff changeset
    45
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * Header sizes including signatures
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
#define LOCHDR 30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
#define EXTHDR 16
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
#define CENHDR 46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
#define ENDHDR 22
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
13675
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
    54
#define ZIP64_ENDHDR 56       // ZIP64 end header size
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
    55
#define ZIP64_LOCHDR 20       // ZIP64 end loc header size
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
    56
#define ZIP64_EXTHDR 24       // EXT header size
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
    57
#define ZIP64_EXTID   1       // Extra field Zip64 header ID
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
    58
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
    59
#define ZIP64_MAGICVAL 0xffffffffLL
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
    60
#define ZIP64_MAGICCOUNT 0xffff
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
    61
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 * Header field access macros
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
#define CH(b, n) (((unsigned char *)(b))[n])
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#define SH(b, n) (CH(b, n) | (CH(b, n+1) << 8))
13675
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
    67
#define LG(b, n) ((SH(b, n) | (SH(b, n+2) << 16)) &0xffffffffUL)
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
    68
#define LL(b, n) (((jlong)LG(b, n)) | (((jlong)LG(b, n+4)) << 32))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#define GETSIG(b) LG(b, 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 * Macros for getting local file (LOC) header fields
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
#define LOCVER(b) SH(b, 4)          /* version needed to extract */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
#define LOCFLG(b) SH(b, 6)          /* general purpose bit flags */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
#define LOCHOW(b) SH(b, 8)          /* compression method */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
#define LOCTIM(b) LG(b, 10)         /* modification time */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
#define LOCCRC(b) LG(b, 14)         /* crc of uncompressed data */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
#define LOCSIZ(b) LG(b, 18)         /* compressed data size */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
#define LOCLEN(b) LG(b, 22)         /* uncompressed data size */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
#define LOCNAM(b) SH(b, 26)         /* filename length */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
#define LOCEXT(b) SH(b, 28)         /* extra field length */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 * Macros for getting extra local (EXT) header fields
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
#define EXTCRC(b) LG(b, 4)          /* crc of uncompressed data */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
#define EXTSIZ(b) LG(b, 8)          /* compressed size */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
#define EXTLEN(b) LG(b, 12)         /* uncompressed size */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 * Macros for getting central directory header (CEN) fields
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
#define CENVEM(b) SH(b, 4)          /* version made by */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
#define CENVER(b) SH(b, 6)          /* version needed to extract */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
#define CENFLG(b) SH(b, 8)          /* general purpose bit flags */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
#define CENHOW(b) SH(b, 10)         /* compression method */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
#define CENTIM(b) LG(b, 12)         /* modification time */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
#define CENCRC(b) LG(b, 16)         /* crc of uncompressed data */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
#define CENSIZ(b) LG(b, 20)         /* compressed size */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
#define CENLEN(b) LG(b, 24)         /* uncompressed size */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
#define CENNAM(b) SH(b, 28)         /* length of filename */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
#define CENEXT(b) SH(b, 30)         /* length of extra field */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
#define CENCOM(b) SH(b, 32)         /* file comment length */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
#define CENDSK(b) SH(b, 34)         /* disk number start */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
#define CENATT(b) SH(b, 36)         /* internal file attributes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
#define CENATX(b) LG(b, 38)         /* external file attributes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
#define CENOFF(b) LG(b, 42)         /* offset of local header */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 * Macros for getting end of central directory header (END) fields
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
 */
29713
eeabfe673c97 8073158: zip files with total entry count 0xFFFF need not be ZIP64 files
martin
parents: 29389
diff changeset
   113
#define ENDNMD(b) SH(b, 4)          /* number of this disk */
eeabfe673c97 8073158: zip files with total entry count 0xFFFF need not be ZIP64 files
martin
parents: 29389
diff changeset
   114
#define ENDDSK(b) SH(b, 6)          /* disk number of start */
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
#define ENDSUB(b) SH(b, 8)          /* number of entries on this disk */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
#define ENDTOT(b) SH(b, 10)         /* total number of entries */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
#define ENDSIZ(b) LG(b, 12)         /* central directory size */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
#define ENDOFF(b) LG(b, 16)         /* central directory offset */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
#define ENDCOM(b) SH(b, 20)         /* size of zip file comment */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
/*
13675
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   122
 * Macros for getting Zip64 end of central directory header fields
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   123
 */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   124
#define ZIP64_ENDLEN(b) LL(b, 4)      /* size of zip64 end of central dir */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   125
#define ZIP64_ENDVEM(b) SH(b, 12)     /* version made by */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   126
#define ZIP64_ENDVER(b) SH(b, 14)     /* version needed to extract */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   127
#define ZIP64_ENDNMD(b) LG(b, 16)     /* number of this disk */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   128
#define ZIP64_ENDDSK(b) LG(b, 20)     /* disk number of start */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   129
#define ZIP64_ENDTOD(b) LL(b, 24)     /* total number of entries on this disk */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   130
#define ZIP64_ENDTOT(b) LL(b, 32)     /* total number of entries */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   131
#define ZIP64_ENDSIZ(b) LL(b, 40)     /* central directory size in bytes */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   132
#define ZIP64_ENDOFF(b) LL(b, 48)     /* offset of first CEN header */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   133
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   134
/*
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   135
 * Macros for getting Zip64 end of central directory locator fields
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   136
 */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   137
#define ZIP64_LOCDSK(b) LG(b, 4)      /* disk number start */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   138
#define ZIP64_LOCOFF(b) LL(b, 8)      /* offset of zip64 end */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   139
#define ZIP64_LOCTOT(b) LG(b, 16)     /* total number of disks */
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   140
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   141
/*
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
 * A comment of maximum length of 64kb can follow the END record. This
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
 * is the furthest the END record can be from the end of the file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
#define END_MAXLEN      (0xFFFF + ENDHDR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
 * Supported compression methods.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
#define STORED      0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
#define DEFLATED    8
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
 * Information from the CEN entry to inflate a file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
typedef struct zentry { /* Zip file entry */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    size_t      isize;  /* size of inflated data */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    size_t      csize;  /* size of compressed data (zero if uncompressed) */
13675
c2999ee84468 7194005: (launcher) needs to be enhanced for 64-bit jar file handling
ksrini
parents: 5506
diff changeset
   159
    jlong       offset; /* position of compressed data */
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    int         how;    /* compression method (if any) */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
} zentry;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
 * Information returned from the Manifest file by the ParseManifest() routine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
 * Certainly (much) more could be returned, but this is the information
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
 * currently of interest to the C based Java utilities (particularly the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
 * Java launcher).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
typedef struct manifest_info {  /* Interesting fields from the Manifest */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    char        *manifest_version;      /* Manifest-Version string */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
    char        *main_class;            /* Main-Class entry */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    char        *jre_version;           /* Appropriate J2SE release spec */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    char        jre_restrict_search;    /* Restricted JRE search */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    char        *splashscreen_image_file_name; /* splashscreen image file */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
} manifest_info;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
 * Attribute closure to provide to manifest_iterate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
typedef void (*attribute_closure)(const char *name, const char *value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
        void *user_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
 * Function prototypes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
int     JLI_ParseManifest(char *jarfile, manifest_info *info);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
void    *JLI_JarUnpackFile(const char *jarfile, const char *filename,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                int *size);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
void    JLI_FreeManifest(void);
49440
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
   190
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
   191
JNIEXPORT int JNICALL
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
   192
JLI_ManifestIterate(const char *jarfile, attribute_closure ac,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
                void *user_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
#endif  /* _MANIFEST_INFO_H */