Deleted Added
full compact
36c36
< __FBSDID("$FreeBSD: head/sys/dev/streams/streams.c 139749 2005-01-06 01:43:34Z imp $");
---
> __FBSDID("$FreeBSD: head/sys/dev/streams/streams.c 141466 2005-02-07 18:22:20Z jhb $");
49a50
> #include <sys/syscallsubr.h>
292d292
< struct proc *p = td->td_proc;
309,314c309,311
< caddr_t sg = stackgap_init();
< char *path = stackgap_alloc(&sg, sizeof(ptyname));
< struct open_args oa;
< int l = 0, n = 0;
< register_t fd = -1;
< int error;
---
> struct proc *p;
> register_t fd;
> int error, l, n;
316,319c313,316
< oa.path = path;
< oa.flags = O_RDWR;
< oa.mode = 0;
<
---
> fd = -1;
> n = 0;
> l = 0;
> p = td->td_proc;
324,327c321,322
< if ((error = copyout(ptyname, path, sizeof(ptyname))) != 0)
< return error;
<
< switch (error = open(td, &oa)) {
---
> error = kern_open(td, ptyname, UIO_SYSSPACE, O_RDWR, 0);
> switch (error) {