🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.internals
3 messages
3 total messages Started by Mark Harrison Sun, 08 Nov 1992 00:07
mmap a raw device?
#1452
Author: Mark Harrison
Date: Sun, 08 Nov 1992 00:07
12 lines
970 bytes
Should a process be able to mmap() a raw (disk) device?  The
example in the manual shows that an error will occur on mmap()ing
to a terminal, for example, but I can't find a definitive
reference on whether it will or won't work on a raw device.

A colleague's preliminary tests indicate that it won't work.

SunOS 4.something, if it makes a difference.
-- 
------------------------------------------------------------------------
"Hi, this is Captain Kirk.  I can't | Mark Harrison     harrison@jho.com
answer my communicator right now..."| Richardson, TX    (214)669-2853
Re: mmap a raw device?
#1456
Author: Guy Harris
Date: Mon, 09 Nov 1992 00:27
3 lines
501 bytes
>Should a process be able to mmap() a raw (disk) device?

Under SunOS 4.x?  No, a process will not be able to do that.
Re: mmap a raw device?
#1460
Author: Thomas Gabrysch
Date: Wed, 11 Nov 1992 20:50
9 lines
783 bytes
harrison@jho.com (Mark Harrison) writes:
: Should a process be able to mmap() a raw (disk) device?  The
: example in the manual shows that an error will occur on mmap()ing
: to a terminal, for example, but I can't find a definitive
: reference on whether it will or won't work on a raw device.

According to the source code you can only mmap regular files.

- Thomas Gabrysch
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads