Re: getCWD in kernel space

看板FB_hackers作者時間18年前 (2007/07/01 02:16), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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 _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #16Xftn00 (FB_hackers)