Re: Usage of LD_PRELOAD

2008-03-22 Thread Christopher Faylor
On Wed, Mar 05, 2008 at 08:47:13AM +, Matthieu CASTET wrote: >Hi, > >I am trying to use LD_PRELOAD on cygwin, but I don't manage to make work. >I suppose I do something wrong when creating my library. > >What I do is : > >$ cat << EOF > /tmp/toto1.c >#include >int chmod(const char *path, mode

Usage of LD_PRELOAD

2008-03-05 Thread Matthieu CASTET
Hi, I am trying to use LD_PRELOAD on cygwin, but I don't manage to make work. I suppose I do something wrong when creating my library. What I do is : $ cat << EOF > /tmp/toto1.c #include int chmod(const char *path, mode_t mode) { printf("123\n"); return -1; } EOF $ module=toto1 gcc -share