mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* io.c (rb_f_syscall): Add warning messages. [ruby-core:34062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									da235830b5
								
							
						
					
					
						commit
						b1f8bbf4f7
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		|  | @ -1,3 +1,7 @@ | ||||||
|  | Thu Jan 13 00:06:38 2011  KOSAKI Motohiro  <kosaki.motohiro@gmail.com> | ||||||
|  | 
 | ||||||
|  | 	* io.c (rb_f_syscall): Add warning messages. [ruby-core:34062] | ||||||
|  | 
 | ||||||
| Thu Jan 13 00:00:07 2011  KOSAKI Motohiro  <kosaki.motohiro@gmail.com> | 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. | 	* io.c (rb_f_syscall): Some syscall return unsigned or pointer value. | ||||||
|  |  | ||||||
							
								
								
									
										4
									
								
								io.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								io.c
									
										
									
									
									
								
							|  | @ -7858,6 +7858,10 @@ rb_f_syscall(int argc, VALUE *argv) | ||||||
|     int num, retval = -1; |     int num, retval = -1; | ||||||
| #endif | #endif | ||||||
|     int i; |     int i; | ||||||
|  |   | ||||||
|  |     if (RTEST(ruby_verbose)) { | ||||||
|  | 	rb_warning("We plan to remove a syscall function at future release. DL(Fiddle) provides safer alternative."); | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     rb_secure(2); |     rb_secure(2); | ||||||
|     if (argc == 0) |     if (argc == 0) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kosaki
						kosaki