[AOLSERVER] we updated our site

2002-02-22 Thread Perseo Benavidez
Title: Frame Forward Example Please visit http://www.infogambling.com/eng/default.asp.

[AOLSERVER] bug using ns_ftruncate

2002-02-22 Thread Jim Wilcoxson
This script fails on Linux 2.2.19, AS 3.4, gnu libc 2.1.2: set fd [open xyz w] puts $fd "abcdefg" close $fd set fd [open xyz r+] seek $fd 4 puts -nonewline $fd "x" ns_ftruncate $fd 3 close $fd return After this executes, the file should contain 3 bytes because of the ns_ftruncate call. Instead

Re: [AOLSERVER] bug using ns_ftruncate

2002-02-22 Thread Rob Mayoff
+-- On Feb 22, Jim Wilcoxson said: > set fd [open xyz w] > puts $fd "abcdefg" > close $fd > > set fd [open xyz r+] > seek $fd 4 > puts -nonewline $fd "x" What happens if you put "flush $fd" right here, after the puts and before the ns_ftruncate? > ns_ftruncate $fd 3 > close $fd > return

[AOLSERVER] Fw: Re: [ANNOUNCE] Financial support for replication programmer needed

2002-02-22 Thread Scott Goodwin
This was a posting from the PostgreSQL crew. I'm posting it here for two reasons: 1. Maybe someone in our discussion group might be able to help who hasn't seen the original message. 2. I think the method I gave in my response below might be a good way to get work done on AOLserver module featur

Re: [AOLSERVER] bug using ns_ftruncate

2002-02-22 Thread Jim Wilcoxson
Hey Rob, I just tried your idea and it works correctly if flush is added. I figured this is probably a libc bug but thought I'd post it here in case others have trouble with it. Might be a good idea to add a flush inside ns_ftruncate as a workaround. Jim > > +-- On Feb 22, Jim Wilcoxs

Re: [AOLSERVER] bug using ns_ftruncate

2002-02-22 Thread Rob Mayoff
+-- On Feb 22, Jim Wilcoxson said: > I just tried your idea and it works correctly if flush is added. I > figured this is probably a libc bug but thought I'd post it here in > case others have trouble with it. Might be a good idea to add a flush > inside ns_ftruncate as a workaround. Tc

[AOLSERVER] ns_cond wait mutex - what for?

2002-02-22 Thread Andrew Piskorski
In the 'ns_cond wait' command: http://www.aolserver.com/docs/devel/tcl/tcl-api.adp#ns_cond What is the mutex lock FOR? Do I need to use one mutex per cond/event, or one mutex per thread per event, or what? The docs - "The lockid argument is the id of a mutex lock." - are notably unhelpful, an

Re: [AOLSERVER] ns_cond wait mutex - what for?

2002-02-22 Thread Rob Mayoff
+-- On Feb 22, Andrew Piskorski said: > In the 'ns_cond wait' command: > http://www.aolserver.com/docs/devel/tcl/tcl-api.adp#ns_cond > > What is the mutex lock FOR? Do I need to use one mutex per > cond/event, or one mutex per thread per event, or what? > > The docs - "The lockid argume

[AOLSERVER] Fw: Re: [ANNOUNCE] Financial support for replicationprogrammerneeded

2002-02-22 Thread Ian Harding
I found it, there is a site here that is doing something like what you suggest. I don't know if you have to sell your soul to the devil or not. http://www.osdlab.org/ Ian A. Harding Programmer/Analyst II Tacoma-Pierce County Health Department (253) 798-3549 mailto: [EMAIL PROTECTED] >>> [EMAI

Re: [AOLSERVER] ns_cond wait mutex - what for?

2002-02-22 Thread Andrew Piskorski
Thanks Rob, that helps a lot. But I'm still confused: Why do I need to use a separate flag value in addition to the mutex? In other words, why can't I just do something like: The code in T1: ns_mutex lock $mutex ns_cond wait $event_id $mutex_id $timeout The code in T2: ns_mutex loc

Re: [AOLSERVER] ns_cond wait mutex - what for?

2002-02-22 Thread Rob Mayoff
+-- On Feb 22, Andrew Piskorski said: > Why do I need to use a separate flag value in addition to the mutex? > In other words, why can't I just do something like: If T1 starts T2, after locking $mutex, then T1 can just wait on $cond. But sometimes you have two or more independent threads

Re: [AOLSERVER] ns_cond wait mutex - what for?

2002-02-22 Thread Andrew Piskorski
On Fri, Feb 22, 2002 at 03:57:26PM -0500, Andrew Piskorski wrote: > Why do I need to use a separate flag value in addition to the mutex? Oh. I think I just realized (at least one reason) why. The flag value, is so if T2 does its ns_cond broadcast BEFORE T1 starts doing ns_cond wait, that T1 wi

[AOLSERVER] TCL question

2002-02-22 Thread Patrick Spence
This is a stripped down version of a template system I am working on. The problem I am having is that by specification (annoyingly :) ) regsub has this caveat: "If subSpec contains a ``&'' or ``\0'', then it is replaced in the substitution with the portion of string that matched exp. If subSpec

Re: [AOLSERVER] ns_cond wait mutex - what for?

2002-02-22 Thread Rob Mayoff
+-- On Feb 22, Andrew Piskorski said: > Oh. I think I just realized (at least one reason) why. The flag > value, is so if T2 does its ns_cond broadcast BEFORE T1 starts doing > ns_cond wait, that T1 will know that the event already occurred, > right? Is that the only reason? Yes. It d

Re: [AOLSERVER] TCL question

2002-02-22 Thread Rob Mayoff
+-- On Feb 22, Patrick Spence said: > My problem is I cannot insert the \ before the & and then wrap with braces.. > I am pulling the string to convert from a database and piping it through my > macro routine and I have not been able to figure out how to get it to work > right. You need t

Re: [AOLSERVER] TCL question

2002-02-22 Thread Jeff Hobbs
Patrick Spence wrote: ... > proc insert_macro { thestring key macro} { > regsub -all -- $key $thestring $macro thestring; > return "$thestring" > } It's not quite clear from your explanation what you really want, and how you want the & handled. However, I suspect that 'string map

Re: [AOLSERVER] TCL question

2002-02-22 Thread Michael A. Cleverly
If you're using nsd8x (and not nsd76) you can get your desired result by using [string map] instead of [regsub]: proc insert_macro { thestring key macro} { return [string map [list $key $macro] $thestring] } See: http://aolserver.com/docs/devel/tcl/tcl-language/tcl8.x/TclCmd/stri

Re: [AOLSERVER] TCL question

2002-02-22 Thread Patrick Spence
Jeff, Rob, Michael (and others who reply while I write this) Very many thanks.. :) I still don't have regexp down very well and this has been frustrating me for several hours now.. This is why I love this list, several helpful people with lots of good help.. :) Its up and running now.. basical