Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #7853

Re: How to detect insertion of USB drive on Solaris 10 box?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.unix.shell, comp.unix.questions, comp.lang.c++
Subject Re: How to detect insertion of USB drive on Solaris 10 box?
Date Sat, 16 Jul 2011 11:32:39 +1200
Lines 22
Message-ID <98c12lFv3qU4@mid.individual.net> (permalink)
References <fafb3092-7e21-4b98-814d-660ae2061b48@b2g2000vbo.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net i00oEJdkC4rFf0XUyfVYegVx6M0RbaCb0C0NUimFV50HuVvs6b
Cancel-Lock sha1:d0ZBpRthqcO+RRjKfTO81kJSicE=
User-Agent Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4
In-Reply-To <fafb3092-7e21-4b98-814d-660ae2061b48@b2g2000vbo.googlegroups.com>
Xref x330-a1.tempe.blueboxinc.net comp.unix.shell:1299 comp.unix.questions:41 comp.lang.c++:7853

Cross-posted to 3 groups.

Show key headers only | View raw


On 07/16/11 10:42 AM, Saqib Ali wrote:
> Hi
>
> I'm working on a SunOS  5.10 box.
> I'm inserting a USB flash-drive into the USB port.
>
> I would like to know how to detect the insertion of this device and
> how to mount it so that I can read/write to it.
>
> Could someone please advise?

Try com.unix.solaris.

> As a secondary task, I would like to do the above purely in C++
> without making any system calls. Any advice on that subject would also
> be appreciated.

You can't, unless you keep trying to open the device filesystem in a 
polling loop.

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to detect insertion of USB drive on Solaris 10 box? Saqib Ali <saqib.ali.75@gmail.com> - 2011-07-15 15:42 -0700
  Re: How to detect insertion of USB drive on Solaris 10 box? Ian Collins <ian-news@hotmail.com> - 2011-07-16 11:32 +1200

csiph-web