2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
10 #include "kern_util.h"
18 static void grantpt_cb(void *arg
)
20 struct grantpt_info
*info
= arg
;
22 info
->res
= grantpt(info
->fd
);
28 struct grantpt_info info
;
31 fd
= os_open_file("/dev/ptmx", of_rdwr(OPENFLAGS()), 0);
33 printk("get_pty : Couldn't open /dev/ptmx - err = %d\n", -fd
);
38 initial_thread_cb(grantpt_cb
, &info
);
41 printk("get_pty : Couldn't grant pty - errno = %d\n",
46 printk("get_pty : Couldn't unlock pty - errno = %d\n", errno
);
53 * Overrides for Emacs so that we follow Linus's tabbing style.
54 * Emacs will notice this stuff at the end of the file and automatically
55 * adjust the settings for this buffer only. This must remain at the end
57 * ---------------------------------------------------------------------------
59 * c-file-style: "linux"