[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] direct console set_status
From: |
Kevin Kreamer |
Subject: |
[patch] direct console set_status |
Date: |
Thu, 18 Oct 2001 11:49:25 -0500 |
User-agent: |
Mutt/1.2.5i |
Here is a patch enable setting DC_RAW via a device_set_status on the
console device. While doing this code, I found that devio.c in
hurd/daemons calls this function with the TTY_* flavors, hence their
inclusion here.
No changelog yet, as I am not sure how done I am. I'll continue
working on that user-space console Marcus was talking about.
Invocation:
mach_port_t master;
kern_return_t err;
mach_port_t console;
err = get_privileged_ports(NULL, &master);
if (err)
return err;
err = device_open(master, D_READ, "console", &console);
if (err)
return err;
mach_port_deallocate(mach_task_self(), master);
err = device_set_status(console, DC_RAW, 0, 0);
if (err)
return err;
/* console stuff here */
err = device_set_status(console, DC_NO_ONLCR, 0, 0);
if (err)
return err;
Thanks,
Kevin
--
Kevin Kreamer
FsckIt on openprojects.net
asyncio_set_status.patch
Description: Text document
- [patch] direct console set_status,
Kevin Kreamer <=