Re: How To Fix Use of assignment to $[ is deprecated

2011-10-16 Thread johan Hendriks
Op 16-10-11 05:09, Drew Tomlinson schreef: Somehow while trying to upgrade my ports, I got things out of whack. The final straw was that perl got upgraded from 5.8.9 to 5.12.4. I've read the notes in UPDATING but they are not helping my situation. Finally, I just decided that a portupgrade

probably stupid questions about select() and FS_SET in a multithreaded environment [ select() failed (Bad file descriptor) ]

2011-10-16 Thread Vikash Badal
Greetings, Can some point me in the correction direction please. I have a treaded socket application that has a problem with select() returning -1. The select() and accept() is taken care of in one thread. The worker threads deal with client requests after the new client connection is pushed

Re: How To Fix Use of assignment to $[ is deprecated

2011-10-16 Thread Drew Tomlinson
Thank you both. Your suggestion to remove apache and apr before rebuilding seems to be working. Cheers, Drew On 10/15/2011 8:09 PM, Drew Tomlinson wrote: Somehow while trying to upgrade my ports, I got things out of whack. The final straw was that perl got upgraded from 5.8.9 to 5.12.4.

Re: probably stupid questions about select() and FS_SET in a multithreaded environment [ select() failed (Bad file descriptor) ]

2011-10-16 Thread Tijl Coosemans
On Sunday 16 October 2011 18:18:39 Vikash Badal wrote: Greetings, Can some point me in the correction direction please. I have a treaded socket application that has a problem with select() returning -1. The select() and accept() is taken care of in one thread. The worker threads deal

bsdtar --gname switch

2011-10-16 Thread Romain Garbage
Hi, According to bsdtar(1) manpage, tar has a --gname switch that permits to set an arbitrary groupname in the tar archive, but: $ tar -cf test.tar --gname root test.sh tar: Option --gname is not supported Usage: List:tar -tf archive-filename Extract: tar -xf archive-filename Create:

need to check for hex in C: how/

2011-10-16 Thread Gary Kline
if n == 15 and x is the int. i can say if ((int)x == 15) Or to check if x == 'A' i can cast x to (char)x. what's the syntax to chec if x is , say, 32/ -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book:

Re: bsdtar --gname switch

2011-10-16 Thread Adam Vande More
On Sun, Oct 16, 2011 at 3:55 PM, Romain Garbage romain.garb...@gmail.comwrote: According to bsdtar(1) manpage, tar has a --gname switch that permits to set an arbitrary groupname in the tar archive, but: $ tar -cf test.tar --gname root test.sh tar: Option --gname is not supported Usage:

Re: need to check for hex in C: how/

2011-10-16 Thread Robert Bonomi
From owner-freebsd-questi...@freebsd.org Sun Oct 16 16:27:46 2011 Date: Sun, 16 Oct 2011 14:26:31 -0700 From: Gary Kline kl...@thought.org To: FreeBSD Mailing List freebsd-questions@freebsd.org Cc: Subject: need to check for hex in C: how/ if n == 15 and x is the int. i can say if

Re: need to check for hex in C: how/

2011-10-16 Thread Polytropon
On Sun, 16 Oct 2011 14:26:31 -0700, Gary Kline wrote: if n == 15 and x is the int. i can say if ((int)x == 15) Or to check if x == 'A' i can cast x to (char)x. what's the syntax to chec if x is , say, 32/ The integer types are automatically casted, no matter if you compare (int) or

Re: need to check for hex in C: how/

2011-10-16 Thread Matthew Seaman
On 16/10/2011 22:26, Gary Kline wrote: if n == 15 and x is the int. i can say if ((int)x == 15) Or to check if x == 'A' i can cast x to (char)x. what's the syntax to chec if x is , say, 32/ In C code you can write an integer constant in hexadecimal by prefixing it with 0x -- so 0x32 is

Re: need to check for hex in C: how/

2011-10-16 Thread Gary Kline
On Sun, Oct 16, 2011 at 11:07:59PM +0100, Matthew Seaman wrote: Date: Sun, 16 Oct 2011 23:07:59 +0100 From: Matthew Seaman m.sea...@infracaninophile.co.uk Subject: Re: need to check for hex in C: how/ To: freebsd-questions@freebsd.org On 16/10/2011 22:26, Gary Kline wrote: if n == 15 and

Re: need to check for hex in C: how/

2011-10-16 Thread Gary Kline
On Sun, Oct 16, 2011 at 11:58:03PM +0200, Polytropon wrote: Date: Sun, 16 Oct 2011 23:58:03 +0200 From: Polytropon free...@edvax.de Subject: Re: need to check for hex in C: how/ To: Gary Kline kl...@thought.org Cc: FreeBSD Mailing List freebsd-questions@freebsd.org X-Mailer: Sylpheed 3.1.1

Re: need to check for hex in C: how/

2011-10-16 Thread Polytropon
On Sun, 16 Oct 2011 16:06:54 -0700, Gary Kline wrote: this will bbe my 'sanity-checck' of sorts. the ck function will have something like: if ((char)x == 'a') { } I'm not sure this is required. Many functions that deal with characters (in this case: letters) do operate on (int) instead of

Re: boost issue freebsd 8.2 (32 bit) - infinite loop of boost

2011-10-16 Thread Damien Fleuriot
On 16 Oct 2011, at 03:35, Waitman Gobble gobble...@gmail.com wrote: On Sat, Oct 15, 2011 at 5:53 PM, Damien Fleuriot m...@my.gd wrote: On 15 Oct 2011, at 19:38, Waitman Gobble gobble...@gmail.com wrote: Hi, I identified the problem - the build script insists on fetching boost from

Re: need to check for hex in C: how/

2011-10-16 Thread Robert Bonomi
Date: Sun, 16 Oct 2011 16:06:54 -0700 From: Gary Kline kl...@thought.org Subject: Re: need to check for hex in C: how/ this will bbe my 'sanity-checck' of sorts. the ck function will have something like: if ((char)x == 'a') { } And, you deserve what happens if you use that kind of