From owner-freebsd-questions@FreeBSD.ORG Mon Jul 16 09:09:03 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2433D16A404 for ; Mon, 16 Jul 2007 09:09:03 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by mx1.freebsd.org (Postfix) with ESMTP id 9AC0613C428 for ; Mon, 16 Jul 2007 09:09:02 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id l6G991ma077035; Mon, 16 Jul 2007 11:09:01 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id BDE37B822; Mon, 16 Jul 2007 11:09:00 +0200 (CEST) Date: Mon, 16 Jul 2007 11:09:00 +0200 From: Roland Smith To: Michael B Allen Message-ID: <20070716090900.GB72910@slackbox.xs4all.nl> Mail-Followup-To: Michael B Allen , freebsd-questions References: <78c6bd860707151653m19164d0djd119add0d3a039af@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RASg3xLB4tUQ4RcS" Content-Disposition: inline In-Reply-To: <78c6bd860707151653m19164d0djd119add0d3a039af@mail.gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions Subject: Re: Developer Questions (glibc i386 style backtraces) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 09:09:03 -0000 --RASg3xLB4tUQ4RcS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 15, 2007 at 07:53:35PM -0400, Michael B Allen wrote: > Hello Again, >=20 > Is there a good list to ask developer questions about porting code to=20 > FreeBSD? -questions, or maybe -hackers if it gets really complicated. > I have a good chunk of code to port and no doubt I will have numerous > questions about FreeBSD specific features like semaphores, posix > compliance, shared memory and so on. For shared memory, look at /usr/include/sys/shm.h. For semaphores, see /usr/include/sys/sem.h. There is a lot of documentation available on the FreeBSD website; http://www.freebsd.org/docs/books.html=20 In your case, the Developers' Handbook might come in handy. It is also available on the system btw, in /usr/share/doc/en_US.ISO8859-1 > Actually my current issue is the glibc i386 backtrace function from > execinfo.h. It's not a show stopper if I can't have it but I would > very much like to have it even if it means writing custom code to walk > the stack myself. I think that the glib library has this. It turns up a backtrace.h on my sys= tem. There is no execinfo.h file on my system. =20 > Any ideas? Googling doesn't seem to turn up anything which is to say I > guess FreeBSD doesn't have a backtrace function. A quick search of the base system doesn't turn anything up. But debuggers like gdb work, so there has to be a way to do it. > Actually does FreeBSD use glibc? Nope. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --RASg3xLB4tUQ4RcS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFGmzWsEnfvsMMhpyURAploAJ94uJTov/PC6psSHZBxqOUBowsbUACfY0lw 8a3Q7136r000+7oOkL9b/So= =xVgw -----END PGP SIGNATURE----- --RASg3xLB4tUQ4RcS--