tkernel_2/lib/libsys/src/setlogmask.c | bare source | permlink (0.02 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * T-Kernel 2.0 Software Package 4: * 5: * Copyright 2011 by Ken Sakamura. 6: * This software is distributed under the latest version of T-License 2.x. 7: *---------------------------------------------------------------------- 8: * 9: * Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17. 10: * Modified by T-Engine Forum at 2013/02/28. 11: * Modified by TRON Forum(http://www.tron.org/) at 2015/06/01. 12: * 13: *---------------------------------------------------------------------- 14: */ 15: 16: /* 17: * setlogmask.c (libsys) 18: */ 19: 20: #include <sys/syslog.h> 21: 22: extern int __logmask; 23: 24: int setlogmask(int maskpri) 25: { 26: int old_logmask; 27: 28: old_logmask = __logmask; 29: __logmask = maskpri; 30: return(old_logmask); 31: }