⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changelog

📁 压缩包中包含LINUX下多个命令的源码
💻
📖 第 1 页 / 共 2 页
字号:
2002-04-29  Alfred M. Szmidt  <ams@kemisten.nu>	* syslogd.c <version.h>: Include removed.	(inetutils_package): Renamed to PACKAGE_NAME.	(inetutils_version): Renamed to PACKAGE_VERSION.	(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.2002-04-21  Alfred M. Szmidt <ams@kemisten.nu>	* Makefile.am (inetdaemon_PROGRAMS): Use syslogd_BUILD instead of	BUILD_SYSLOGD.2002-03-05  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c (main): New variables KLINE and KLINE_LEN, to store	partial lines from the kernel log device.  Collect partial lines	until we either have a maximum partial line or a full line.  Log	that, and all following lines collected so far, and in the case of	the maximum partial line skip the remainder of the current line.	Reported by Davin McCall <davmac@iname.com>.2002-02-10  Jeff Bailey  <jbailey@outpost.dnsalias.org>	* Makefile.am: Add -I$(top_builddir)/include to INCLUDES2001-11-21  Sergey Poznyakoff	* syslogd.c: Removed redeclaration of hstrerror: it is	provided in include/config.h when missing.2001-10-25  Alain Magloire	* syslogd/syslogd.c:  Use the same code in talkd/talkd.c to handle	utmp vs utmpx.	(wallmesg):  Use the macros when manipulating utmp functions.2001-01-31  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c (usage): Add missing parentheses in help text.2000-11-25  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c (main): Give reason for failure of waitdaemon.	(add_funix): Print program name and reason for failure in error	message.2000-10-30  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c: Remove PROGRAM, declare __PROGNAME.	Prototype waitdaemon(). Remove COPYRIGHT (it's in the	comment at the top). Replace "#ifndef lint" with "#if 0"	for SCCSID to avoid gcc warning.	(main): Initialize __PROGNAME if not HAVE___PROGNAME.	Use __PROGNAME instead PROGRAM.	(usage): Likewise.	(crunch_list): Likewise.	(die): Likewise.2000-08-16  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c (usage): If err != 0, print Usage: ... line to stdout.	Uppercase all sentences.	(main): Fix indentation in while condition and add a newline after	a break statement.	2000-08-13  Alain Magloire	* syslogd.c (main): Error in the code the inet file descriptor	was not initialize correctely.2000-08-13  Alain Magloire	* syslogd.c (main):  New variable short_options.	Removed of reap_child() and SIGCHLD signal handler.	ttymsg() now double fork() and do itself the waitpid()	to clean up.	Remove all those little loops that uses tolower()	to bring the string to loser case for a comparison	and use strcasecmp() when comparison are needed.2000-08-11  Alain Magloire	* syslogd.c: Include unconditionnaly <utmpx.h> and	<poll.h>, we (will) provide a stub when the OS is lacking.2000-08-10  Alain Magloire	* syslogd.c (wallmsg):  Only check for the type USER_PROCESS	The others on GNU/Linux generate errors.  And we only need	to alert legitimate users that are login.	* syslogd.c : New option '-S, --sync' to behave like GNU/Linux	syslogd that sync on every line.  Syncing on every lines can	bring a machine to its knees if an application is trying to	be malicious.2000-08-10  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c (main): When -d option is given, set NoDetach to 1.	Only test for !NoDetach when daemonising, and no longer for !Debug.2000-08-09  Marcus Brinkmann  <marcus@gnu.org>	Fix ChangeLog weirdness.	* syslogd.c: "New" prototype reap_childs.	(main): Install SIGCHLD handler.	(reap_childs): Function back. We do fork for blocking I/O.	This time use waitpid unconditionally.2000-08-08  Alain Magloire	* syslogd.c (dbg_printf): [HAVE_STDARG_H][_STDC__] to	palliate for OS not having ANSI C.	[HAVE_UTMPX_H] before including <utmpx.h>.	(usage): Some of the strings where missing newlines.	[IOVCNT]: new macro to define the size of the iovec array.	(fprintlog): Clear the iovec before using it.	(logmsg): get rid of ugly hardcode and use sizeof (f->f_lastime) - 1	intead for the len of the f_lastime string.	(fprintlog): use sizeof(f->lastime) - 1.2000-08-08  Marcus Brinkmann <marcus@gnu.org>	* syslogd.c: Don't prototype reapchild.	(main): Don't install SIGCHLD handler.	(reapchild): Function removed. It is cruft needed for	the linux wallmsg implementation, which we don't useb.2000-08-06  Alain MagloireAdding poll() bring to light that we do the creation of socketsinside init(), this has the unfortunate side effect of close()ingand  recreating the sockets at every SIGHUP.  This was done tospeedup initialization of syslogd, since on GNU/Linux the rc.*files would start klogd also.  This is also the reason for a waitdaemon():"Wed Feb 14 12:42:09 CST 1996:  Dr. WettsteinParent process of syslogd does not exit until child process hasfinished initialization process.  This allows rc.* startup topause until syslogd facility is up and operating."	* syslogd.c (init): Remove call to creation of sockets	and move it to the main() before going in the loop.2000-08-06  Alain Magloire	* syslogd.c (main): Use of poll() instead of select()	for better modularity.2000-08-06  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c (add_funix): New function to add new	unix sockets.2000-08-06  Alain Magloire	* syslogd.c (init): Remove restriction of LINE_MAX	by reallocating the buffer when the line is too long,	by doing this the continuation line feature was more	straightforward.  The downfall is dealing with out of	memory errors.  But the code, so far, does not deal	with this anywhere.	(domark): signo ignored.	(init): signo ignored.	(dbg_toggle): signo ignored.	(trigger_restart): signo ignored.	Remove superfluous initializations of global	and static variables.2000-08-05  Alain MagloireRemove restrictions on options -l, -s, better compliance to GNUcoding rules .i.e no limits in the number of possible open sockets.Code indenting to conform to GNU style.	* syslogd.c: Use ``const'' consistenly for readonly	strings; cfline(), dbg_printf(), logerror(), etc ...	Prototypes/declarations use ``void'' for consistency.	Standardise all function definitions, so ansi2knr could	do its job properly.	(create_inet_socket): Variable ``on'' unuse.	(usage): try_help() and help() merge to usage (int).	usage() is pass an integer and exit(err);	(main): Remove setlinebuf() use setvbuf() only.	(main): Regroup unix sockets and fd's into the same	structure easier to carry. Remove restriction	on 19 + 1 possible open unix sockets.	(crunch_list): Take one more argument, the oldlist	so it can be reallocated for new entries.  This removed	the restrictions of the number of LocalHosts and StripDomains.2000-08-05  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c (help): --no-forward does not override -r,	but -h.	(init): Create inet socket if either AcceptRemote or	Forwarding is true, but with Forwarding only if not	--no-forward was provided. This is less restrictive than	before, where --no-forward would prevent incoming messages	allowed with -r, which was documented but not intended.	* syslogd.8: Document (badly) all the new options from	last change.2000-08-04  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c: In the whole file, change the formatting	to conform to the GNU coding standards. Also clean up	some debug and error messages. All further functional	changes are listed below.	Initialize finet and fklog to -1.	New variables NoKLog, NoUnixAF, NoForward, long_options,	program_name. New symbols USAGE, TTYMSGTIME.	(help): New function.	(try_help): New function.	(usage): Use try_help.	(main): Don't initialize finet, fklog here.	Initialize program_name. Use getopt_long instead getopt.	Handle option '&' (--help). Handle unknown options with try_help	and usage. Handle long options 'P' (--pidfile), 'F' (--no-foward),	'K' (--no-klog), 'U' (--no-unixaf).	Move initialization of tv into the main loop. select meddles with	the timeval on some systems (Linux) and we don't want to take any	risk.	(init): (Re-) Initialize fklog here if not NoKLog.	Only open unix sockets if not NoUnixAF. Failing to open	the primary socket is fatal.	Only open inet socket if not NoForward.	(fprintlog): More diagnostic in case F_FORW: Show debug info	when forwarding is disabled or finet is invalid for other reasons.	(wallmsg): Use TTYMSGTIME instead hard coded default.	(cfline): In case '|' fix nasty bug in if clause.2000-08-03  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c (waitdaemon): Removed.	(timedout): Removed.2000-08-03  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c: If HAVE_SYS_TYPES_H, include <sys/types> for pid_t.	New global variable fklog.	(main): Fix comment. Remove local variables fklog, sunx, sin.	(die): Close fklog if open.	(waitdaemon): Ansify.	(timedout): Likewise. Drop __unused attribute.2000-08-03  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c (waitdaemon, timedout): New prototype and functions	from FreeBSD syslogd (rev 1.66).	(main): Remove conditional MSG_BSIZE on line variable.	New variables tv, tvp, ppid.	Call waitdaemon instead daemon to fork into background.	Before main loop, initialize tv and tvp to zero.	In main loop, pass tvp to select. This will make syslogd return	immediately until we set tvp to NULL.	Check return value of select. If it is zero (no messages),	and tvp is not NULL, set it to NULL and send parent a SIGALRM.	This will be its signal to terminate.2000-08-03  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c: Include <stdarg.h>.	(struct msg_part): Fix type declaration.	(main): Rename variable c to l.	Initialize all of funix, finet to -1.	Remove dangling closing brace.	Main loop: Declare variable nfds.	Pass argument to init.	Add missing parentheses to if-clause.	Back out from using printchopped in unix and inet socket handling,	not only because it doesn't work, but also because it is utterly	nonsense without the S_STREAM patch.	(make_part): Add missing brace.	(die): Add missing variable i.2000-08-03  Marcus Brinkmann  <marcus@gnu.org>This covers the following Linux changes:Thu Jan  6 12:07:36 CST 1994:  Dr. WettsteinAlso thanks to Juha for a patch to exclude users with a classof LOGIN from receiving messages.Mon Oct 12 20:22:59 CEST 1998: Martin Schulze <joey@infodrom.north.de>Added support for setutent()/getutent()/endutend() instead ofbinary reading the UTMP file.  This is the the most portableway.  This allows /var/run/utmp format to change, even to areal database or utmp daemon. Also if utmp file locking isimplemented in libc, syslog will use it immediately.  Thanksto Topi Miettinen <tom@medialab.sonera.net>.	* syslogd.c: Include <utmpx.h> instead <utmp.h>.	(wallmsg): Use pointer to struct utmpx, not struct utmp.	Fix the size of line accoridngly.	Use setutxent instead opening the utmp file ourself.	Use getutxent instead fread.	Don't log to ut_type LOGIN_PROCESS, and don't log to	ut_user LOGIN (paranoia check).	Use ut_user instead ut_name.	Use endutxent instead fclose.2000-08-02  Marcus Brinkmann  <marcus@gnu.org>This is among others the equivalent to the following Linux change:Thu Jan  6 12:07:36 CST 1994:  Dr. WettsteinAdded support for proper decomposition and re-assembly offragment messages on UNIX domain sockets.  Lack of this capabilitywas causing 'partial' messages to be output.  Since facility andpriority information is encoded as a leader on the messages thiswas causing lines to be placed in erroneous files.	* syslogd.c: New symbol INITIAL_PARTS.	New struct msg_part, new global variables parts, nparts.	(get_part): New prototype, new function.	(free_part): Likewise.	(make_part): Likewise.	(printchopped): Likewise.	(main): New variable c. Allocate initial parts table	after installing signal handlers. In main loop,	use c instead i to count through funices. If a read	from a unx domain socket returns 0, close this fd.	Use printchopped instead printline to support partial	messages (a bit messy though).2000-08-02  Marcus Brinkmann  <marcus@gnu.org>	* syslogd.c: Remove global variable InetInuse.	(main): Check finet instead InetInuse.	(fprintlog): Case F_FORW: Only try to forward message	when finet is valid.	(die): Check finet instead InetInuse.	(init): Don't fiddle InetInuse.	(cfline): Case '@': Don't check InetInuse (instead we	check finet in fprintlog, see above).2000-08-02  Marcus Brinkmann  <marcus@gnu.org>	Merged from the Linux source (sysklogd 1.3):	* syslogd.c: New global variable restart.	(main): Main loop: If restart is set, call init()	and reset restart.	Install sighup_handler as SIGHUP handler.	(sighup_handler): New prototype, new function.2000-08-02  Marcus Brinkmann  <marcus@gnu.org>I think this is among others the equivalent to the following Linux change:Mon Feb 23 23:32:35 CET 1998: Topi Miettinen <Topi.Miettinen@ml.tele.fi>Re-worked handling of Unix and UDP sockets to support closing /opening of them in order to have it open only if it is neededeither for forwarding to a remote host or by receiption fromthe network.	* syslogd.c (FDMASK): Removed.	(create_unix_socket): New prototype, new function.	(create_inet_socket): Likewise.	(main): Remove variables funix, inetm, klogm.	Move SUN_LEN and creation of unix domaim sockets/inet socket	to create_*_socket and init().	When opening PATH_KLOG, use fklog to store result.	Main loop: Rediddle code to use a fd_set and FD_*	operations instead an int and bit operations.	New variable maxfds to store highest fd.	Check fklog before checking fklog fd bit.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -