Lines Matching refs:sip
206 struct tool_mime *sip = (struct tool_mime *) arg; in tool_mime_stdin_read() local
210 if(sip->size >= 0) { in tool_mime_stdin_read()
211 if(sip->curpos >= sip->size) in tool_mime_stdin_read()
213 bytesleft = sip->size - sip->curpos; in tool_mime_stdin_read()
218 if(sip->data) { in tool_mime_stdin_read()
220 memcpy(buffer, sip->data + curlx_sotouz(sip->curpos), nitems); in tool_mime_stdin_read()
227 if(sip->config) { in tool_mime_stdin_read()
228 warnf(sip->config, "stdin: %s", strerror(errno)); in tool_mime_stdin_read()
229 sip->config = NULL; in tool_mime_stdin_read()
234 sip->curpos += uztoso(nitems); in tool_mime_stdin_read()
241 struct tool_mime *sip = (struct tool_mime *) instream; in tool_mime_stdin_seek() local
245 offset += sip->curpos; in tool_mime_stdin_seek()
248 offset += sip->size; in tool_mime_stdin_seek()
253 if(!sip->data) { in tool_mime_stdin_seek()
254 if(fseek(stdin, (long) (offset + sip->origin), SEEK_SET)) in tool_mime_stdin_seek()
257 sip->curpos = offset; in tool_mime_stdin_seek()