From: "A.Appleyard" Organization: Materials Science Centre To: DJGPP AT DELORIE DOT COM Date: Thu, 5 Dec 1996 11:41:29 GMT Subject: v2 funnies Message-ID: <1119426E71@fs2.mt.umist.ac.uk> (1) In v2, if I call open("filename",mode) with two args to create a new file and write to it, even if I use mode O_RDWR, the file is created with its DOS readonly attribute set so it can't be altered or deleted afterwards (unless I state the permission required, as open("filename",mode,S_IWUSR)). This is unexpected and annoying, and did not happen in v1. Why is this? (2) How can I look through a big Gnu C++ program for unused functions and global variables? I was once advised to use NM, which I just did; but I could not see in its output anything that told me whether each symbol is ever referred to or not.