public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: "blookk -" <blookk@hotmail.com>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] hci.c  hacked
Date: Mon, 27 Dec 2004 11:36:54 +0000	[thread overview]
Message-ID: <BAY104-F16C20570F646F1FC09FE46C1990@phx.gbl> (raw)


Hello Marcel!

When I compiled the BlueZ for ARM7TDMI with uclibc 0.9.19  I detect a 
problem in "hci.c" . In "poll" call because seems that my arquitecture 
doesn't support this call. I modified the "hci.c" and use "select" instead 
of "poll". The modification is this:

		if (to) {
			struct pollfd p;
			int n;

			//p.fd = dd; p.events = POLLIN;

			n = select( dd + 1, &temp_rfds, NULL, NULL, &tv );
			printf("Descriptor in select: %d\n",n);
			printf("timeover: %d\n",to);
			switch( n )
			{
			    case -1: // Error
			        goto failed;
				break;

			    case 0:  // Timeout
			        continue;
				break;

			    default: // Data...
			        printf( "The file descriptor with data\n" );
				if( FD_ISSET( dd, &temp_rfds ) )
				{
				     printf( "The file descriptor was signaled\n" );
				}
				break;
			}

			//while ((n = poll(&p, 1, to)) < 0) {
			//printf("(4.3.4)\n");
			//	if (errno == EAGAIN || errno == EINTR)
			//		continue;
			//	goto failed;
			//}

			//if (!n) {
			//	errno = ETIMEDOUT;
			//	goto failed;
			//}

			to -= 10;
			if (to < 0) to = 0;

		}

with this changes the program don't work , but I don't know why.
Do you know where is the problem?

Regards.




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

             reply	other threads:[~2004-12-27 11:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-27 11:36 blookk - [this message]
2004-12-27 11:52 ` [Bluez-users] hci.c hacked Erwin Authried

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY104-F16C20570F646F1FC09FE46C1990@phx.gbl \
    --to=blookk@hotmail.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox