Search Results

Search: Posts Made By: Roman Voznyuk
Forum: Programming 09-24-2008
1,881
Posted By Roman Voznyuk
Because "arr++" assumes that the length of your...
Because "arr++" assumes that the length of your array element is size of base, but actually it's size of deri.
Your deri looks like "bval,dval" in memory.
Forum: Programming 09-21-2008
11,990
Posted By Roman Voznyuk
It depends on operating system. In case of...
It depends on operating system. In case of Solaris your new thread might not even start before your application ends up.
The basic idea is that pointer your pass to pthread_create must eixsts at the...
Forum: Programming 09-21-2008
3,540
Posted By Roman Voznyuk
Why don't you set an environmet variable from you...
Why don't you set an environmet variable from you program?
Forum: Programming 09-21-2008
4,547
Posted By Roman Voznyuk
use uint32_t or uint64_t from inttypes.h It...
use uint32_t or uint64_t from inttypes.h

It guarantees same size on any platforms.
Forum: Programming 09-21-2008
11,990
Posted By Roman Voznyuk
Where is this code called from? I guess from...
Where is this code called from?
I guess from some function.
In this case first example works fine becuase dynamically allocated threadids exists beyond this fucntion, but it second example it dies...
Forum: Programming 07-09-2008
14,398
Posted By Roman Voznyuk
Depends on your OS. For Linux the simplests...
Depends on your OS.

For Linux the simplests way is to set LD_LIBRARY_PATH.
For example
export LD_LIBRARY_PATH=/lib32:/usr/lib32
Forum: Programming 07-09-2008
3,183
Posted By Roman Voznyuk
Performance. If you are sure that buffer are...
Performance.

If you are sure that buffer are not overlapped, you should use memcpy, becuase it's faster
Forum: Programming 07-07-2008
34,932
Posted By Roman Voznyuk
Working/not working depends on implementation of...
Working/not working depends on implementation of kernel.
Basically how particular kernel deals with memory.
Sometimes it might allow you to read whatever your want, or might not.

For example in...
Forum: Programming 07-06-2008
1,704
Posted By Roman Voznyuk
Do you check if connection is still alive (or...
Do you check if connection is still alive (or even established)?
Forum: Programming 07-04-2008
14,398
Posted By Roman Voznyuk
Once you have all required 32-bit libraries you...
Once you have all required 32-bit libraries you can run 32-bits executable on 64-bit OS.
Well-know example is skype.
11,883
Posted By Roman Voznyuk
Or to see errors only make >/dev/null
Or to see errors only

make >/dev/null
2,737
Posted By Roman Voznyuk
Indeed, it's possible. Socket is alive until...
Indeed, it's possible.
Socket is alive until it's closed.
It's not a communication channel, but kernel api.

It's application's responsibility to close sockets properly.
If one side got...
25,973
Posted By Roman Voznyuk
echo $0
echo $0
Forum: Linux 07-01-2008
15,050
Posted By Roman Voznyuk
chsh might work on some systems
chsh might work on some systems
Forum: Programming 07-01-2008
4,171
Posted By Roman Voznyuk
First of all it's not a void function, this...
First of all it's not a void function, this fuction returns pointer (void *).
There is nothing wrong if function returns null pointer, usually meaning it failed to do job as expected.
Check if you...
Forum: Programming 07-01-2008
14,398
Posted By Roman Voznyuk
Yes. -m32. But let linker know a location of...
Yes. -m32.
But let linker know a location of 32-bits libraries (you even might not have them installed yet).
Forum: Solaris 07-01-2008
3,124
Posted By Roman Voznyuk
If you have source code, than use dbx. If you...
If you have source code, than use dbx.
If you don't what you are going to do even if you indetified bug by analyzing a core file?
23,400
Posted By Roman Voznyuk
It's better practice to not put ./ into the PATH...
It's better practice to not put ./ into the PATH variable. Becuase it might be too confusing.
2,849
Posted By Roman Voznyuk
You can grab hard drive, install it into another...
You can grab hard drive, install it into another box, create speparate partition, set up "Live-CD" there and make sure that HD is bootable now.
Then put it back and isntall.
Showing results 1 to 19 of 19

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