Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #7853
| 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 | 2011-07-16 11:32 +1200 |
| Message-ID | <98c12lFv3qU4@mid.individual.net> (permalink) |
| References | <fafb3092-7e21-4b98-814d-660ae2061b48@b2g2000vbo.googlegroups.com> |
Cross-posted to 3 groups.
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
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