www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/05/06:54:28

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019