FreeBSD has thread-safe basename_r()and dirname_r(). Is it okay to import them? http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/basename.c?rev=1.9 http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/dirname.c?rev=1.8 -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz manu%netbsd.org@localhost