Date: Wed, 7 Apr 1999 15:15:37 +0930 From: Greg Lehey <grog@lemis.com> To: Keith Anderson <keith@apcs.com.au>, questions@FreeBSD.ORG Subject: Re: C and permissions ? Message-ID: <19990407151537.I2142@lemis.com> In-Reply-To: <Pine.BSF.3.96.990407153230.18821A-100000@localhost>; from Keith Anderson on Wed, Apr 07, 1999 at 03:36:54PM %2B1000 References: <Pine.BSF.3.96.990407153230.18821A-100000@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, 7 April 1999 at 15:36:54 +1000, Keith Anderson wrote: > > I wrote some C programs that make files but need to set the permissions > inside the program, so the created files have the correct rw permission. > > Is there an include to handle file permissions. I think you mean a system call. Yes, there's a system call "chmod". Try "man 2 chmod". Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990407151537.I2142>