0

I'm studying for my final in my Systems programming class, and my notes mention to use standard libraries where possible because they have better portability than system calls, but not WHY. Is this because that system calls vary between operating systems??

Not sure if it affects the answer, but the class uses C and it's run in Linux.

JustinM
  • 1
  • 1

2 Answers2

0

System calls vary a lot between different OS, but be aware that standard librairies can vary too (e.g. different implementations on the same OS).

Rhangaun
  • 1,430
  • 2
  • 15
  • 34
0

system calls vary a lot between different OS but standard libraries expose the same API

Gianluca Ghettini
  • 11,129
  • 19
  • 93
  • 159