Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/init/bootchartd.c
- 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/init/bootchartd.c
r3232 r3621 48 48 49 49 #include "libbb.h" 50 #include "common_bufsiz.h" 50 51 /* After libbb.h, since it needs sys/types.h on some systems */ 51 52 #include <sys/utsname.h> … … 61 62 #endif 62 63 64 #if !ENABLE_TAR && !ENABLE_WERROR 65 # warning Note: bootchartd requires tar command, but you did not select it. 66 #elif !ENABLE_FEATURE_SEAMLESS_GZ && !ENABLE_WERROR 67 # warning Note: bootchartd requires tar -z support, but you did not select it. 68 #endif 69 63 70 #define BC_VERSION_STR "0.8" 64 71 … … 110 117 char jiffy_line[COMMON_BUFSIZE]; 111 118 } FIX_ALIASING; 112 #define G (*(struct globals*) &bb_common_bufsiz1)113 #define INIT_G() do { } while (0)119 #define G (*(struct globals*)bb_common_bufsiz1) 120 #define INIT_G() do { setup_common_bufsiz(); } while (0) 114 121 115 122 static void dump_file(FILE *fp, const char *filename) … … 188 195 * Try a few locations which are likely ti exist. 189 196 */ 190 static const char dirs[] = "/mnt\0""/tmp\0""/boot\0""/proc\0";197 static const char dirs[] ALIGN1 = "/mnt\0""/tmp\0""/boot\0""/proc\0"; 191 198 const char *try_dir = dirs; 192 199 while (mount("none", try_dir, "tmpfs", MS_SILENT, "size=16m") != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.