1 | /* $Id: startup.h 3645 2008-05-18 23:42:37Z bird $ */
|
---|
2 | /** @file
|
---|
3 | * kLIBC startup stuff.
|
---|
4 | *
|
---|
5 | *
|
---|
6 | * Copyright (c) 2008 knut st. osmundsen <bird-src-spam@anduin.net>
|
---|
7 | *
|
---|
8 | *
|
---|
9 | * This file is part of kLIBC.
|
---|
10 | *
|
---|
11 | * kLIBC is free software; you can redistribute it and/or modify
|
---|
12 | * it under the terms of the GNU General Public License as published by
|
---|
13 | * the Free Software Foundation; either version 2 of the License, or
|
---|
14 | * (at your option) any later version.
|
---|
15 | *
|
---|
16 | * kLIBC is distributed in the hope that it will be useful,
|
---|
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
19 | * GNU General Public License for more details.
|
---|
20 | *
|
---|
21 | * You should have received a copy of the GNU General Public License
|
---|
22 | * along with kLIBC; if not, write to the Free Software
|
---|
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
24 | *
|
---|
25 | */
|
---|
26 |
|
---|
27 |
|
---|
28 | /** @name Flags at argv[x][-1].
|
---|
29 | * @remarks Only on OS/2 and NT.
|
---|
30 | * @remarks Compatible with the _ARG_* stuff in emx/startup.h.
|
---|
31 | * @{ */
|
---|
32 | #define __KLIBC_ARG_SIGNATURE "\177kLIBC\177"
|
---|
33 | /** This a filler to make sure the flag char isn't zero. */
|
---|
34 | #define __KLIBC_ARG_NONZERO 0x80
|
---|
35 | /** Mask out the actual flags. */
|
---|
36 | #define __KLIBC_ARG_MASK 0x3f
|
---|
37 | /** Argument was double quoted. */
|
---|
38 | #define __KLIBC_ARG_DQUOTE 0x01
|
---|
39 | /** Argument was read from response file. */
|
---|
40 | #define __KLIBC_ARG_RESPONSE 0x02
|
---|
41 | /** Argument was expaneded from wildcard. */
|
---|
42 | #define __KLIBC_ARG_WILDCARD 0x04
|
---|
43 | /** Argument was expaneded from environment. */
|
---|
44 | #define __KLIBC_ARG_ENV 0x08
|
---|
45 | /** Argument was expanded by the shell. */
|
---|
46 | #define __KLIBC_ARG_SHELL 0x10
|
---|
47 | /** Argument was passed via a unix argv. */
|
---|
48 | #define __KLIBC_ARG_ARGV 0x20
|
---|
49 | /** @} */
|
---|
50 |
|
---|
51 | /** @name OS/2 Stub info.
|
---|
52 | * @{ */
|
---|
53 | /** The stub signature of kLIBC binaries. */
|
---|
54 | #define __KLIBC_STUB_SIGNATURE_BASE "OS/2 executable module built for kLIBC v"
|
---|
55 | /** The of the signature from the start of the executable. */
|
---|
56 | #define __KLIBC_STUB_SIGNATURE_OFF 0x40
|
---|
57 | /** The minimum size of a kLIBC binary. */
|
---|
58 | #define __KLIBC_STUB_MIN_SIZE 0x80
|
---|
59 | /** @} */
|
---|