Bug 170174

Summary: syscall6() fails to compile with g++
Product: [Fedora] Fedora Reporter: Arun Sharma <arun.sharma>
Component: glibc-kernheadersAssignee: David Woodhouse <dwmw2>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-30 09:16:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
This patch works for me none

Description Arun Sharma 2005-10-08 08:44:48 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

Description of problem:

When syscall6 is used with a return type of void *, g++ gives an error message complaining about a long int (return type of syscall) being type cast to void *.

The attached patch adds an explicit cast that fixes it for me.

Version-Release number of selected component (if applicable):
glibc-kernheaders-2.4-9.1.94

How reproducible:
Always

Steps to Reproduce:
1. Use syscallN() to define a syscall wrapper that returns type != long
2. Compile with g++
3.
  

Actual Results:  Compile error

Expected Results:  No compile error

Additional info:

Comment 1 Arun Sharma 2005-10-08 08:48:03 UTC
Created attachment 119728 [details]
This patch works for me

Comment 2 David Woodhouse 2006-09-30 09:16:20 UTC
syscall6() is a kernel-private thing. Use glibc's syscall().

Fixed, by removing syscall6() from user visibility entirely, in FC6.