Search Results

Search: Posts Made By: Roman Voznyuk
Forum: Programming 09-24-2008
1,702
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
9,132
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
2,836
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,091
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
9,132
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
13,656
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
2,926
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
33,973
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,564
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
13,656
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.
10,912
Posted By Roman Voznyuk
Or to see errors only make >/dev/null
Or to see errors only

make >/dev/null
2,493
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,077
Posted By Roman Voznyuk
echo $0
echo $0
Forum: Linux 07-01-2008
12,412
Posted By Roman Voznyuk
chsh might work on some systems
chsh might work on some systems
Forum: Programming 07-01-2008
4,022
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
13,656
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,066
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?
22,893
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,529
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 07:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy