Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/include/busybox.h
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/include/busybox.h
r3232 r3621 16 16 extern const char applet_names[] ALIGN1; 17 17 extern int (*const applet_main[])(int argc, char **argv); 18 extern const uint16_t applet_nameofs[]; 18 extern const uint8_t applet_flags[] ALIGN1; 19 extern const uint8_t applet_suid[] ALIGN1; 19 20 extern const uint8_t applet_install_loc[] ALIGN1; 20 21 21 #if ENABLE_FEATURE_SUID || ENABLE_FEATURE_PREFER_APPLETS22 # define APPLET_NAME(i) (applet_names + (applet_nameofs[i] & 0x0fff))23 #else24 # define APPLET_NAME(i) (applet_names + applet_nameofs[i])25 #endif26 27 22 #if ENABLE_FEATURE_PREFER_APPLETS 28 # define APPLET_IS_NOFORK(i) (applet_ nameofs[i] & (1 << 12))29 # define APPLET_IS_NOEXEC(i) (applet_ nameofs[i] & (1 << 13))23 # define APPLET_IS_NOFORK(i) (applet_flags[(i)/4] & (1 << (2 * ((i)%4)))) 24 # define APPLET_IS_NOEXEC(i) (applet_flags[(i)/4] & (1 << ((2 * ((i)%4))+1))) 30 25 #else 31 26 # define APPLET_IS_NOFORK(i) 0 … … 34 29 35 30 #if ENABLE_FEATURE_SUID 36 # define APPLET_SUID(i) ((applet_ nameofs[i] >> 14) & 0x3)31 # define APPLET_SUID(i) ((applet_suid[(i)/4] >> (2 * ((i)%4)) & 3)) 37 32 #endif 38 33
Note:
See TracChangeset
for help on using the changeset viewer.