• Cyrill Gorcunov's avatar
    parasite: Refactor code to follow calling convention · 4b1f8d08
    Cyrill Gorcunov authored
    It happened some routines in parasite service code
    were not following calling convention so I fixed the
    callers and added a comment about adding new code here.
    
    At the same time the 3 error code madness is dropped
    as being requested by Pavel -- now we return one error
    code only.
    
    The PARASITE_ERR_ codes were dropped as well due to
    become redundant.
    
    The status of parasite service routine is set via
    SET_PARASITE_RET helper. In case if there is no error --
    just return 0. The calling code should not expect to
    find anything sane in parasite_status_t because parasite
    code might not touch it at all.
    
    Same time, due to this convention the parasite's
    dump_socket_queue is getting rid of third @err
    member, because it's now returned as a regular
    error code.
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    4b1f8d08
Name
Last commit
Last update
Documentation Loading commit data...
include Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
Makefile.inc Loading commit data...
README Loading commit data...
cr-check.c Loading commit data...
cr-dump.c Loading commit data...
cr-restore.c Loading commit data...
cr-show.c Loading commit data...
crtools.c Loading commit data...
file-ids.c Loading commit data...
files.c Loading commit data...
gen-offsets.sh Loading commit data...
ipc_ns.c Loading commit data...
libnetlink.c Loading commit data...
log.c Loading commit data...
namespaces.c Loading commit data...
parasite-syscall.c Loading commit data...
parasite.c Loading commit data...
parasite.lds.S Loading commit data...
proc_parse.c Loading commit data...
ptrace.c Loading commit data...
rbtree.c Loading commit data...
restorer-log.c Loading commit data...
restorer.c Loading commit data...
restorer.lds.S Loading commit data...
sockets.c Loading commit data...
sysctl.c Loading commit data...
util-net.c Loading commit data...
util.c Loading commit data...
uts_ns.c Loading commit data...