Date: Sat, 30 Jun 2007 16:02:58 +0000 From: "Eren Erdemli" <erenerdemli@gmail.com> To: freebsd-current@freebsd.org Subject: getcwd in kernel space Message-ID: <cd4105970706300902m5f7e0432y312335b0db5138bd@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi,
Sorry to disturb you's but I have a question and would like to know if you
can assist me. I tried posting
it to freebsd-hacker mailing list however I think something is wrong with
it.
I am new to freebsd programing and I am trying to get the current working
directory of the curthread.
I have hook on to the sys calls and redirected the mkdir
my_mkdir(struct thread *p, (void*) uap)
{
mkdir_args = .....................
........
getCWD()???????????
}
the given path in the args is relative to the current path if not supplied
fully. So who would I get the path of file.
Your help is truly appreciated as I I have been trying it for few days now.
no result apart from kernel panics.
Thanks in advance
Eren
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cd4105970706300902m5f7e0432y312335b0db5138bd>
