[CRIU] [RFC 0/6] Headers mocking

Cyrill Gorcunov gorcunov at openvz.org
Sat Dec 22 13:22:44 EST 2012


Hi guys,

while been thinking on parasite rework I've noticed that
we have a kind mess in our headers #define's. Here is a
series which unifies the naming. The idea is to make
headers consist of

#ifndef CR_some-name-here_H__
#define CR_some-name-here_H__

...

#endif /* CR_some-name-here_H__ */

I believe this will help headers transition in arch
specific sake as well.

Cyrill Gorcunov (6):
  headers: Add missing slashes for headers guards
  header: Drop redundant macro assignment
  headers: Add CR_ prefix where needed
  compiler.h: Drop redundant \Space
  parasite-syscall.h: Get rid of redundant \Space
  headers: Add ending comment for include guard

 include/atomic.h           |  6 +++---
 include/bitops.h           |  6 +++---
 include/compiler.h         |  8 ++++----
 include/cpu.h              |  6 +++---
 include/crtools.h          |  6 +++---
 include/eventfd.h          |  6 +++---
 include/eventpoll.h        |  6 +++---
 include/fifo.h             |  6 +++---
 include/file-ids.h         |  6 +++---
 include/files-reg.h        |  6 +++---
 include/files.h            |  6 +++---
 include/fpu.h              |  6 +++---
 include/image.h            |  6 +++---
 include/inet_diag.h        |  6 +++---
 include/inotify.h          |  6 +++---
 include/ipc_ns.h           |  6 +++---
 include/kcmp-ids.h         |  6 +++---
 include/libnetlink.h       |  6 +++---
 include/linkage.h          |  6 +++---
 include/list.h             |  6 +++---
 include/lock.h             |  6 +++---
 include/log-levels.h       |  6 +++---
 include/log.h              |  6 +++---
 include/memcpy_64.h        |  6 +++---
 include/mount.h            |  7 ++++---
 include/namespaces.h       |  7 ++++---
 include/net.h              |  7 ++++---
 include/netfilter.h        |  7 ++++---
 include/packet_diag.h      |  6 +++---
 include/parasite-syscall.h | 14 +++++++-------
 include/parasite.h         |  7 ++++---
 include/pipes.h            |  6 +++---
 include/proc_parse.h       |  6 +++---
 include/protobuf.h         |  7 ++++---
 include/pstree.h           |  8 +++++---
 include/ptrace.h           |  6 +++---
 include/rbtree.h           |  6 +++---
 include/shmem.h            |  7 ++++---
 include/signalfd.h         |  8 +++++---
 include/sk-inet.h          |  7 ++++---
 include/sk-packet.h        |  6 +++---
 include/sk-queue.h         |  6 +++---
 include/syscall-types.h    |  6 +++---
 include/sysctl.h           |  6 +++---
 include/types.h            |  6 +++---
 include/unix_diag.h        |  6 +++---
 include/util-net.h         |  6 +++---
 include/util.h             |  6 +++---
 include/uts_ns.h           |  6 +++---
 49 files changed, 164 insertions(+), 152 deletions(-)

-- 
1.8.0.1


More information about the CRIU mailing list