X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=cprogs%2Fcgi-fcgi-interp.c;h=6b0585b54f4a9b46e0464d80458c28f4f88b28c7;hp=0fdb88ee4e449ccc53548929ea5c282ee964705c;hb=5bf620d34ef0036ab8f20f3fa4704889c366fcad;hpb=9d528ea86b055d822e4c68ea4b0d5b59c46f1529 diff --git a/cprogs/cgi-fcgi-interp.c b/cprogs/cgi-fcgi-interp.c index 0fdb88e..6b0585b 100644 --- a/cprogs/cgi-fcgi-interp.c +++ b/cprogs/cgi-fcgi-interp.c @@ -2,7 +2,31 @@ * "Interpreter" that you can put in #! like this * #!/usr/bin/cgi-fcgi-interp [] * #!/usr/bin/cgi-fcgi-interp [], + */ +/* + * cgi-fcgi-interp.[ch] - C helpers common to the whole of chiark-utils + * + * Copyright 2016 Ian Jackson + * Copyright 1982,1986,1993 The Regents of the University of California + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this file; if not, consult the Free Software + * Foundation's website at www.fsf.org, or the GNU Project website at + * www.gnu.org. + * + * See below for a BSD 3-clause notice regarding timespeccmp. + */ +/* * The result is a program which looks, when executed via the #! * line, like a CGI program. But the script inside will be executed * via in an fcgi context. @@ -13,8 +37,18 @@ * The real interpreter to use. Eg "perl". Need not * be an absolute path; will be fed to execvp. * + * -G + * Add to the unique identifying information for + * this fcgi program. May be repeated; order is significant. + * + * -E + * Look up in the environment and add + * = as if specified with -G. If + * the variable is unset in the environment, it is as if + * -G was specified. + * * -g - * Use rather than hex(sha256(