|
Post Scarcity
A prototype for a post scarcity programming environment
|
#include <stdio.h>#include <string.h>#include <sys/time.h>#include <stdlib.h>#include <errno.h>#include <curl/curl.h>#include "io/fopen.h"#include "memory/consspaceobject.h"#include "io/io.h"#include "utils.h"Go to the source code of this file.
Functions | |
| int | url_fclose (URL_FILE *file) |
| int | url_feof (URL_FILE *file) |
| char * | url_fgets (char *ptr, size_t size, URL_FILE *file) |
| URL_FILE * | url_fopen (const char *url, const char *operation) |
| size_t | url_fread (void *ptr, size_t size, size_t nmemb, URL_FILE *file) |
| void | url_rewind (URL_FILE *file) |
| int url_fclose | ( | URL_FILE * | file | ) |
Definition at line 258 of file fopen.c.
References fcurl_data::buffer, CFTYPE_CURL, CFTYPE_FILE, fcurl_data::handle, and fcurl_data::type.
Referenced by free_cell(), and lisp_close().
| int url_feof | ( | URL_FILE * | file | ) |
Definition at line 286 of file fopen.c.
References fcurl_data::buffer_pos, CFTYPE_CURL, CFTYPE_FILE, fcurl_data::handle, fcurl_data::still_running, and fcurl_data::type.
Referenced by lisp_repl(), lisp_slurp(), read_continuation(), and read_path().
| char * url_fgets | ( | char * | ptr, |
| size_t | size, | ||
| URL_FILE * | file | ||
| ) |
Definition at line 346 of file fopen.c.
References fcurl_data::buffer, fcurl_data::buffer_pos, CFTYPE_CURL, CFTYPE_FILE, fcurl_data::handle, and fcurl_data::type.
Referenced by url_fgetwc().
| URL_FILE * url_fopen | ( | const char * | url, |
| const char * | operation | ||
| ) |
Definition at line 202 of file fopen.c.
References fcurl_data::buffer_pos, CFTYPE_CURL, CFTYPE_FILE, CFTYPE_NONE, fcurl_data::handle, index_of(), io_share, fcurl_data::still_running, and fcurl_data::type.
Referenced by lisp_open(), and main().
| size_t url_fread | ( | void * | ptr, |
| size_t | size, | ||
| size_t | nmemb, | ||
| URL_FILE * | file | ||
| ) |
Definition at line 307 of file fopen.c.
References fcurl_data::buffer, fcurl_data::buffer_pos, CFTYPE_CURL, CFTYPE_FILE, fcurl_data::handle, and fcurl_data::type.
| void url_rewind | ( | URL_FILE * | file | ) |
Definition at line 393 of file fopen.c.
References fcurl_data::buffer, fcurl_data::buffer_len, fcurl_data::buffer_pos, CFTYPE_CURL, CFTYPE_FILE, fcurl_data::handle, and fcurl_data::type.