Binder错误码

本文详细解析了常见的系统调用错误代码,如操作不被允许(EPERM)、找不到文件或目录(ENOENT)、找不到进程(ESRCH)等,涵盖了从权限错误到设备错误的一系列情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

695{ "BR_OK", 0x00007201 },
696{ "BR_DEAD_REPLY", 0x00007205 },
697{ "BR_TRANSACTION_COMPLETE", 0x00007206 },
698{ "BR_NOOP", 0x0000720c },
699{ "BR_SPAWN_LOOPER", 0x0000720d },
700{ "BR_FINISHED", 0x0000720e },
701{ "BR_FAILED_REPLY", 0x00007211 },




4#define	EPERM		 1	/* Operation not permitted */
5#define	ENOENT		 2	/* No such file or directory */
6#define	ESRCH		 3	/* No such process */
7#define	EINTR		 4	/* Interrupted system call */
8#define	EIO		 5	/* I/O error */
9#define	ENXIO		 6	/* No such device or address */
10#define	E2BIG		 7	/* Argument list too long */
11#define	ENOEXEC		 8	/* Exec format error */
12#define	EBADF		 9	/* Bad file number */
13#define	ECHILD		10	/* No child processes */
14#define	EAGAIN		11	/* Try again */
15#define	ENOMEM		12	/* Out of memory */
16#define	EACCES		13	/* Permission denied */
17#define	EFAULT		14	/* Bad address */
18#define	ENOTBLK		15	/* Block device required */
19#define	EBUSY		16	/* Device or resource busy */
20#define	EEXIST		17	/* File exists */
21#define	EXDEV		18	/* Cross-device link */
22#define	ENODEV		19	/* No such device */
23#define	ENOTDIR		20	/* Not a directory */
24#define	EISDIR		21	/* Is a directory */
25#define	EINVAL		22	/* Invalid argument */
26#define	ENFILE		23	/* File table overflow */
27#define	EMFILE		24	/* Too many open files */
28#define	ENOTTY		25	/* Not a typewriter */
29#define	ETXTBSY		26	/* Text file busy */
30#define	EFBIG		27	/* File too large */
31#define	ENOSPC		28	/* No space left on device */
32#define	ESPIPE		29	/* Illegal seek */
33#define	EROFS		30	/* Read-only file system */
34#define	EMLINK		31	/* Too many links */
35#define	EPIPE		32	/* Broken pipe */
36#define	EDOM		33	/* Math argument out of domain of func */
37#define	ERANGE		34	/* Math result not representable */
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值