Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why create system call is called creat? [closed]

Tags:

c

linux

unix

posix

Why create system call is called creat?

Also, why a define for a buffer size is called BUFSIZ and not BUFSIZE?

Are there any other such examples?

Related: (taken from comments)
What did Ken Thompson mean when he said, “I'd spell create with an 'e'.”

like image 286
Roman Byshko Avatar asked Dec 05 '11 19:12

Roman Byshko


1 Answers

From LSP (page 28):

Yes, this function’s name is missing an e. Ken Thompson, the creator of Unix, once joked that the missing letter was his largest regret in the design of Unix.

like image 63
cnicutar Avatar answered Sep 28 '22 08:09

cnicutar