Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / February 2008



Tip: Looking for answers? Try searching our database.

open function hang on MacOS 10.5.1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
p2 - 26 Feb 2008 11:06 GMT
Hi

I used open function to open bluetooth port on MacOS 10.5.1.

My code is as below

int fd = -1;
fd = open(Bluetooth port path,O_RDWR + O_NOCTTY + O_NONBLOCK +
O_EXLOCK);
if(fd == -1)
printf("\nPort open failed..");
else
{
printf("\nPort successfully opened..);
close(fd);
}

but it hangs in open function, it is not returning....i also tried
with various flags..
Note :: Same thing works on MacOS 10.4(it's return success or failed)

What may be the problem ?

p2
p2 - 26 Feb 2008 12:56 GMT
> Hi
>
[quoted text clipped - 21 lines]
>
> p2

i do operation as in sequence open & close then again open immediately
p2 - 26 Feb 2008 12:59 GMT
> Hi
>
[quoted text clipped - 21 lines]
>
> p2

I do operation in sequence open then close then again open
immediately...
first time it open successfully .. second time it hand in open. (open
function block)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.