Exemple #1
0
/*
 * getpid(2)
 *
 */
    ssize_t
alcove_sys_getpid(alcove_state_t *ap, const char *arg, size_t len,
        char *reply, size_t rlen)
{
    UNUSED(ap);
    UNUSED(arg);
    UNUSED(len);

    return alcove_mk_long(reply, rlen, getpid());
}
Exemple #2
0
/*
 * getpgrp(2)
 */
    ssize_t
alcove_sys_getpgrp(alcove_state_t *ap, const char *arg, size_t len,
        char *reply, size_t rlen)
{
    return alcove_mk_long(reply, rlen, getpgrp());
}