diff --git a/ice-9/boot-9.scm b/ice-9/boot-9.scm index cad2a8548..bc6aff060 100644 --- a/ice-9/boot-9.scm +++ b/ice-9/boot-9.scm @@ -481,6 +481,11 @@ (and (> sl sufl) (string=? (substring str (- sl sufl) sl) suffix)))) +(define (system-error-errno args) + (if (eq? (car args) 'system-error) + (car (list-ref args 4)) + #f)) + ;;; {Error Handling} ;;;