what(1) on kernel binary

R. Imura imura at ryu16.org
Fri Jul 1 14:39:33 GMT 2005


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')

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.

- R. Imura

More information about the freebsd-hackers mailing list