Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261423AbUK1KTB (ORCPT ); Sun, 28 Nov 2004 05:19:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261424AbUK1KTB (ORCPT ); Sun, 28 Nov 2004 05:19:01 -0500 Received: from rev.193.226.233.139.euroweb.hu ([193.226.233.139]:4322 "EHLO dorka.pomaz.szeredi.hu") by vger.kernel.org with ESMTP id S261423AbUK1KS7 (ORCPT ); Sun, 28 Nov 2004 05:18:59 -0500 To: jengelh@linux01.gwdg.de CC: viro@parcelfarce.linux.theplanet.co.uk, oebilgen@uekae.tubitak.gov.tr, linux-kernel@vger.kernel.org In-reply-to: (message from Jan Engelhardt on Sun, 28 Nov 2004 11:08:38 +0100 (MET)) Subject: Re: Problem with ioctl command TCGETS References: <20041128002044.CE13839877@uekae.uekae.gov.tr> <20041128003901.GS26051@parcelfarce.linux.theplanet.co.uk> Message-Id: From: Miklos Szeredi Date: Sun, 28 Nov 2004 11:18:40 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 833 Lines: 23 > The idea is nice, yet the "dir" and "size" parameters in the original _IO* > macros are only there (IMO) to protect against using the wrong value for the > wrong operation on the wrong fd/file/device/socket/etc. Size and dir are there to make the memory passed to the syscall easily verifiable (like read/write/getsockopt/setsockopt/etc) > What is the point in making "param" a char*? You would need to parse it down > again. 'char *' namespace is easier to manage than 'int' namespace. > Oh yeah and call it ioctl2(), sounds more cryptical :) Is that an advantage? Thanks, 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/