tftpfile 259 lib/libsa/tftp.c struct tftp_handle *tftpfile; tftpfile 263 lib/libsa/tftp.c tftpfile = (struct tftp_handle *) alloc(sizeof(*tftpfile)); tftpfile 264 lib/libsa/tftp.c if (tftpfile == NULL) tftpfile 267 lib/libsa/tftp.c tftpfile->iodesc = io = socktodesc(*(int *) (f->f_devdata)); tftpfile 269 lib/libsa/tftp.c tftpfile->off = 0; tftpfile 270 lib/libsa/tftp.c tftpfile->path = path; /* XXXXXXX we hope it's static */ tftpfile 272 lib/libsa/tftp.c res = tftp_makereq(tftpfile); tftpfile 275 lib/libsa/tftp.c free(tftpfile, sizeof(*tftpfile)); tftpfile 278 lib/libsa/tftp.c f->f_fsdata = (void *) tftpfile; tftpfile 285 lib/libsa/tftp.c struct tftp_handle *tftpfile; tftpfile 289 lib/libsa/tftp.c tftpfile = (struct tftp_handle *) f->f_fsdata; tftpfile 295 lib/libsa/tftp.c needblock = tftpfile->off / SEGSIZE + 1; tftpfile 297 lib/libsa/tftp.c if (tftpfile->currblock > needblock) { /* seek backwards */ tftpfile 299 lib/libsa/tftp.c tftp_terminate(tftpfile); tftpfile 302 lib/libsa/tftp.c tftp_makereq(tftpfile); tftpfile 305 lib/libsa/tftp.c while (tftpfile->currblock < needblock) { tftpfile 312 lib/libsa/tftp.c res = tftp_getnextblock(tftpfile); tftpfile 316 lib/libsa/tftp.c tftpfile->currblock, needblock); tftpfile 320 lib/libsa/tftp.c if (tftpfile->islastblock) tftpfile 324 lib/libsa/tftp.c if (tftpfile->currblock == needblock) { tftpfile 327 lib/libsa/tftp.c offinblock = tftpfile->off % SEGSIZE; tftpfile 329 lib/libsa/tftp.c inbuffer = tftpfile->validsize - offinblock; tftpfile 333 lib/libsa/tftp.c tftpfile->off); tftpfile 338 lib/libsa/tftp.c bcopy(tftpfile->lastdata.t.th_data + offinblock, tftpfile 342 lib/libsa/tftp.c tftpfile->off += count; tftpfile 345 lib/libsa/tftp.c if ((tftpfile->islastblock) && (count == inbuffer)) tftpfile 364 lib/libsa/tftp.c struct tftp_handle *tftpfile; tftpfile 365 lib/libsa/tftp.c tftpfile = (struct tftp_handle *) f->f_fsdata; tftpfile 370 lib/libsa/tftp.c tftp_terminate(tftpfile); tftpfile 373 lib/libsa/tftp.c free(tftpfile, sizeof(*tftpfile)); tftpfile 386 lib/libsa/tftp.c struct tftp_handle *tftpfile; tftpfile 387 lib/libsa/tftp.c tftpfile = (struct tftp_handle *) f->f_fsdata; tftpfile 401 lib/libsa/tftp.c struct tftp_handle *tftpfile; tftpfile 402 lib/libsa/tftp.c tftpfile = (struct tftp_handle *) f->f_fsdata; tftpfile 406 lib/libsa/tftp.c tftpfile->off = offset; tftpfile 409 lib/libsa/tftp.c tftpfile->off += offset; tftpfile 416 lib/libsa/tftp.c return (tftpfile->off);