Lines Matching refs:err
43 int err = -errno; in lfs_filebd_create() local
44 LFS_FILEBD_TRACE("lfs_filebd_create -> %d", err); in lfs_filebd_create()
45 return err; in lfs_filebd_create()
55 int err = close(bd->fd); in lfs_filebd_destroy() local
56 if (err < 0) { in lfs_filebd_destroy()
57 err = -errno; in lfs_filebd_destroy()
58 LFS_FILEBD_TRACE("lfs_filebd_destroy -> %d", err); in lfs_filebd_destroy()
59 return err; in lfs_filebd_destroy()
85 int err = -errno; in lfs_filebd_read() local
86 LFS_FILEBD_TRACE("lfs_filebd_read -> %d", err); in lfs_filebd_read()
87 return err; in lfs_filebd_read()
92 int err = -errno; in lfs_filebd_read() local
93 LFS_FILEBD_TRACE("lfs_filebd_read -> %d", err); in lfs_filebd_read()
94 return err; in lfs_filebd_read()
118 int err = -errno; in lfs_filebd_prog() local
119 LFS_FILEBD_TRACE("lfs_filebd_prog -> %d", err); in lfs_filebd_prog()
120 return err; in lfs_filebd_prog()
125 int err = -errno; in lfs_filebd_prog() local
126 LFS_FILEBD_TRACE("lfs_filebd_prog -> %d", err); in lfs_filebd_prog()
127 return err; in lfs_filebd_prog()
155 int err = FlushFileBuffers((HANDLE) _get_osfhandle(bd->fd)) ? 0 : -1; in lfs_filebd_sync() local
157 int err = fsync(bd->fd); in lfs_filebd_sync() local
159 if (err) { in lfs_filebd_sync()
160 err = -errno; in lfs_filebd_sync()
162 return err; in lfs_filebd_sync()