This is the mail archive of the
cygwin-patches@sources.redhat.com
mailing list for the Cygwin project.
setlogmask() patch
- To: Cygwin-Patches <cygwin-patches at sources dot redhat dot com>
- Subject: setlogmask() patch
- From: Jason Tishler <Jason dot Tishler at dothill dot com>
- Date: Sun, 21 Jan 2001 22:51:56 -0500
- Organization: Dot Hill Systems Corp.
See attach for (trivial) patch and ChangeLog entry to add back
setlogmask() to Cygwin. Note that I followed the other syslog exports
and exported setlogmask() as _setlogmask() too. I don't know if this
was correct.
To apply the patch, use the following:
$ cd src/winsup/cygwin
$ # save attached patch to /tmp
$ patch </tmp/setlogmask.patch
Jason
--
Jason Tishler
Director, Software Engineering Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp. Fax: +1 (732) 264-8798
82 Bethany Road, Suite 7 Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
Index: cygwin.din
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/cygwin.din,v
retrieving revision 1.18
diff -u -r1.18 cygwin.din
--- cygwin.din 2000/12/27 00:13:57 1.18
+++ cygwin.din 2001/01/22 03:35:51
@@ -972,6 +972,8 @@
_closelog = closelog
openlog
_openlog = openlog
+setlogmask
+_setlogmask = setlogmask
vhangup
_vhangup = vhangup
nice
Index: syslog.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/syslog.cc,v
retrieving revision 1.10
diff -u -r1.10 syslog.cc
--- syslog.cc 2000/11/17 11:30:14 1.10
+++ syslog.cc 2001/01/22 03:35:52
@@ -85,8 +85,6 @@
/* setlogmask: set the log priority mask and return previous mask.
If maskpri is zero, just return previous. */
-#if 0
-/* FIXME: nobody calls setlogmask? */
int
setlogmask (int maskpri)
{
@@ -98,7 +96,6 @@
return old_mask;
}
-#endif
/* Private class used to handle formatting of syslog message */
/* It is named pass_handler because it does a two-pass handling of log
Sun Jan 21 22:40:25 2001 Jason Tishler <jt@dothill.com>
* cygwin.din: Add export for setlogmask().
* syslog.cc: Add (back) setlogmask().