| * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) |
| static void grantpt_cb(void *arg) |
| struct grantpt_info *info = arg; |
| info->res = grantpt(info->fd); |
| struct grantpt_info info; |
| fd = os_open_file("/dev/ptmx", of_rdwr(OPENFLAGS()), 0); |
| printk("get_pty : Couldn't open /dev/ptmx - err = %d\n", -fd); |
| initial_thread_cb(grantpt_cb, &info); |
| printk("get_pty : Couldn't grant pty - errno = %d\n", |
| printk("get_pty : Couldn't unlock pty - errno = %d\n", errno); |
| * Overrides for Emacs so that we follow Linus's tabbing style. |
| * Emacs will notice this stuff at the end of the file and automatically |
| * adjust the settings for this buffer only. This must remain at the end |
| * --------------------------------------------------------------------------- |