• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/httpd/

Lines Matching defs:stream

1589 static void do_html_post_and_get(char *url, FILE *stream, int len, char *boundary){
1597 if(fgets(post_buf, MIN(len+1, sizeof(post_buf)), stream)){
1601 (void)fgetc(stream);
6726 do_apply_cgi(char *url, FILE *stream)
6738 apply_cgi(stream, NULL, NULL, 0, url, path, query);
6743 apply_cgi(stream, NULL, NULL, 0, url, NULL, NULL);
6751 do_apply_cgi_post(char *url, FILE *stream, int len, char *boundary)
6755 if(!fgets(post_buf, MIN(len+1, sizeof(post_buf)), stream))
6761 (void)fgetc(stream);
6767 do_internal_cgi(char *url, FILE *stream)
6774 internal_cgi(stream, NULL, NULL, 0, url, path, query);
6785 do_lang_cgi(char *url, FILE *stream)
6789 websHeader(stream);
6790 websWrite(stream, "<head></head><title>REDIRECT TO INDEX.ASP</title>");
6793 websWrite(stream, "<body onLoad='if (navigator.appVersion.indexOf(\"Firefox\")!=-1||navigator.appName == \"Netscape\"){top.location=\"index.asp\";}else{top.location.reload(true);}'></body>");
6794 websFooter(stream);
6795 websDone(stream, 200);
6800 websRedirect(stream, "Title.asp");
6806 do_lang_post(char *url, FILE *stream, int len, char *boundary)
6830 if (feof (stream)) {
6831 while ((c = fgetc(stream) != EOF)) {
6857 do_webcam_cgi(char *url, FILE *stream)
6867 //ret = fcntl(fileno(stream), F_GETOWN, 0);
6876 do_file(pic, stream);
6880 do_upgrade_post(char *url, FILE *stream, int len, char *boundary)
6913 if (!fgets(buf, MIN(len + 1, sizeof(buf)), stream))
6930 if (!fgets(buf, MIN(len + 1, sizeof(buf)), stream))
6957 //if (waitfor(fileno(stream), 10) <= 0)
6964 count = fread(buf, 1, MIN(len, sizeof(buf)), stream);
7005 ch = fgetc(stream);
7047 ch = fgetc(stream);
7053 //fcntl(fileno(stream), F_SETOWN, -ret);
7062 do_upgrade_cgi(char *url, FILE *stream)
7068 //ret = fcntl(fileno(stream), F_GETOWN, 0);
7076 websApply(stream, "Updating.asp");
7080 websApply(stream, "Restarting.asp");
7088 websApply(stream, "UpdateError.asp");
7094 do_upload_post(char *url, FILE *stream, int len, char *boundary)
7114 if(!fgets(buf, MIN(len+1, sizeof(buf)), stream)){
7127 if(!fgets(buf, MIN(len+1, sizeof(buf)), stream)){
7149 //if(waitfor(fileno(stream), 10) <= 0){
7155 count = fread(buf, 1, MIN(len, sizeof(buf)), stream);
7184 ch = fgetc(stream);
7219 ch = fgetc(stream);
7225 //fcntl(fileno(stream), F_SETOWN, -ret);
7230 do_upload_cgi(char *url, FILE *stream)
7235 //ret = fcntl(fileno(stream), F_GETOWN, 0);
7240 websApply(stream, "Uploading.asp");
7247 websApply(stream, "UploadError.asp");
7253 do_prf_file(char *url, FILE *stream)
7257 do_file(url, stream);
7265 do_upgrade_post(char *url, FILE *stream, int len, char *boundary)
7270 do_upgrade_cgi(char *url, FILE *stream)
7297 do_log_cgi(char *path, FILE *stream)
7300 dump_file(stream, "/tmp/syslog.log-1");
7301 dump_file(stream, "/tmp/syslog.log");
7302 fputs("\r\n", stream); /* terminator */
7303 fputs("\r\n", stream); /* terminator */
7317 do_selectdir_cgi(char *url, FILE *stream)
7343 do_selectdir_ej(char *url, FILE *stream)
7345 do_ej("Advanced_StorageSelectFolder_Content.asp", stream);