//
-------- Original Message --------
From: - Sun Jul 20 08:07:29 2003
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Path: news.grnet.gr!not-for-mail
From: spyros <spyr...@freemail.gr>
Newsgroups: comp.lang.c.moderated
Subject: memory protection
Date: Sun, 20 Jul 2003 08:04:39 +0300
Organization: -
Lines: 48
Message-ID: <3F1A22E7...@freemail.gr>
Reply-To: spyr...@freemail.gr
NNTP-Posting-Host: ppp-18.xan.duth.gr
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: nic.grnet.gr 1058677490 7257 193.92.212.28 (20 Jul 2003
05:04:50 GMT)
X-Complaints-To: ab...@grnet.gr
NNTP-Posting-Date: Sun, 20 Jul 2003 05:04:50 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2)
Gecko/20030208 Netscape/7.02
X-Accept-Language: el, en-us, en
Xref: news.grnet.gr comp.lang.c.moderated:25016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi all,
my problem is linux (un*x) specific.
i write a program that reads input from /dev/tty (my terminal).the
problem is that if someone has another process reading from /dev/tty or
the address 0x60 (which is the address of the keyboard) then it can read
any input i may insert. I tried using mmap to /dev/tty (since i opened
it as a file) but i don't seem to find a solution here.How can i forbid
other processes from accessing the /dev/tty and the address 0x60? Lock
files are not an option.Any ideas? If it's not much of a trouble please
give me some example code.
Thanx in advance,
spyros
- --
öïéôçôÞò óôï Ä.Ð.È
student @ DUTH
public key: dalab.ee.duth.gr/~spyros/my_pub.asc
-----BEGIN PGP SIGNATURE-----
iQEVAwUBPxoi3z2QMCA0LA8jAQItcgf/eEna0NXS86o3TdWnUnghZzbBeniqZo3l
nKEmteT+17+1TCqrIKe/i3cNRH26kEnq1IEG49JI2b188xXgwpAgS5Zrto0+gSgj
IpGX8ppL/TfMYHQAzEtMfcJW8c8IXw7x3Dbbo4vS3L/CdHKY3tKfIJE/ESR+Jjx+
pjKH822KEK4OvCMQsNvJqgx+gtd07oHs1nY53kTOm2UO0PA6V4AmATuEjcMKs44F
TLfPWfRHAzJc1Bchwcqk40ZfiYoDZbuU0DPcJWMVh5xvyidOOBjRvWIbkbrwrAi7
7aNxCatwyYWHMRLutkIvk7hvIfeUU1wbZ4nJEINRcabK3ChF6X4t9g==
=Fq54
-----END PGP SIGNATURE-----