From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [RFC] syslog interface Date: Thu, 27 May 2010 20:49:07 +0300 Message-ID: <83zkzlme0c.fsf@gnu.org> References: <20100527.141847.482451220872211521.yamato@redhat.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1274982552 30443 80.91.229.12 (27 May 2010 17:49:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 May 2010 17:49:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Masatake YAMATO Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 27 19:49:11 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OHhCg-0006Xi-V8 for ged-emacs-devel@m.gmane.org; Thu, 27 May 2010 19:49:11 +0200 Original-Received: from localhost ([127.0.0.1]:48373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHhCg-0008Ns-CN for ged-emacs-devel@m.gmane.org; Thu, 27 May 2010 13:49:10 -0400 Original-Received: from [140.186.70.92] (port=35344 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHhCa-0008Ks-CH for emacs-devel@gnu.org; Thu, 27 May 2010 13:49:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHhCZ-0000SJ-EQ for emacs-devel@gnu.org; Thu, 27 May 2010 13:49:04 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:55832) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHhCZ-0000Ru-7J for emacs-devel@gnu.org; Thu, 27 May 2010 13:49:03 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L3300L00AROVD00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 27 May 2010 20:49:01 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.111.84]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L3300ELAATOP0I0@a-mtaout20.012.net.il>; Thu, 27 May 2010 20:49:01 +0300 (IDT) In-reply-to: <20100527.141847.482451220872211521.yamato@redhat.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125306 Archived-At: > Date: Thu, 27 May 2010 14:18:47 +0900 (JST) > From: Masatake YAMATO > > My idea is using syslog implemention in libc; > it handles the protocol, and we can expect it is maintained well. If > the protocol is changed the libc maintainer will update the function. > As the result we can use/maintain syslog interfae from elisp without > worrying about the protocol changing. > > Here is sample implemention. It comes from two parts: syslog.el and a patch > for emacs. IMHO, this syslog.el is too specific to the single platform on which it was coded. It should be more portable: not to expose highly system-dependent constants, for example. All this unportable stuff should be inside the primitive, because the primitive will have to be implemented for every platform that has its own syslog facility and API. See proced.el for an example of another similar facility, and the primitives it uses.