Re: Cannot upgrade 4.11-RELEASE #0

2005-11-27 Thread Michael C. Shultz
On Sunday 27 November 2005 14:47, Geoff Mohler wrote: I am trying to upgrade via buildworld my 4.11-RELEASE #0 system, and I am running into a few key errors. First, I am updated in my cvsup, here is my config file: *default host=cvsup3.freebsd.org compress *default base=/usr *default

Re: Cannot upgrade 4.11-RELEASE #0

2005-11-27 Thread Michael C. Shultz
On Sunday 27 November 2005 14:50, Michael C. Shultz wrote: On Sunday 27 November 2005 14:47, Geoff Mohler wrote: I am trying to upgrade via buildworld my 4.11-RELEASE #0 system, and I am running into a few key errors. First, I am updated in my cvsup, here is my config file: *default

Re: Question about closeing and opening stdin

2005-11-23 Thread Michael C. Shultz
On Wednesday 23 November 2005 11:21, Joan Picanyol i Puig wrote: [private reply, I'm 100% unsure I understand what you want] * Michael C. Shultz [EMAIL PROTECTED] [20051122 19:58]: How do I close then open stdin and keep it set to the same terminal as when it was closed? ? If it's closed

Question about closeing and opening stdin

2005-11-22 Thread Michael C. Shultz
How do I close then open stdin and keep it set to the same terminal as when it was closed? Everything I've tried so far has met with failure accept this works sort of and I don't get why: signal( SIGALRM, MGPMrTimer ); alarm( 300 ); /* time out in 5 minutes */ answer = getc(stdin); the

Re: Question about closeing and opening stdin

2005-11-22 Thread Michael C. Shultz
On Tuesday 22 November 2005 10:50, Michael C. Shultz wrote: How do I close then open stdin and keep it set to the same terminal as when it was closed? Everything I've tried so far has met with failure accept this works sort of and I don't get why: signal( SIGALRM, MGPMrTimer ); alarm( 300

Re: portmanager

2005-10-13 Thread Michael C. Shultz
On Thursday 13 October 2005 04:37, you wrote: Michael C. Shultz wrote: if ( getenv(TERM) ) { . . . } Anyway you should use code like that for the cases: char *term; term = getenv(TERM); And check the variable afterwards. It much better than call getenv() twice. And the first

Re: portmanager

2005-10-12 Thread Michael C. Shultz
On Sunday 09 October 2005 07:53, Michael Lednev wrote: Hello, freebsd-questions. anyone tried to run portmanager from crontab? as for me it just coredumps, what am i doing wrong? its simply 0 0 * * * portmanager -s I'm not sure how to fix it but I've found where portmanager crashes

Re: portmanager

2005-10-12 Thread Michael C. Shultz
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael C. Shultz Sent: 10/12/2005 1:43 PM To: Michael Lednev; freebsd-questions@freebsd.org; [EMAIL PROTECTED] Subject: Re: portmanager On Sunday 09 October 2005 07:53, Michael Lednev wrote: Hello, freebsd-questions

Re: portmanager

2005-10-12 Thread Michael C. Shultz
= 671640963, interactive = 671555840} -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael C. Shultz Sent: 10/12/2005 1:43 PM To: Michael Lednev; freebsd-questions@freebsd.org; [EMAIL PROTECTED] Subject: Re: portmanager On Sunday 09 October

Re: the best form to wait the finish of execution of a child...

2005-03-30 Thread Michael C. Shultz
On Wednesday 30 March 2005 10:17 am, zean zean wrote: Hi Hackers: Excuse for my badly English. which is the best form to wait the finish of execution of a child. My idea is: pid_t chilpid; while(childpid != wait(status)) ; Any aid to obtain the best way is very welcome. PD. Excuse

Re: threads question

2005-03-16 Thread Michael C. Shultz
On Wednesday 16 March 2005 01:40 pm, you wrote: this works perfectly because I moved MGPMrUpgrade into the same .c file so it would be a static function: structProperty* property; pthread_t threads[NTHREADS]; pthread_create( threads[0], NULL, zzMGPMrUpgrade, property ); When

Re: threads question

2005-03-15 Thread Michael C. Shultz
On Monday 14 March 2005 08:57 pm, Daniel Eischen wrote: On Mon, 14 Mar 2005, Michael C. Shultz wrote: Hi, I've just reached a point in a program I'm writing where I'd like to do threading. When I try to start a thread like this: pthread_create(thread, attr, MGPMrUpgrade, property

Re: threads question

2005-03-15 Thread Michael C. Shultz
On Tuesday 15 March 2005 10:19 am, Daniel Eischen wrote: On Tue, 15 Mar 2005, Michael C. Shultz wrote: Daniel, sorry to bother you again but I ran into something that is either a bug or I am missing a vital piece of information somewhere. Here is the situation: this works perfectly

Re: threads question

2005-03-15 Thread Michael C. Shultz
On Tuesday 15 March 2005 12:02 pm, you wrote: On Tue, 15 Mar 2005, Michael C. Shultz wrote: [cut] The answer is probably something like what you just said, scope being lost when making the call to a shared library. Why is it ok going to a static library but not a shared though

Re: cvsup can't work

2005-03-14 Thread Michael C. Shultz
On Monday 14 March 2005 06:33 pm, wanakahalugi wrote: hi all, I installed FreeBSD5.3REL on my PC, and I want to update the source tree and ports collection using cvsup. To do that I copy the stable-supfile to /etc directory and set its default host tag to the nearest mirror, and also set

threads question

2005-03-14 Thread Michael C. Shultz
Hi, I've just reached a point in a program I'm writing where I'd like to do threading. When I try to start a thread like this: pthread_create(thread, attr, MGPMrUpgrade, property ); where property is a structure of many variables it doesn't get passed to the function. If I do this:

Re: threads question

2005-03-14 Thread Michael C. Shultz
On Monday 14 March 2005 08:57 pm, Daniel Eischen wrote: On Mon, 14 Mar 2005, Michael C. Shultz wrote: Hi, I've just reached a point in a program I'm writing where I'd like to do threading. When I try to start a thread like this: pthread_create(thread, attr, MGPMrUpgrade, property

Re: Error in my C programming

2005-02-20 Thread Michael C. Shultz
On Sunday 20 February 2005 11:02 am, Kathy Quinlan wrote: Peter Jeremy wrote: On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: These are some of the errors I get in pairs for each of the above variables: Wtrend_Drivers.c:15: conflicting types for `Receiver' Wtrend_Drivers.h:9:

Re: Error in my C programming

2005-02-20 Thread Michael C. Shultz
On Sunday 20 February 2005 11:48 am, Kathy Quinlan wrote: Gary Corcoran wrote: Kathy Quinlan wrote: Peter Jeremy wrote: On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: These are some of the errors I get in pairs for each of the above variables: Wtrend_Drivers.c:15:

Re: Error in my C programming

2005-02-20 Thread Michael C. Shultz
On Sunday 20 February 2005 12:41 pm, Richard Sharpe wrote: On Sun, 20 Feb 2005, Michael C. Shultz wrote: Here is a section of my code: *** Wtrend_Drivers.c *** (12)void Reset_Network (unsigned char Network) (13) { (14)Length = 0x00; (15)Receiver = 0x00