⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dl-syscalls.h

📁 ucLinux is a very good embeded sytem. Most of company use this as their development OS.
💻 H
字号:
/* We can't use the real errno in ldso, since it has not yet * been dynamicly linked in yet. */extern int _dl_errno;#define __set_errno(X) {(_dl_errno) = (X);}#include "sys/syscall.h"#undef __syscall_return#define __syscall_return(type, res)					\do {									\	/*								\	 * Note: when returning from kernel the return value is in r9	\	 *								\	 * This prevents conflicts between return value and arg1	\	 * when dispatching signal handler, in other words makes	\	 * life easier in the system call epilogue (see entry.S)	\	 */								\	register unsigned long __sr2 __asm__ ("r2") = res;		\	if ((unsigned long)(res) >= (unsigned long)(-125)) {		\		_dl_errno = -(res);					\		__sr2 = -1;						\	}								\	return (type)(__sr2);						\} while (0)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -