I'm having some trouble opening and writing an existing file with a syscall. The syscall is set up correctly. The syscall itself takes in a file name as a char* but I keep getting errors
linux-2.6.22.19/mycall/mycall.c:24: undefined reference to `open'
linux-2.6.22.19/mycall/mycall.c:25: undefined reference to `write'
linux-2.6.22.19/mycall/mycall.c:26: undefined reference to `close'
What is the proper way to open and write to a file directly from a syscall if I am unable to use open, write, and close?