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=1612e4fe70f9dcb141a9742240cfff4525a1cd63;hp=d2681cfc861a068cd5cbe4d8e7003f7c466c23c0;hb=fe83c002f6082d5f035c39bbbdd2258c4c7cfa86;hpb=55066cde303ef88e7e5941496b21e794708e55ba diff --git a/cprogs/cgi-fcgi-interp.c b/cprogs/cgi-fcgi-interp.c index d2681cf..1612e4f 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(