From owner-freebsd-hackers Fri Jun 26 14:17:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA04467 for freebsd-hackers-outgoing; Fri, 26 Jun 1998 14:17:43 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA04347 for ; Fri, 26 Jun 1998 14:17:02 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id OAA22969; Fri, 26 Jun 1998 14:16:19 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma022965; Fri Jun 26 14:16:16 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id OAA01225; Fri, 26 Jun 1998 14:16:15 -0700 (PDT) From: Archie Cobbs Message-Id: <199806262116.OAA01225@bubba.whistle.com> Subject: Re: raw devices (min transfer size, detection) In-Reply-To: from Jason Evans at "Jun 26, 98 00:47:26 am" To: jasone@canonware.com (Jason Evans) Date: Fri, 26 Jun 1998 14:16:15 -0700 (PDT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jason Evans writes: > 2) How can I programmatically (in C) know that a file is a device, and > more specifically a raw device? I've browsed a large number of > manpages, but I still haven't found the answer. I'll eventually find > it, but perhaps someone can point me in the right direction? =) man stat(2) for starters.. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message