#include <unistd.h>
#include <vis.h>
#include <sys/syslog.h>
#include <sys/types.h>
struct nlist nl[] = {
#define X_MSGBUF 0
while ((ch = getopt(argc, argv, "aM:N:")) != -1)
switch(ch) {
case 'a':
if (getuid() != (uid_t)0) {
fprintf(stderr,"dmesg: must be root to get all data in the message buffer\n");
exit(1);
}
all++;
break;
case 'M':