\doxysection{workspace/post-\/scarcity/src/io/fopen.c File Reference}
\hypertarget{fopen_8c}{}\label{fopen_8c}\index{workspace/post-\/scarcity/src/io/fopen.c@{workspace/post-\/scarcity/src/io/fopen.c}}
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$sys/time.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$curl/curl.\+h$>$}\newline
{\ttfamily \#include "{}io/fopen.\+h"{}}\newline
{\ttfamily \#include "{}memory/consspaceobject.\+h"{}}\newline
{\ttfamily \#include "{}io/io.\+h"{}}\newline
{\ttfamily \#include "{}utils.\+h"{}}\newline
Include dependency graph for fopen.\+c\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{fopen_8c__incl}
\end{center}
\end{figure}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{fopen_8c_ae855f8141739dd05eb4a2319006d1177}{url\+\_\+fclose}} (\mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*}file)
\item 
int \mbox{\hyperlink{fopen_8c_a216d4da618cba31eb9b2badf6d5de2d9}{url\+\_\+feof}} (\mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*}file)
\item 
char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{fopen_8c_a581c0437f39131b6368dd163843afff8}{url\+\_\+fgets}} (char \texorpdfstring{$\ast$}{*}ptr, size\+\_\+t size, \mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*}file)
\item 
\mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{fopen_8c_a26798feb43118ca8efe6fde1aa0dcaba}{url\+\_\+fopen}} (const char \texorpdfstring{$\ast$}{*}url, const char \texorpdfstring{$\ast$}{*}operation)
\item 
size\+\_\+t \mbox{\hyperlink{fopen_8c_ac0b29ae4a1d13706b283789ef93ed27b}{url\+\_\+fread}} (void \texorpdfstring{$\ast$}{*}ptr, size\+\_\+t size, size\+\_\+t nmemb, \mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*}file)
\item 
void \mbox{\hyperlink{fopen_8c_a136dc33c053055258c690193177cc0af}{url\+\_\+rewind}} (\mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*}file)
\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\Hypertarget{fopen_8c_ae855f8141739dd05eb4a2319006d1177}\label{fopen_8c_ae855f8141739dd05eb4a2319006d1177} 
\index{fopen.c@{fopen.c}!url\_fclose@{url\_fclose}}
\index{url\_fclose@{url\_fclose}!fopen.c@{fopen.c}}
\doxysubsubsection{\texorpdfstring{url\_fclose()}{url\_fclose()}}
{\footnotesize\ttfamily int url\+\_\+fclose (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*}}]{file }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{fopen_8c_source_l00258}{258}} of file \mbox{\hyperlink{fopen_8c_source}{fopen.\+c}}.



References \mbox{\hyperlink{fopen_8h_source_l00067}{fcurl\+\_\+data\+::buffer}}, \mbox{\hyperlink{fopen_8h_source_l00057}{CFTYPE\+\_\+\+CURL}}, \mbox{\hyperlink{fopen_8h_source_l00056}{CFTYPE\+\_\+\+FILE}}, \mbox{\hyperlink{fopen_8h_a61eb2fbb79b1d44fffa49dd0a194e09b}{fcurl\+\_\+data\+::handle}}, and \mbox{\hyperlink{fopen_8h_source_l00061}{fcurl\+\_\+data\+::type}}.



Referenced by \mbox{\hyperlink{conspage_8c_source_l00143}{free\+\_\+cell()}}, and \mbox{\hyperlink{io_8c_source_l00254}{lisp\+\_\+close()}}.

\Hypertarget{fopen_8c_a216d4da618cba31eb9b2badf6d5de2d9}\label{fopen_8c_a216d4da618cba31eb9b2badf6d5de2d9} 
\index{fopen.c@{fopen.c}!url\_feof@{url\_feof}}
\index{url\_feof@{url\_feof}!fopen.c@{fopen.c}}
\doxysubsubsection{\texorpdfstring{url\_feof()}{url\_feof()}}
{\footnotesize\ttfamily int url\+\_\+feof (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*}}]{file }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{fopen_8c_source_l00286}{286}} of file \mbox{\hyperlink{fopen_8c_source}{fopen.\+c}}.



References \mbox{\hyperlink{fopen_8h_source_l00069}{fcurl\+\_\+data\+::buffer\+\_\+pos}}, \mbox{\hyperlink{fopen_8h_source_l00057}{CFTYPE\+\_\+\+CURL}}, \mbox{\hyperlink{fopen_8h_source_l00056}{CFTYPE\+\_\+\+FILE}}, \mbox{\hyperlink{fopen_8h_a61eb2fbb79b1d44fffa49dd0a194e09b}{fcurl\+\_\+data\+::handle}}, \mbox{\hyperlink{fopen_8h_source_l00070}{fcurl\+\_\+data\+::still\+\_\+running}}, and \mbox{\hyperlink{fopen_8h_source_l00061}{fcurl\+\_\+data\+::type}}.



Referenced by \mbox{\hyperlink{lispops_8c_source_l01263}{lisp\+\_\+repl()}}, \mbox{\hyperlink{io_8c_source_l00533}{lisp\+\_\+slurp()}}, \mbox{\hyperlink{read_8c_source_l00155}{read\+\_\+continuation()}}, and \mbox{\hyperlink{read_8c_source_l00086}{read\+\_\+path()}}.

\Hypertarget{fopen_8c_a581c0437f39131b6368dd163843afff8}\label{fopen_8c_a581c0437f39131b6368dd163843afff8} 
\index{fopen.c@{fopen.c}!url\_fgets@{url\_fgets}}
\index{url\_fgets@{url\_fgets}!fopen.c@{fopen.c}}
\doxysubsubsection{\texorpdfstring{url\_fgets()}{url\_fgets()}}
{\footnotesize\ttfamily char \texorpdfstring{$\ast$}{*} url\+\_\+fgets (\begin{DoxyParamCaption}\item[{char \texorpdfstring{$\ast$}{*}}]{ptr,  }\item[{size\+\_\+t}]{size,  }\item[{\mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*}}]{file }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{fopen_8c_source_l00346}{346}} of file \mbox{\hyperlink{fopen_8c_source}{fopen.\+c}}.



References \mbox{\hyperlink{fopen_8h_source_l00067}{fcurl\+\_\+data\+::buffer}}, \mbox{\hyperlink{fopen_8h_source_l00069}{fcurl\+\_\+data\+::buffer\+\_\+pos}}, \mbox{\hyperlink{fopen_8h_source_l00057}{CFTYPE\+\_\+\+CURL}}, \mbox{\hyperlink{fopen_8h_source_l00056}{CFTYPE\+\_\+\+FILE}}, \mbox{\hyperlink{fopen_8h_a61eb2fbb79b1d44fffa49dd0a194e09b}{fcurl\+\_\+data\+::handle}}, and \mbox{\hyperlink{fopen_8h_source_l00061}{fcurl\+\_\+data\+::type}}.



Referenced by \mbox{\hyperlink{io_8c_source_l00151}{url\+\_\+fgetwc()}}.

\Hypertarget{fopen_8c_a26798feb43118ca8efe6fde1aa0dcaba}\label{fopen_8c_a26798feb43118ca8efe6fde1aa0dcaba} 
\index{fopen.c@{fopen.c}!url\_fopen@{url\_fopen}}
\index{url\_fopen@{url\_fopen}!fopen.c@{fopen.c}}
\doxysubsubsection{\texorpdfstring{url\_fopen()}{url\_fopen()}}
{\footnotesize\ttfamily \mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*} url\+\_\+fopen (\begin{DoxyParamCaption}\item[{const char \texorpdfstring{$\ast$}{*}}]{url,  }\item[{const char \texorpdfstring{$\ast$}{*}}]{operation }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{fopen_8c_source_l00202}{202}} of file \mbox{\hyperlink{fopen_8c_source}{fopen.\+c}}.



References \mbox{\hyperlink{fopen_8h_source_l00069}{fcurl\+\_\+data\+::buffer\+\_\+pos}}, \mbox{\hyperlink{fopen_8h_source_l00057}{CFTYPE\+\_\+\+CURL}}, \mbox{\hyperlink{fopen_8h_source_l00056}{CFTYPE\+\_\+\+FILE}}, \mbox{\hyperlink{fopen_8h_source_l00055}{CFTYPE\+\_\+\+NONE}}, \mbox{\hyperlink{fopen_8h_a61eb2fbb79b1d44fffa49dd0a194e09b}{fcurl\+\_\+data\+::handle}}, \mbox{\hyperlink{utils_8c_source_l00015}{index\+\_\+of()}}, \mbox{\hyperlink{io_8c_source_l00046}{io\+\_\+share}}, \mbox{\hyperlink{fopen_8h_source_l00070}{fcurl\+\_\+data\+::still\+\_\+running}}, and \mbox{\hyperlink{fopen_8h_source_l00061}{fcurl\+\_\+data\+::type}}.



Referenced by \mbox{\hyperlink{io_8c_source_l00437}{lisp\+\_\+open()}}, and \mbox{\hyperlink{init_8c_source_l00206}{main()}}.

\Hypertarget{fopen_8c_ac0b29ae4a1d13706b283789ef93ed27b}\label{fopen_8c_ac0b29ae4a1d13706b283789ef93ed27b} 
\index{fopen.c@{fopen.c}!url\_fread@{url\_fread}}
\index{url\_fread@{url\_fread}!fopen.c@{fopen.c}}
\doxysubsubsection{\texorpdfstring{url\_fread()}{url\_fread()}}
{\footnotesize\ttfamily size\+\_\+t url\+\_\+fread (\begin{DoxyParamCaption}\item[{void \texorpdfstring{$\ast$}{*}}]{ptr,  }\item[{size\+\_\+t}]{size,  }\item[{size\+\_\+t}]{nmemb,  }\item[{\mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*}}]{file }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{fopen_8c_source_l00307}{307}} of file \mbox{\hyperlink{fopen_8c_source}{fopen.\+c}}.



References \mbox{\hyperlink{fopen_8h_source_l00067}{fcurl\+\_\+data\+::buffer}}, \mbox{\hyperlink{fopen_8h_source_l00069}{fcurl\+\_\+data\+::buffer\+\_\+pos}}, \mbox{\hyperlink{fopen_8h_source_l00057}{CFTYPE\+\_\+\+CURL}}, \mbox{\hyperlink{fopen_8h_source_l00056}{CFTYPE\+\_\+\+FILE}}, \mbox{\hyperlink{fopen_8h_a61eb2fbb79b1d44fffa49dd0a194e09b}{fcurl\+\_\+data\+::handle}}, and \mbox{\hyperlink{fopen_8h_source_l00061}{fcurl\+\_\+data\+::type}}.

\Hypertarget{fopen_8c_a136dc33c053055258c690193177cc0af}\label{fopen_8c_a136dc33c053055258c690193177cc0af} 
\index{fopen.c@{fopen.c}!url\_rewind@{url\_rewind}}
\index{url\_rewind@{url\_rewind}!fopen.c@{fopen.c}}
\doxysubsubsection{\texorpdfstring{url\_rewind()}{url\_rewind()}}
{\footnotesize\ttfamily void url\+\_\+rewind (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{fopen_8h_a8c81a077422f5e2410ba71eb75108f6e}{URL\+\_\+\+FILE}} \texorpdfstring{$\ast$}{*}}]{file }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{fopen_8c_source_l00393}{393}} of file \mbox{\hyperlink{fopen_8c_source}{fopen.\+c}}.



References \mbox{\hyperlink{fopen_8h_source_l00067}{fcurl\+\_\+data\+::buffer}}, \mbox{\hyperlink{fopen_8h_source_l00068}{fcurl\+\_\+data\+::buffer\+\_\+len}}, \mbox{\hyperlink{fopen_8h_source_l00069}{fcurl\+\_\+data\+::buffer\+\_\+pos}}, \mbox{\hyperlink{fopen_8h_source_l00057}{CFTYPE\+\_\+\+CURL}}, \mbox{\hyperlink{fopen_8h_source_l00056}{CFTYPE\+\_\+\+FILE}}, \mbox{\hyperlink{fopen_8h_a61eb2fbb79b1d44fffa49dd0a194e09b}{fcurl\+\_\+data\+::handle}}, and \mbox{\hyperlink{fopen_8h_source_l00061}{fcurl\+\_\+data\+::type}}.

