The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: wkt@tuhs.org (Warren Toomey)
Subject: [TUHS] 1st Edition UNIX syscalls
Date: Thu, 29 May 2008 21:15:23 +1000	[thread overview]
Message-ID: <20080529111523.GA63186@minnie.tuhs.org> (raw)
In-Reply-To: <20080518075820.GA75584@minnie.tuhs.org>

A while back I wrote about the system calls in 1st Edition UNIX. I was idly
wondering how much of 1st Ed (and prior) still existed in modern UNIXes.
Obviously, with the change of language from assembly to C, we won't be able
to find identical lines, but the enumeration of system calls, for example,
is one way to spot the lineage:

1st Edition   Open Solaris [1]
==============================
V1_RELE    0	indir
V1_EXIT    1	rexit
V1_FORK    2	forkall
V1_READ    3	read
V1_WRITE   4	write
V1_OPEN    5	open
V1_CLOSE   6	close
V1_WAIT    7	wait
V1_CREAT   8	creat
V1_LINK    9	link
V1_UNLINK  10	unlink
V1_EXEC    11	exec
V1_CHDIR   12	chdir
V1_TIME    13	gtime
V1_MKDIR   14	mknod
V1_CHMOD   15	chmod
V1_CHOWN   16	chown
V1_BREAK   17	brk
V1_STAT    18	stat
V1_SEEK    19	lseek32 or lseek64
V1_TELL    20	getpid
V1_MOUNT   21	mount
V1_UMOUNT  22	umount
V1_SETUID  23	setuid
V1_GETUID  24	getuid
V1_STIME   25	stime
V1_QUIT    26	pcsample
V1_INTR    27	alarm
V1_FSTAT   28	fstat
V1_CEMT    29	pause
V1_SMDATE  30	utime
V1_STTY    31	stty
V1_GTTY    32	gtty
V1_ILGINS  33	access

Quite a surprising similarity after nearly 4 decades.

Cheers,
	Warren

[1] http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/os/sysent.c



      reply	other threads:[~2008-05-29 11:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-18  7:58 Warren Toomey
2008-05-29 11:15 ` Warren Toomey [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080529111523.GA63186@minnie.tuhs.org \
    --to=wkt@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).