2

Which is the first version of the linux-kernel implementing the system call write? (sys_write)

ncomputers
  • 1,524
  • 1
  • 11
  • 23

3 Answers3

3

As you might expect, given that the write system call is a staple of Unix-style kernels, Linux had it as soon as it was “grown up” enough to be a kernel. You can see its implementation in version 0.01 from 1991.

Stephen Kitt
  • 434,908
2

The yggdrasil tarball from November 1994 has sys_write in /usr/src/linux/fs/read_write.c (actually gzip'd).

That file has this: Copyright (C) 1991, 1992 Linus Torvalds which indicates it was added in 1991 or 1992. There was no version-control system in use at that time, so details are scarce.

Thomas Dickey
  • 76,765
  • the source file of the file you mendtion has this: Copyright (C) 1991, 1992 Linus Torvalds do you have any idea of which version could it be? – ncomputers Oct 31 '16 at 00:42
  • 1
    not offhand (and there was no version-control system in use at that time, so details are scarce) – Thomas Dickey Oct 31 '16 at 00:44
  • ok, thank you very very much! would you mind if i add some info to your answers or do you prefer to do it instead of me? i would like to talk about the fact that the file you did mention has that copyright leyend, what suggest that sys_write was introduced during those years ... – ncomputers Oct 31 '16 at 00:51
  • go ahead (I have to leave for now) – Thomas Dickey Oct 31 '16 at 00:52
2

At the risk of repeating information that is undoubtedly documented in a million places:

“Unix Version 6” (or “Unix Sixth Edition”) was the first version of Unix released outside of AT&T Bell Laboratories (the birthplace of Unix).  I know this happened by 1975 at the latest.  I know nothing about versions before that.  (Chronology note: “Version 7”, naturally, came shortly after “Version 6”.  Then “System III” and “System V” came long after that.)

The write system call was present in Unix Version 6.  Here is the write(II) man page from Unix Version 6; note that it is dated 8/5/73.  Here is an index of all the man pages.

Linux was announced in 1991; see, for example, WikipediaThis answer to the U&L question Is it true that the first version of Linux was based on parts of Unix? claims that Linus Torvalds based the Linux system calls on the Unix man pages, saying that this information comes from the book Just for Fun.

So, the write system call was in Unix long before Linux existed.