QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
814 B

/*
* miscellaneous BSD system call shims
*
* Copyright (c) 2013 Stacey D. Son
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef BSD_MISC_H
#define BSD_MISC_H
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/sem.h>
#include <sys/uuid.h>
#include "qemu-bsd.h"
/* quotactl(2) */
static inline abi_long do_bsd_quotactl(abi_ulong path, abi_long cmd,
__unused abi_ulong target_addr)
{
qemu_log("qemu: Unsupported syscall quotactl()\n");
return -TARGET_ENOSYS;
}
/* reboot(2) */
static inline abi_long do_bsd_reboot(abi_long how)
{
qemu_log("qemu: Unsupported syscall reboot()\n");
return -TARGET_ENOSYS;
}
/* getdtablesize(2) */
static inline abi_long do_bsd_getdtablesize(void)
{
return get_errno(getdtablesize());
}
#endif /* BSD_MISC_H */