Lines Matching refs:err

260 	status_t err = read_ppm_header(inSource, &width, &rowbytes, &height, &max,
262 if (err != B_OK)
263 return err;
313 status_t err = read_ppm_header(inSource, &width, &rowbytes, &height, &max,
320 if (err < B_OK) {
321 dprintf(("read_ppm_header() error %s [%" B_PRIx32 "]\n", strerror(err),
322 err));
323 return err;
332 err = B_OK;
374 err = outDestination->Write(magic, strlen(magic));
375 if (err == (long) strlen(magic))
376 err = 0;
381 err = write_comment(fsComment, outDestination);
382 if (err == B_OK) {
385 err = outDestination->Write(data, strlen(data));
386 if (err == (long) strlen(data))
387 err = 0;
404 err = outDestination->Write(&hdr, sizeof(hdr));
405 dprintf(("PPMTranslator: Write() returns %" B_PRIx32 "\n", err));
414 if (err == sizeof(hdr))
415 err = 0;
418 if (err != B_OK)
419 return err > 0 ? B_IO_ERROR : err;
628 status_t err = B_OK;
632 err = ioExtension->AddInt32(name, g_settings.out_space);
634 return err;
672 // status_t err = B_NO_TRANSLATOR;
818 status_t err = B_OK;
820 while ((ptr < end) && !err) {
822 err = io->Write("# ", 2);
823 if (err == 2) {
824 err = io->Write(str, ptr - str);
825 if (err == ptr - str) {
827 err = 0;
836 err = io->Write("# ", 2);
837 if (err == 2) {
838 err = io->Write(str, ptr - str);
839 if (err == ptr - str) {
841 err = 0;
845 if (err > 0)
846 err = B_IO_ERROR;
847 return err;
855 status_t err;
860 while ((err = in->Read(&ch, 1)) == 1) {
958 status_t err = B_OK;
960 while ((height-- > 0) && !err) {
962 err = read_ascii_line(&inBuffer, max, data, rowbytes);
964 err = inBuffer.Read(data, rowbytes);
965 if (err == rowbytes)
966 err = B_OK;
970 if (err == B_OK) {
973 err = convert_space(
977 if (!err && out_ascii) {
978 err = write_ascii_line(out, wbuf, out_rowbytes);
979 } else if (!err) {
980 err = out->Write(wbuf, out_rowbytes);
981 if (err == out_rowbytes)
982 err = B_OK;
989 return err > 0 ? B_IO_ERROR : err;