Search squid archive

Re: external_acl_type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello,

> Oky, is it in order to allocate a new buffer before listening requests?
> (To avoid reading program's arguments?)

if i understand your question right, the answer is no.

the best way, when you starts the code, and initialize the
variables, after put that function.

for example:

int
main(...)
{
	type	var;
	...	...

	setbuf (stdout, NULL);

	...
	// main loop
	while(fgets(input, MAX_STRLEN, stdin)) {
	  ..
	}

}

in my previous mail i wrote "stdin" - that isn't correct, you
need to set up the stdin, instead of stdout, sorry.


bye:

a.



> >hello,
> >
> >  
> >
> >>An external helper return OK or ERR in the stdin. Possibly more, I don't
> >>know. Is someone can tell more about it?
> >>    
> >>
> >
> >you have to set your stdin buffer to NULL, in C:
> >
> >#include <stdio.h>
> >
> >
> >...
> >  setbuf (stdin, NULL);
> >...
> >
> >(i dunno', how can you set it in any shell)
> >  
> >
> I didn't empty stdin buffer in shell and it was working.
> 
> Ghislain
> 
> 

-- 
Minden baj forrása az 1/x függvény.

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux