gcc - Disabling system calls in C++ -


is possible disable system calls when compiling c++ code? , if is, how that?

and extend question bit. wish make program not able interact operating system, except file reading , writing. possible this?

edit: not able interact os, mean not able change in os, creating, editing or deleting something. main concern system calls, in cases intended harmful.

this grading programs, running other people code. programs solve various algorithmic problems, there no need advanced features. basic (more or less) stl usage , classic code. there no external libraries (like boost or that) or multiple files.

yes, it's possible.

take @ source code geordi see how it. geordi irc bot compiles, links , runs c++ code under environment system calls disabled.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -