Date: Sat, 30 Jun 2007 20:13:13 +0200 From: Roman Divacky <rdivacky@freebsd.org> To: Eren Erdemli <erenerdemli@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: getCWD in kernel space Message-ID: <20070630181313.GA63208@freebsd.org> In-Reply-To: <cd4105970706300824q355eaddei3229ccc0e9916652@mail.gmail.com> References: <cd4105970706290500y247b1308g561627cd3821b97b@mail.gmail.com> <20070629171137.GG1221@funkthat.com> <cd4105970706300824q355eaddei3229ccc0e9916652@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 30, 2007 at 03:24:17PM +0000, Eren Erdemli wrote: > Hello hackers, > > Sorry to disturb you's but I have a question and would like to know if you > can assist me. > > 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()??????????? > } curthread->td_proc->p_fd->fd_cdir is a vnode of cwd
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070630181313.GA63208>