Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jul 2005 23:39:30 +0900
From:      "R. Imura" <imura@ryu16.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        freebsd-hackers@FreeBSD.org, Jilles Tjoelker <jilles@stack.nl>
Subject:   Re: what(1) on kernel binary
Message-ID:  <20050701143930.GA54441%imura@ryu16.org>
In-Reply-To: <200507010940.13672.jhb@FreeBSD.org>
References:  <20050620152649.GA1201@stack.nl> <20050701053937.GA40965%imura@ryu16.org> <200507010940.13672.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Fri, Jul 01, 2005 at 09:40:12AM -0400, John Baldwin wrote:
> does sccs[] only need to include the version up to the first \n?  bde@ noticed 
> that what seemed to stop once it hit \n.

what.c says like this.

	while ((c = getchar()) != EOF && c && c != '"' &&
	    c != '>' && c != '\\' && c != '\n')
		putchar(c);

According to cvs repo, \n is a terminater since 4.4BSD Lite.
I don't know before 4.4BSD Lite.
I don't know about sccs neither.

Regards,
- R. Imura



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050701143930.GA54441%imura>