From owner-freebsd-questions Tue Apr 6 22:47:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 8C439150B6 for ; Tue, 6 Apr 1999 22:47:42 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id PAA12520; Wed, 7 Apr 1999 15:15:43 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id PAA13627; Wed, 7 Apr 1999 15:15:38 +0930 (CST) Message-ID: <19990407151537.I2142@lemis.com> Date: Wed, 7 Apr 1999 15:15:37 +0930 From: Greg Lehey To: Keith Anderson , questions@FreeBSD.ORG Subject: Re: C and permissions ? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Keith Anderson on Wed, Apr 07, 1999 at 03:36:54PM +1000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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