library call for directory path creation?

Louis LeBlanc FreeBSD at keyslapper.net
Tue Feb 1 11:34:53 PST 2005


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050201/3d74fc71/attachment.bin


More information about the freebsd-questions mailing list