summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/kvx/__syscall_error.c
blob: d534ee7d490096b1fbf017f386bb42815732bb7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * This file is subject to the terms and conditions of the LGPL V2.1
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2018 Kalray Inc.
 */

#include <errno.h>
#include <features.h>

/* This routine is jumped to by all the syscall handlers, to stash
 * an error number into errno.  */
long __syscall_error(int err_no) attribute_hidden;
long __syscall_error(int err_no)
{
	__set_errno(-err_no);
	return -1;
}