Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2010 11:57:08 +0400
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        freebsd-hackers@freebsd.org
Subject:   How to get stack bounds of current process?
Message-ID:  <1127023465.20100510115708@serebryakov.spb.ru>

next in thread | raw e-mail | index | archive | help
Hello, Freebsd-hackers.

  I'm  proting  some  application from Linux, which discover its stack
 bounds   by   reading  and  pasing  "/proc/self/maps".  FreeBSD  have
 "/prov/curproc/map", but I can not find how to determine which record
 is  for  stack  (I've  looked  into implementation of proc_fs, but it
 doesn't contain any specail processing for process stack).

  How could I determine stack bounds of current process on FreeBSD
7/8/9?

--=20
// Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1127023465.20100510115708>