Search Results

Search: Posts Made By: revolta25
Forum: Programming 05-08-2015
4,882
Posted By revolta25
Thanks form the reply. No, it's just an...
Thanks form the reply.
No, it's just an example. It's a big system so it's hard to present problem detailed.

For some reason, when object from struct is passed by reference to function and we...
Forum: Programming 05-08-2015
4,882
Posted By revolta25
Solaris - BUS error with optimize mode
Hi,

I'm facing BUS (invalid address alignment) issue.

Application works correctly with binaries compiled without optimization.
When "-O3" (or -O2, O1) is in use, application abort with - BUS...
Forum: Programming 01-19-2015
3,686
Posted By revolta25
"poll()" working as expected and for both attempt...
"poll()" working as expected and for both attempt return "1" (one socket added to poll() so ok).
Forum: Programming 01-19-2015
3,686
Posted By revolta25
First, thanks for your interest #include...
First, thanks for your interest

#include <assert.h>
#include <sys/fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/devpoll.h>
#include <unistd.h>
#include...
Forum: Programming 01-19-2015
3,686
Posted By revolta25
It is just a pseudo-code - to show what is the...
It is just a pseudo-code - to show what is the main problem.

connect -> poll -> getsockopt (return errno_s = 146 - correct) -> connect -> poll -> getsockopt (return errno_s = 0)

When...
Forum: Programming 01-18-2015
3,686
Posted By revolta25
Strange "getsockopt" Solaris behavior
Please take a look on following code:

s = socket(PF_INET, SOCK_STREAM, 0); //socket
fcntl(s, F_SETFL, O_NONBLOCK); //set socket to nonblock

retry_conn:
ret =...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 05:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy