[android-porting] Error on socket bind

2012-05-15 Thread NimeshChanchani
I'm getting an error on socket bind in android . i'm not doing this through NDK , but cross compiling for android. I'm using AF_UNIX. code snippet below. Any Idea? sockfd = socket(AF_UNIX, SOCK_STREAM, 0); if (sockfd < 0) { printf("Error opening socket"); return -1;

Re: [android-porting] Error on socket bind

2012-05-15 Thread Suman Saraf
Does a directory /data/local exist on the filesystem and do your program have permissions to write to it? On 15-May-2012, at 4:01 PM, NimeshChanchani wrote: > I'm getting an error on socket bind in android . i'm not doing this > through NDK , but cross compiling for android. I'm using AF_UNIX. c

Re: [android-porting] Error on socket bind

2012-05-15 Thread nimeshchanchani
Yes , the directory exists and I have permissions to write to it --Original Message-- From: Suman Saraf To: nimeshchanch...@gmail.com Cc: android-porting Subject: Re: [android-porting] Error on socket bind Sent: May 15, 2012 4:22 PM Does a directory /data/local exist on the filesystem and

Re: [android-porting] Error on socket bind

2012-05-15 Thread Suman Saraf
Can you print the errno on bind failure? If you have a small program, just run it via strace and see the return value for bind. I ran your same program with a few includes etc. and it worked. I built it statically on Linux (without NDK) and pushed it to an Android instance and it worked without

[android-porting] robust futexes in bionic

2012-05-15 Thread Suman Saraf
Hello google folks, Is there any plan to bring robust futexes support to bionic so that held locks are cleared when processes die? I am seeing surfaceflinger hanging on some such locks when some boot intent receivers die (not so gracefully). I just wanted to know if anything like this is plann

Re: [android-porting] Error on socket bind

2012-05-15 Thread nimeshchanchani
Sorry ... My fault!!! It works... I was changing a different copy and building a different one .. The socket was initially in /etc ... I changed it to /data/local but in a different copy :p Sent from BlackBerry® on Airtel -Original Message- From: Suman Saraf Date: Tue, 15 May 2012 16

Re: [android-porting] Re: no_console_suspend

2012-05-15 Thread hedwin
Venkat, Can you tell what the problem is you try to solve or face the no_console_suspend option only makes sense for the printk used in the kernel drivers resume/suspend calls. On Sat, May 5, 2012 at 3:39 AM, venkat k raju wrote: > Hi sebastian.draus, > > i have tried > > setenv bootargs 'c