mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* io.c (rb_f_syscall): Some syscall return unsigned or pointer value.
Therefore we should only check the result is -1 or not. [ruby-core:34062] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									caab5dcee7
								
							
						
					
					
						commit
						da235830b5
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,3 +1,8 @@
 | 
				
			||||||
 | 
					Thu Jan 13 00:00:07 2011  KOSAKI Motohiro  <kosaki.motohiro@gmail.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* io.c (rb_f_syscall): Some syscall return unsigned or pointer value.
 | 
				
			||||||
 | 
						  Therefore we should only check the result is -1 or not. [ruby-core:34062]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Wed Jan 12 23:55:48 2011  KOSAKI Motohiro  <kosaki.motohiro@gmail.com>
 | 
					Wed Jan 12 23:55:48 2011  KOSAKI Motohiro  <kosaki.motohiro@gmail.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* io.c (rb_f_syscall): Add 64bit Linux support. Some syscall takes
 | 
						* io.c (rb_f_syscall): Add 64bit Linux support. Some syscall takes
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										3
									
								
								io.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								io.c
									
										
									
									
									
								
							| 
						 | 
					@ -7931,7 +7931,8 @@ rb_f_syscall(int argc, VALUE *argv)
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (retval < 0) rb_sys_fail(0);
 | 
					    if (retval == -1)
 | 
				
			||||||
 | 
						rb_sys_fail(0);
 | 
				
			||||||
    return RETVAL2NUM(retval);
 | 
					    return RETVAL2NUM(retval);
 | 
				
			||||||
#undef SYSCALL
 | 
					#undef SYSCALL
 | 
				
			||||||
#undef NUM2SYSCALLID
 | 
					#undef NUM2SYSCALLID
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue