Files
@ 966150c99fcc
Branch filter:
Location: DistRen/src/client/distren.c - annotation
966150c99fcc
1.5 KiB
text/plain
Added SVG Logo
7f09dcee58f4 7fcbed937039 7f09dcee58f4 aaedffb71a83 aaedffb71a83 aaedffb71a83 7f09dcee58f4 7f09dcee58f4 7f09dcee58f4 aaedffb71a83 aaedffb71a83 7f09dcee58f4 7f09dcee58f4 7f09dcee58f4 aaedffb71a83 7f09dcee58f4 aaedffb71a83 7f09dcee58f4 7f09dcee58f4 d643c8d1d8a8 d643c8d1d8a8 510b082d50ae 627c64f1fd14 510b082d50ae 627c64f1fd14 627c64f1fd14 627c64f1fd14 943db19cf524 943db19cf524 943db19cf524 943db19cf524 943db19cf524 510b082d50ae 510b082d50ae 510b082d50ae 510b082d50ae 943db19cf524 943db19cf524 943db19cf524 627c64f1fd14 943db19cf524 627c64f1fd14 627c64f1fd14 627c64f1fd14 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 d643c8d1d8a8 7df3f36d8160 | /*
Copyright 2008 Nathan Phillip Brink, Ethan Zonca, Matt Orlando
This file is a part of DistRen.
DistRen is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DistRen 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with DistRen. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h> /* sprintf, printf */
#include <stdlib.h> /* malloc, free */
#include "options.h"
#include "execio.h"
int main(int argc, char *argv[])
{
struct execio *testrem;
char *execargv[] =
{
"ssh",
"protofusion.org",
"sh",
"-c",
"\"echo hello from ${HOSTNAME} 1>&2\"",
(char *)NULL
};
fprintf(stderr, "testing execio (It shouldn't work) :-)\n");
fprintf(stderr, "execio_open returns %d\n", execio_open(&testrem, "ssh", execargv));
return 0;
};
/* this function should probably not exist. asprintf should be used instead of sprintf */
size_t intstrlen(size_t theint)
{
size_t len = 0; /* if the number is single digit, this will be incremented */
do
{
theint /= 10;
len ++;
}
while(theint > 0);
return len;
}
|