[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Re: Somethings about libraries..



Arun Sharma forced the electrons to say:
> But I suspect that there are mechanisms which prevent you from writing
> to a file, while it is being executed. If you have a.out open in gdb,
> gcc can't write to it.

The write fails with errno = ETXTBSY (Text File Busy). I have faced this
many times while debugging. :-)

Binand

-- 
#define l/* Binand Raj S. <binand@xxxxxxxxxxxxxxxxxxxxx> */".%\"-\"("
#define s/* Ambition: To write sendmail.cf from scratch  */abs(abs(i)-5)
main(i,j){for(i=-5;i<6;i++){for(j=0;j<35-s;j++,putchar(32));putchar(s[l]^
108);for(j=0;j<2*s-1;j++,putchar(32));s&&putchar(s[l]^108);putchar(10);}}