Searched refs:set_errno (Results 1 – 25 of 68) sorted by relevance
123
100 set_errno(-ret); in file_read()130 set_errno(EINVAL); in read()155 set_errno(ENOMEM); in read()166 set_errno(EFAULT); in read()178 set_errno(EBADF); in read()191 set_errno(EBADF); in read()209 set_errno(EBADF); in read()
105 set_errno(err); in file_write()181 set_errno(ENOMEM); in write()187 set_errno(EFAULT); in write()199 set_errno(EBADF); in write()214 set_errno(EBADF); in write()228 set_errno(EBADF); in write()
231 set_errno(EBADF); in fdesc_poll()282 set_errno(EINVAL); in query_fds()291 set_errno(EBADF); in query_fds()300 set_errno(-ret); in query_fds()412 set_errno(ENOMEM); in poll()509 set_errno(temp); in poll()513 set_errno(-ret); in poll()
98 set_errno(-err); in file_truncate64()147 set_errno(EBADF); in ftruncate64()165 set_errno(EBADF); in ftruncate64()
94 set_errno(errcode); in file_pwrite()142 set_errno(-ret); in pwrite()148 set_errno(EBADF); in pwrite()
94 set_errno(errcode); in file_pread()138 set_errno(-ret); in pread()144 set_errno(EBADF); in pread()
84 set_errno(err); in file_truncate()133 set_errno(EBADF); in ftruncate()152 set_errno(EBADF); in ftruncate()
122 set_errno(ENOMEM); in sendfile()166 set_errno(errcode); in sendfile()228 set_errno(errcode); in sendfile()
230 set_errno(err); in file_vfcntl()309 set_errno(ret); in fcntl()369 set_errno(reval); in fcntl64()
66 set_errno(EBADF); /* When net_dupsd2 is still closed,errno should set */ in dup2()73 set_errno(EBADF); in dup2()
82 set_errno(EBADF); /* When net_dupsd is still closed,errno should set */ in dup()91 set_errno(EBADF); in dup()
110 set_errno(EINVAL); in do_select()148 set_errno(ENOMEM); in do_select()179 set_errno(EINVAL); in do_select()
84 set_errno(EBADF); in file_dup()93 set_errno(EMFILE); in file_dup()
109 set_errno(errcode); in file_pread64()158 set_errno(EBADF); in pread64()
109 set_errno(errcode); in file_pwrite64()162 set_errno(EBADF); in pwrite64()
151 set_errno(-ret); in do_unlink()199 set_errno(-ret); in unlinkat()
128 set_errno(EPERM); in distributed_net_sendto()137 set_errno(EPERM); in distributed_net_sendto()173 set_errno(EPERM); in distributed_net_sendmsg()182 set_errno(EPERM); in distributed_net_sendmsg()211 set_errno(ENOMEM); in distributed_net_recvfrom()238 set_errno(EINVAL); in distributed_net_recvfrom()
50 set_errno(EMSGSIZE); in get_msg_data_len()55 set_errno(EMSGSIZE); in get_msg_data_len()66 set_errno(EMSGSIZE); in udp_transmit_sendto()117 set_errno(ENOMEM); in udp_transmit_sendmsg()
23 self.assertEqual(set_errno(32), errno.ENOENT)27 set_errno(0)43 set_errno(0)
107 set_errno(ret); in __readdir()111 set_errno(ENOENT); in __readdir()175 set_errno(old_err); in readdir()
58 set_errno(EBADF); in rewinddir()75 set_errno(ENOSYS); in rewinddir()
129 set_errno(EBADF); in seekdir()135 set_errno(EINVAL); in seekdir()
147 set_errno(-ret); in opendir()253 set_errno(-ret); in do_opendir()
94 #ifndef set_errno95 #define set_errno(err) do { if (err) { errno = (err); } } while(0) macro
291 set_errno(sockerr); \494 set_errno(EBADF); in get_socket()827 set_errno(0); in lwip_close_internal()1333 set_errno(EOPNOTSUPP); return -1;); in lwip_recvmsg()1336 set_errno(EMSGSIZE); in lwip_recvmsg()1791 set_errno(EINVAL); in lwip_socket()1797 set_errno(ENOBUFS); in lwip_socket()1805 set_errno(ENFILE); in lwip_socket()1811 set_errno(0); in lwip_socket()2057 set_errno(EINVAL); in lwip_select()[all …]