Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/include/busybox.h


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/include/busybox.h

    r3232 r3621  
    1616extern const char applet_names[] ALIGN1;
    1717extern int (*const applet_main[])(int argc, char **argv);
    18 extern const uint16_t applet_nameofs[];
     18extern const uint8_t applet_flags[] ALIGN1;
     19extern const uint8_t applet_suid[] ALIGN1;
    1920extern const uint8_t applet_install_loc[] ALIGN1;
    2021
    21 #if ENABLE_FEATURE_SUID || ENABLE_FEATURE_PREFER_APPLETS
    22 # define APPLET_NAME(i) (applet_names + (applet_nameofs[i] & 0x0fff))
    23 #else
    24 # define APPLET_NAME(i) (applet_names + applet_nameofs[i])
    25 #endif
    26 
    2722#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)))
    3025#else
    3126# define APPLET_IS_NOFORK(i) 0
     
    3429
    3530#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))
    3732#endif
    3833
Note: See TracChangeset for help on using the changeset viewer.