unlock_user(p1, arg1, 0); \
} while (0)
-extern struct iovec *lock_iovec(int type, abi_ulong target_addr, int count,
- int copy);
-extern void unlock_iovec(struct iovec *vec, abi_ulong target_addr, int count,
- int copy);
+struct iovec *lock_iovec(int type, abi_ulong target_addr, int count, int copy);
+void unlock_iovec(struct iovec *vec, abi_ulong target_addr, int count, int copy);
int safe_open(const char *path, int flags, mode_t mode);
int safe_openat(int fd, const char *path, int flags, mode_t mode);
}
/* close(2) */
-static inline abi_long do_bsd_close(abi_long arg1)
+static abi_long do_bsd_close(abi_long arg1)
{
return get_errno(close(arg1));
}