search for: getprocinfo

Displaying 1 result from an estimated 1 matches for "getprocinfo".

2006 Sep 28
1
ramfs to tmpfs
...INE "/proc/cmdline" #define MEMINFO "/proc/meminfo" static const char *program; // argv[0] static char newroot[512]; // where newroot will be static char **initargs; // argv static struct stat root_st; // stat of / static char meminfo[1024]; // contents of /proc/meminfo, after getprocinfo static char cmdline[2048]; // contents of /proc/cmdline, after getprocinfo static const char *getprocinfo(void); /* error functions: * error(fmt, ...) print "program: msg" and exits * serror(fmt, ...) print "program: msg: error\n" and exits */ #define error(...) my_error(0,...