X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=cprogs%2Fcgi-fcgi-interp.c;h=63db94b35fed7a1d3afb3f11c96858a31d3c70d7;hb=79dffd67db788e73c39722842097a3f98b2bee83;hp=1e368f08fe5c89a47264e8c4d708a09b39e57ccf;hpb=982636bcdb809dfb41f30f02e73c09a900bb7788;p=chiark-utils.git diff --git a/cprogs/cgi-fcgi-interp.c b/cprogs/cgi-fcgi-interp.c index 1e368f0..63db94b 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] - Convenience wrapper for cgi-fcgi + * + * 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(