From owner-freebsd-questions Sat Jul 25 12:35:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA19862 for freebsd-questions-outgoing; Sat, 25 Jul 1998 12:35:43 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from bogslab.ucdavis.edu (greg@bogslab.ucdavis.edu [128.120.162.26]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA19856 for ; Sat, 25 Jul 1998 12:35:41 -0700 (PDT) (envelope-from greg@bogslab.ucdavis.edu) Received: (from greg@localhost) by bogslab.ucdavis.edu (8.7.4/8.7.3) id MAA22274 for questions@freebsd.org; Sat, 25 Jul 1998 12:35:12 -0700 (PDT) From: Greg Shenaut Message-Id: <199807251935.MAA22274@bogslab.ucdavis.edu> Subject: ad-hoc chflags flags To: questions@FreeBSD.ORG Date: Sat, 25 Jul 1998 12:35:11 -0700 (PDT) Reply-To: gkshenaut@ucdavis.edu X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I want to mark certain files with a one-bit mark, but without disturbing the contents of the files, their directory entries, or requiring an external index of the files. It seems to me that the UF_XXX flags would be ideal for this purpose, but I am hesitant to coerce one of the existing flags. I notice from sys/stat.h that 11 of the bits in the user part of the flag word are officially unused--is there some conventional way to grab one of them for this purpose? For example, by consulting a list of purposes for which others have done this (maybe someone else used one for a purpose similar to mine). -Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message