audio/alsaaudio: use g_new0() instead of audio_calloc()
[qemu/ar7.git] / common-user / safe-syscall-error.c
blobcf74b504f870223c6cdebc34366333e64f88d3f6
1 /*
2 * safe-syscall-error.c: errno setting fragment
3 * This is intended to be invoked by safe-syscall.S
5 * Written by Richard Henderson <rth@twiddle.net>
6 * Copyright (C) 2021 Red Hat, Inc.
8 * This work is licensed under the terms of the GNU GPL, version 2 or later.
9 * See the COPYING file in the top-level directory.
12 #include "qemu/osdep.h"
13 #include "user/safe-syscall.h"
16 * This is intended to be invoked via tail-call on the error path
17 * from the assembly in host/arch/safe-syscall.inc.S. This takes
18 * care of the host specific addressing of errno.
19 * Return -1 to finalize the return value for safe_syscall_base.
21 long safe_syscall_set_errno_tail(int value)
23 errno = value;
24 return -1;