Linux 2.6.17 tty devices. Lose support for original pty numbering.

This commit is contained in:
albert
2006-07-09 04:41:30 +00:00
parent 9278134e49
commit 86de01f3d0
3 changed files with 41 additions and 16 deletions

View File

@@ -338,7 +338,7 @@ quiet_goodbye:
#define VCNT 16
static int sysmap_mmap(const char *restrict const filename, void (*message)(const char *restrict, ...)) {
static int sysmap_mmap(const char *restrict const filename, message_fn message) {
struct stat sbuf;
char *endp;
int fd;
@@ -470,6 +470,7 @@ static void read_and_parse(void){
/*********************************/
static void default_message(const char *restrict format, ...) __attribute__((format(printf,1,2)));
static void default_message(const char *restrict format, ...) {
va_list arg;
@@ -482,7 +483,7 @@ static void default_message(const char *restrict format, ...) {
static int use_wchan_file;
int open_psdb_message(const char *restrict override, void (*message)(const char *, ...)) {
int open_psdb_message(const char *restrict override, message_fn message) {
static const char *sysmap_paths[] = {
"/boot/System.map-%s",
"/boot/System.map",