1 /*- 2 * Copyright (c) 1980 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)ierrno_.c 5.2 (Berkeley) 04/12/91"; 10 #endif /* not lint */ 11 12 /* 13 * return the current value of the system error register 14 * 15 * calling sequence: 16 * ier = ierrno() 17 * where: 18 * ier will receive the current value of errno 19 */ 20 21 extern int errno; 22 23 long ierrno_() 24 { 25 return((long)errno); 26 } 27