# To compile vs an alternative libc, you may need to use/adjust
# the following lines to meet your needs. This is how I did it...
-#CFLAGS+=-nostdinc -I/home/andersen/CVS/uC-libc/include -I/usr/include/linux
+#GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")
+#CFLAGS+=-nostdinc -fno-builtin -I/home/andersen/CVS/uC-libc/include -I$(GCCINCDIR)
#LDFLAGS+=-nostdlib
#LIBRARIES = /home/andersen/CVS/uC-libc/libc.a
*/
#include "internal.h"
+#include <getopt.h>
static const char gunzip_usage[] =
"gunzip [OPTION]... FILE\n"
#include <stdio.h>
#include <string.h>
-#include <linux/fs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "internal.h"
+/* From linux/fs.h */
+#define BLKFLSBUF _IO(0x12,97) /* flush buffer cache */
+
static const char freeramdisk_usage[] =
"freeramdisk DEVICE\n"
* enforced (but it's not much fun on a character device :-).
*/
+#include <linux/fs.h>
#include "internal.h"
#include <stdio.h>
#include <errno.h>
#include <mntent.h>
#include <sys/stat.h>
#include <sys/param.h>
-
-#include <linux/fs.h>
#include <linux/minix_fs.h>
#ifdef MINIX2_SUPER_MAGIC2
*/
#include "internal.h"
+#include <getopt.h>
static const char gunzip_usage[] =
"gunzip [OPTION]... FILE\n"
#include <linux/version.h>
#include <linux/reboot.h>
#include <linux/unistd.h>
+#include <linux/vt.h> /* for vt_stat */
#include <sys/fcntl.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <sys/types.h>
-#include <sys/vt.h> /* for vt_stat */
#include <sys/wait.h>
#ifdef BB_SYSLOGD
# include <sys/syslog.h>
#include <linux/version.h>
#include <linux/reboot.h>
#include <linux/unistd.h>
+#include <linux/vt.h> /* for vt_stat */
#include <sys/fcntl.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <sys/types.h>
-#include <sys/vt.h> /* for vt_stat */
#include <sys/wait.h>
#ifdef BB_SYSLOGD
# include <sys/syslog.h>
#include <stdio.h>
#include <string.h>
-#include <linux/fs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "internal.h"
+/* From linux/fs.h */
+#define BLKFLSBUF _IO(0x12,97) /* flush buffer cache */
+
static const char freeramdisk_usage[] =
"freeramdisk DEVICE\n"
* enforced (but it's not much fun on a character device :-).
*/
+#include <linux/fs.h>
#include "internal.h"
#include <stdio.h>
#include <errno.h>
#include <mntent.h>
#include <sys/stat.h>
#include <sys/param.h>
-
-#include <linux/fs.h>
#include <linux/minix_fs.h>
#ifdef MINIX2_SUPER_MAGIC2