Project

General

Profile

Bug #4720

vhangup returns int

Added by Igor Pashev over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2014-04-02
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

According to implementation (and in opposite to manpage), prototype of vhangup is int vhangup(void), not void vhangup(void). In linux world vhangup also returns int.

usr/src/lib/libc/common/sys/vhangup.s:

/* C library -- vhangup                                         */
/* int vhangup()                                                */

#include "SYS.h" 

        SYSCALL_RVAL1(vhangup)
        RETC
        SET_SIZE(vhangup)

Also available in: Atom PDF