Re: -lpthread vs -pthread: does -D_REENTRANT matter?

2012-10-14 Thread Raphael Kubo da Costa
Jilles Tjoelker writes: > On Mon, Oct 08, 2012 at 12:17:08PM -0400, Eitan Adler wrote: >> The only difference between -lpthread and -pthread that I could see is >> that the latter also sets -D_REENTRANT. >> However, I can't find any uses of _REENTRANT anywhere outside of a few >> utilities that s

Re: man bzip2 - suggest we add to See Also

2011-09-10 Thread Raphael Kubo da Costa
Resending the answer to hackers@ with my subscribed mail address. "Julian H. Stacey" writes: > I suggest we should add a See Also section to man bzip2, > > FreeBSD-8.2-RELEASE & current man bzip2 > .../-current/src/contrib/bzip2/bzip2.1 > > adding URLs > http://www.7-zi

Re: Problem with running simple pthreads program under gdb-7.2 (Invalid selected thread)

2011-05-26 Thread Raphael Kubo da Costa
Andriy Gapon writes: > on 26/05/2011 16:33 John Baldwin said the following: >> On Thursday, May 26, 2011 3:37:13 am Andriy Gapon wrote: >>> on 26/05/2011 03:35 Raphael Kubo da Costa said the following: >>>> If I compile the port myself, I can't run any bina

Re: Problem with running simple pthreads program under gdb-7.2 (Invalid selected thread)

2011-05-25 Thread Raphael Kubo da Costa
Dmitry Krivenok writes: > As you can see program exited normally w/o any errors. > Then I run the same program under gdb-7.2 > > $ /usr/local/bin/gdb72 --args t > GNU gdb (GDB) 7.2 [GDB v7.2 for FreeBSD] > Copyright (C) 2010 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or la

Re: Missing stdint.h includes?

2011-02-05 Thread Raphael Kubo da Costa
Garrett Cooper writes: > On Sat, Feb 5, 2011 at 3:42 PM, Raphael Kubo da Costa > wrote: >> As for devinfo.h, shouldn't it just include stdint.h, sys/types.h or >> sys/param.h? > > sys/types.h should suffice, even though POSIX says it should be in > inttypes

Re: Missing stdint.h includes?

2011-02-05 Thread Raphael Kubo da Costa
Garrett Cooper writes: > On Sat, Feb 5, 2011 at 11:27 AM, Raphael Kubo da Costa > wrote: >> Hey there, >> >> I was working on some code that used devinfo(3). According to devinfo's >> man page, #including devinfo.h should be enough to use it. However

Missing stdint.h includes?

2011-02-05 Thread Raphael Kubo da Costa
Hey there, I was working on some code that used devinfo(3). According to devinfo's man page, #including devinfo.h should be enough to use it. However, a program which only #includes devinfo.h fails due to stdint.h (or sys/types.h) not being included, thus giving me some errors about uint32_t and o