(system-error-errno): New.
authorMarius Vollmer <mvo@zagadka.de>
Sat, 16 Jun 2001 20:14:24 +0000 (20:14 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Sat, 16 Jun 2001 20:14:24 +0000 (20:14 +0000)
ice-9/boot-9.scm

index cad2a85..bc6aff0 100644 (file)
     (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))
+
 \f
 ;;; {Error Handling}
 ;;;