Copyrighting trivial code

Roy Smith roy at phri.UUCP
Wed Jan 21 15:04:45 AEST 1987


	While perusing /usr/src on my new 4.3BSD tapes, I ran across
"pagesize.c".  This little gem consists of 15 or so lines of copyright
notice and SCCS information, and a main() routine which has a 1-line body.
The code contained in the body is (how do I say this without violating the
copyright?) a call to a well-known standard I/O output routine with two
arguments, the first of which specifies decimal conversion, the second of
which is a system call to get the page size.

	The obvious question is whether the copyright notice means
anything.  Can one really copyright something which is so straightforward,
trivial, and obvious?  If you gave the assignment "write a C program which
prints the system page size in decimal to stdout" to 50 programmers, most
of them would come up with substantially the same program, and many would
probably be identical, character for character, to the 4.3 version.  If the
copyright is valid, then any program I write which has that line of code,
or a similar line of code, in it would be a derivitive work.  Clearly this
is absurd.

	The real question is where does this end?  If you write a 500 line
program, and I come along and use your 500 lines of code in a program I
wrote, making some minor textual changes, like adding extra whitespace
around the operators, it would be pretty clear that I violated your
copyright.  On the other hand, I assert that if I use the line of code from
4.3's /usr/src/bin/pagesize.c, unchanged, in a program I write, I havn't
violated any copyright.  Obviously there has to be some point in between
these two extremes which delimits what is OK and what isn't.  Where is that
point?
-- 
Roy Smith, {allegra,cmcl2,philabs}!phri!roy
System Administrator, Public Health Research Institute
455 First Avenue, New York, NY 10016

"you can't spell deoxyribonucleic without unix!"



More information about the Comp.unix.wizards mailing list