Lines Matching refs:errno
41 errno = 0;
44 if(errno != EBADF)
45 twarn("Wrong errno %d after sfwrite(%d), expecting %d",errno,rv,EBADF);
47 /* on some system (eg, apple), lseek does not set errno for this case */
48 errno = 0;
50 lseek_errno = errno;
52 errno = 0;
56 if(errno != lseek_errno)
57 twarn("Wrong errno %d after sfseek, expecting %d", errno, lseek_errno);
59 errno = 0;
62 if(errno != EINVAL)
63 twarn("Wrong errno %d after sfseek, expecting %d", errno, EINVAL);
71 errno = 0;
74 if(errno != ESPIPE)
75 twarn("Wrong errno %d after sfseek, expecting %d", ESPIPE);
78 errno = 0;
81 if(errno != EBADF)
82 twarn("Wrong errno %d after sfseek, expecting %d", EBADF);