diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-22 22:55:11 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-22 22:55:11 +0000 |
commit | 86f5c9906beac527f3d7966f24811b571a589e08 (patch) | |
tree | 1c9eba853c728b5d734506e1c66c269d96fe46ea /include/busybox.h | |
parent | 2edf52643d3eb3d13f26d31f9678cf122f2063bc (diff) | |
download | busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.gz busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.bz2 busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.zip |
- add platform.h.
- use shorter boilerplate while at it.
Diffstat (limited to 'include/busybox.h')
-rw-r--r-- | include/busybox.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/include/busybox.h b/include/busybox.h index f16be706d..9fb95036e 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -2,24 +2,7 @@ | |||
2 | /* | 2 | /* |
3 | * Busybox main internal header file | 3 | * Busybox main internal header file |
4 | * | 4 | * |
5 | * | 5 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | * | ||
20 | * Based in part on code from sash, Copyright (c) 1999 by David I. Bell | ||
21 | * Permission has been granted to redistribute this code under the GPL. | ||
22 | * | ||
23 | */ | 6 | */ |
24 | #ifndef _BB_INTERNAL_H_ | 7 | #ifndef _BB_INTERNAL_H_ |
25 | #define _BB_INTERNAL_H_ 1 | 8 | #define _BB_INTERNAL_H_ 1 |
@@ -66,8 +49,8 @@ enum SUIDRoot { | |||
66 | struct BB_applet { | 49 | struct BB_applet { |
67 | const char *name; | 50 | const char *name; |
68 | int (*main) (int argc, char **argv); | 51 | int (*main) (int argc, char **argv); |
69 | enum Location location:4; | 52 | __extension__ enum Location location:4; |
70 | enum SUIDRoot need_suid:4; | 53 | __extension__ enum SUIDRoot need_suid:4; |
71 | }; | 54 | }; |
72 | 55 | ||
73 | /* From busybox.c */ | 56 | /* From busybox.c */ |