lkml.org 
[lkml]   [2004]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Problem with ioctl command TCGETS
From
Date

> > 1. Is it nice to break _IO macros?
>
> There is nothing nice about ioctls.

On the subject of ioctls: what about a replacement syscall:

/**
* Getting and setting file parameters safely (ioctl done right)
*
* @fd file descriptor
* @param name of the parameter to get/set
* @dir direction flag indicating either get, set, or set-get
* @value value to set parameter to (set) or store current value into (get)
* @size size of value
*/
int fparam(int fd, const char *param, int dir, void *value, size_t size);

I know it's been talked about in the past. Is anyone interested?

Miklos

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.063 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site