mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 08:26:29 +00:00 
			
		
		
		
	 62e5b05db6
			
		
	
	
		62e5b05db6
		
	
	
	
	
		
			
			Add comment for errnos related to restart syscall to avoid the leakage of them to user programs. Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Cc: Oleg Nesterov <oleg@tv-sign.ru> Acked-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
		
			
				
	
	
		
			35 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _LINUX_ERRNO_H
 | |
| #define _LINUX_ERRNO_H
 | |
| 
 | |
| #include <asm/errno.h>
 | |
| 
 | |
| #ifdef __KERNEL__
 | |
| 
 | |
| /*
 | |
|  * These should never be seen by user programs.  To return one of ERESTART*
 | |
|  * codes, signal_pending() MUST be set.  Note that ptrace can observe these
 | |
|  * at syscall exit tracing, but they will never be left for the debugged user
 | |
|  * process to see.
 | |
|  */
 | |
| #define ERESTARTSYS	512
 | |
| #define ERESTARTNOINTR	513
 | |
| #define ERESTARTNOHAND	514	/* restart if no handler.. */
 | |
| #define ENOIOCTLCMD	515	/* No ioctl command */
 | |
| #define ERESTART_RESTARTBLOCK 516 /* restart by calling sys_restart_syscall */
 | |
| 
 | |
| /* Defined for the NFSv3 protocol */
 | |
| #define EBADHANDLE	521	/* Illegal NFS file handle */
 | |
| #define ENOTSYNC	522	/* Update synchronization mismatch */
 | |
| #define EBADCOOKIE	523	/* Cookie is stale */
 | |
| #define ENOTSUPP	524	/* Operation is not supported */
 | |
| #define ETOOSMALL	525	/* Buffer or request is too small */
 | |
| #define ESERVERFAULT	526	/* An untranslatable error occurred */
 | |
| #define EBADTYPE	527	/* Type not supported by server */
 | |
| #define EJUKEBOX	528	/* Request initiated, but will not complete before timeout */
 | |
| #define EIOCBQUEUED	529	/* iocb queued, will get completion event */
 | |
| #define EIOCBRETRY	530	/* iocb queued, will trigger a retry */
 | |
| 
 | |
| #endif
 | |
| 
 | |
| #endif
 |