Can I patent open/read/write/close methods? I might have an idea for the greatest troll in modern era.
You can't copyright them either in the same way that Harry Potter is copyrighted but not the word 'the' which is used throughout.
(More realistically though, it'd unfortunately mostly result in mass renaming to .destroy())