File: __syscall_error.c

package info (click to toggle)
uclibc 0.9.32-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 32,852 kB
  • ctags: 56,398
  • sloc: ansic: 272,839; asm: 36,764; cpp: 4,120; makefile: 3,928; sh: 1,086; pascal: 702; perl: 652; yacc: 588; lex: 359; awk: 78
file content (18 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Wrapper for setting errno.
 *
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

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

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