Tag Info

Hot answers tagged

5

Your problem is that you try to enter C code into a shell prompt, this doesn't work for obvious reasons. You could either put it into a correct C file, compile it and get a valid binary you could execute: #include <linux/kd.h> #include <sys/ioctl.h> #include <fcntl.h> #include <unistd.h> #include <err.h> #include ...


2

That C code would not work anyway -- fdopen() requires more than one argument and returns a file stream, not a file descriptor. I can remember doing this a few years ago, I thought via Xlib, but I could not find my old code (occasionally the collection gets purged) but I figured someone must have a simple app for this on github or something. Low and ...



Only top voted, non community-wiki answers of a minimum length are eligible