]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/missing.h
basic/missing: move syscall definitions to basic/missing_syscall.h 2839/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 17 Mar 2016 17:26:13 +0000 (13:26 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 17 Mar 2016 17:34:34 +0000 (13:34 -0400)
commit2f368e4a114888dae8c7ebb1020efc3d922b61e9
treea6c9cd3bdf2a010a0c5a62e976b340327f72d8fa
parenta44202e98b638024c45e50ad404c7069c7835c04
basic/missing: move syscall definitions to basic/missing_syscall.h

We have a bunch of syscall wrapper definitions and it's easier to
see that they follow the same pattern if they are not interspersed
with other defines.

Change the wrappers to be uniform:
- if __NR_XXX is not defined, do not bother to call the syscall,
  and return -1/ENOSYS immediately.
- do not check __NR_XXX defines if we detect the symbol as defined,
  since we don't need them anyway
- reindent stuff for readability

New file basic/missing_syscall.h is included at the end of missing.h
because it might make use of some of the definitions in missing.h.
Makefile.am
src/basic/missing.h
src/basic/missing_syscall.h [new file with mode: 0644]