On Fri, Nov 30, 2007 at 12:17:25AM +0100, Andreas Schwab wrote: > "Michael Meissner" <[EMAIL PROTECTED]> writes: > > > These system calls are part of the Opengroup standard for UNIX (which Linux > > adheres to), and they have been around for many years. At this point, I > > don't > > recall if they were part of the UNIX V7 that is the ancestor of all modern > > Linux, UNIX, BSD, etc. systems or whether they first appeared in System III > > or > > BSD 4.2 (early 1980's). > > According to <http://www.freebsd.org/cgi/man.cgi> they were already in > V7.
At this stage of the game, it doesn't matter, since they have been around at least 20 years. However, I didn't think the environment varient of the functions (and main's arguments) was added until after V7. > (I don't think V7 had <varargs.h> yet.) By the time I started writing a C compiler for Data General (about 1981), varargs.h was already provided, though I did run into a lot of programs that did it the old fashioned way (take address of last argument, and do pointer arithmetic). This was just one of the many features that made programming in C on the Data General MV/Eclipse such a chore (different flavors of pointers was the main thing, unsigned chars, unsigned shifts, and IBM floating point were some other features). -- Michael Meissner, AMD 90 Central Street, MS 83-29, Boxborough, MA, 01719, USA [EMAIL PROTECTED]