Revert "syscalls: Adjust for glibc 2.34 and later."
This reverts commit 3c8b6fd94c, which
would break bindings on glibc < 2.34 where those symbols are in
"libutil.so".
			
			
This commit is contained in:
		
							parent
							
								
									af4f71318a
								
							
						
					
					
						commit
						c9984bfc50
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -2321,7 +2321,8 @@ always a positive integer."
 | 
				
			||||||
  (terminal-dimension window-size-rows port (const 25)))
 | 
					  (terminal-dimension window-size-rows port (const 25)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define openpty
 | 
					(define openpty
 | 
				
			||||||
  (let ((proc (syscall->procedure int "openpty" '(* * * * *))))
 | 
					  (let ((proc (syscall->procedure int "openpty" '(* * * * *)
 | 
				
			||||||
 | 
					                                  #:library "libutil")))
 | 
				
			||||||
    (lambda ()
 | 
					    (lambda ()
 | 
				
			||||||
      "Return two file descriptors: one for the pseudo-terminal control side,
 | 
					      "Return two file descriptors: one for the pseudo-terminal control side,
 | 
				
			||||||
and one for the controlled side."
 | 
					and one for the controlled side."
 | 
				
			||||||
| 
						 | 
					@ -2342,7 +2343,8 @@ and one for the controlled side."
 | 
				
			||||||
          (values (* head) (* inferior)))))))
 | 
					          (values (* head) (* inferior)))))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define login-tty
 | 
					(define login-tty
 | 
				
			||||||
  (let* ((proc (syscall->procedure int "login_tty" (list int))))
 | 
					  (let* ((proc (syscall->procedure int "login_tty" (list int)
 | 
				
			||||||
 | 
					                                   #:library "libutil")))
 | 
				
			||||||
    (lambda (fd)
 | 
					    (lambda (fd)
 | 
				
			||||||
      "Make FD the controlling terminal of the current process (with the
 | 
					      "Make FD the controlling terminal of the current process (with the
 | 
				
			||||||
TIOCSCTTY ioctl), redirect standard input, standard output and standard error
 | 
					TIOCSCTTY ioctl), redirect standard input, standard output and standard error
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue