From owner-freebsd-questions@FreeBSD.ORG Tue Feb 1 19:34:53 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12D1516A4CE for ; Tue, 1 Feb 2005 19:34:52 +0000 (GMT) Received: from mail-relay4.mirrorimage.net (mail-relay4.mirrorimage.net [209.58.140.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E80143D4C for ; Tue, 1 Feb 2005 19:34:52 +0000 (GMT) (envelope-from FreeBSD@keyslapper.net) Received: from localhost (unknown [10.10.4.59]) by mail-relay4.mirrorimage.net (Postfix) with SMTP id DFF4D69259 for ; Tue, 1 Feb 2005 14:34:51 -0500 (EST) Received: by localhost (sSMTP sendmail emulation); Tue, 1 Feb 2005 14:35:08 -0500 Date: Tue, 1 Feb 2005 14:35:08 -0500 From: Louis LeBlanc To: FreeBSD Questions Message-ID: <20050201193507.GD71726@keyslapper.net> Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="b5gNqxB1S1yM7hjW" Content-Disposition: inline X-PGP-Key: http://www.keyslapper.net/~leblanc/leblanc-at-keyslapper-net.asc User-Agent: Mutt/1.5.6i Subject: library call for directory path creation? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 19:34:53 -0000 --b5gNqxB1S1yM7hjW Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline I know there might be a better place for this question, but here goes. I'm working on a utility that has to, among many other things, create directory paths, often with a series of parent directories that may not already exist. Solaris has mkdirp(3GEN) in the libgen library, but I can't find a library call that will do this in FreeBSD. Kind of like `mkdir -p` would. I know it would be pretty trivial to roll my own, and if I can't find it I will. I'm just curious if anyone knows of an *existing* library call that would do this. TIA Lou -- Louis LeBlanc FreeBSD-at-keyslapper-DOT-net Fully Funded Hobbyist, KeySlapper Extrordinaire :) This is a list only address, and the return address is a black hole! Send off-list email to: leblanc at keyslapper d.t net Key fingerprint = C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2 Clarke's Conclusion: Never let your sense of morals interfere with doing the right thing. --b5gNqxB1S1yM7hjW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB/9nrr4Wi/oDI2aIRAv3KAJ0agsrPbhEvOK2IjaJrLF5G/SsClwCfZvln HiRR/5DmZ51neXNmoaqoifc= =9RqO -----END PGP SIGNATURE----- --b5gNqxB1S1yM7hjW--