07-18-2005
overriding function calls without recompiling
i want to replace the *alloc and free function calls in an existing project with my own functions, to be able to log the adresses etc in a text file. (memoryleak debugging)
I think LD_PRELOAD is what i am looking for.
That way i could create a Library with my own malloc functions and link them into the project with the LD_PRELOAD environment.
--> But <--
LD_PRELOAD is not aviable on AIX 5.2.
Is there another way (workaround) to override certain functions without having recompiling to the whole source?
I could live with re-linking the executable but ofcourse it would be the most comfortable way, not having to touch the exe.
i am thankful for any kind of tipps or hints
Lazzar
10 More Discussions You Might Find Interesting
1. IP Networking
Is there any facility to filter/identify the data calls and voice calls coming throug modem?
OR
Can we get the data or voice calls information through a script(preferably C Kermit)? (0 Replies)
Discussion started by: pcsaji
0 Replies
2. Programming
Hi,
I wonder how can we override the dynamic library loaded by ld on start up.(dynamic linked application). so that linker uses the new library to find symbols.
Is it possible to do.
Cheers. (4 Replies)
Discussion started by: Raom
4 Replies
3. Shell Programming and Scripting
Hello,
I'm using Sun solaris .
I'm trying to override the environmental variable in my script, however when I execute the script, the PATH whatever being set in .profile is taking precedence.
I have done the sanity checks like order of my entry in path, permissions for the user etc.,
To... (1 Reply)
Discussion started by: brainyoung
1 Replies
4. Programming
Apart from writing debug and statements in constructors is there any way by which we can trace the function call stack at any depth?
The issue that we always face is that when program crashes (Web Server running on Linux) we have no idea where it crashes and we have to do the hard way of... (1 Reply)
Discussion started by: uunniixx
1 Replies
5. Programming
Hi,
Is there any function calls available ( for using in a C program ) to get the Ethernet Link status. ?
I am looking for the status available from
ndd /dev/hme link_status
And how about plumbing and configuring an interface using C program ?
BTW, Is all this documented... (3 Replies)
Discussion started by: shibz
3 Replies
6. Programming
class B
{
public:
void fns(void){//base def;}
};
class D:public B
{
public:
void fns(void) {//new def;}
};
I was thinking the above is overriding but somewhere else i found the above is just hiding.Only virtual functions can be considered as overriding?
This is the exact statement ... (1 Reply)
Discussion started by: johnbach
1 Replies
7. Shell Programming and Scripting
Hello everyone,
here's my problem: I want to create two shell scripts. one of them should includes some functions, the other one just the function calls. Is this possible? Can i call a function which is placed in a scriptfile eg functions.sh out of another script eg call.sh? :confused: And if... (2 Replies)
Discussion started by: Sebi0815
2 Replies
8. UNIX for Advanced & Expert Users
I wonder if someone knows what is the rationale behind linking function calls of the POSIX threads library at link-time vs. run-time.
For example, if I create the following program:
#include <pthread.h>
void noop() {
return;
}
int main() {
pthread_self();
pthread_atfork(noop,... (1 Reply)
Discussion started by: jsimsa
1 Replies
9. UNIX for Dummies Questions & Answers
Hi everyone,
I'm new-ish to Unix outside of being a basic user in the past. So some background on my experience level when asking this question.
My current laptop, running OS X 10.5, had Apache and PHP installed when I bought it. However I need to recompile these now to add features which... (0 Replies)
Discussion started by: werdenaz
0 Replies
10. AIX
Hello,
There is a need to link a new dynamic library to a big number of exes.
Unfortunately, I cannot recompile/link all these exes against the new library.
Is there any way to link an existing executable with the new library?
(everything has been compiled using the xlc tool)
Thanks (1 Reply)
Discussion started by: geodimo
1 Replies
LEARN ABOUT SUSE
isdnbill
isdnbill(1) Linux System Commands isdnbill(1)
NAME
isdnbill - report isdn costs
DESCRIPTION
isdnbill is a simple and imperfect utility to show the bill for ISDN calls. Note that it is only for indicative purposes! It works best in
Germany, and even then there are no guarantees. Consider its use for educational purposes only...
For better results, use isdnrep.
OPTIONS
-V show version
-a show all connections
-e show incomplete calls
-f recalculate costs _always_
-i show incoming calls
-m prices without VAT
-n do _not_ replace numbers with aliases
-o show outgoing calls
-t show only current connections
-vn verbose level n
-Nnnn show only calls with the specified number
-I show only calls on the internal S0 bus
-E show only calls on the external S0 bus
FILES
/var/log/isdn.log or /var/lib/isdn/calls
isdnlog log file with information about all calls.
/etc/isdn/isdn.conf
general configuration
/etc/isdn/callerid.conf
aliases for telephone numbers
SEE ALSO
isdnlog(5) isdnlog(8) isdnrep(1)
AUTHOR
This manual page was written by Paul Slootman <paul@debian.org>, for Debian GNU/Linux.
ISDN 4 Linux 3.13 2003-10-14 isdnbill(1)