Bug 44394

Summary: restrict qualifiers missing from sys/socket.h
Product: Base System Reporter: Craig Rodrigues <rodrigc>
Component: standardsAssignee: Alfred Perlstein <alfred>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
socket-restrict.diff none

Description Craig Rodrigues 2002-10-22 23:20:01 UTC
     sys/socket.h prototypes are missing restrict qualifiers

Fix: This patch handles the prototypes and man pages.  The actual implementations
of these functions are system calls and need to be changed in
sys/kern and also in sys/kern/syscalls.master.
Comment 1 Craig Rodrigues 2002-12-30 00:42:40 UTC
Hi,

Here is a followup patch which adds restrict qualifiers to
accept(), getpeername(), getsockname(), getsockopt(), and recvfrom()
as specified in the latest POSIX standard.

After applying the patch, and before recompiling everything, you need to
regenerate syscall.h, syscall.mk and sysproto.h by doing:

cd /usr/src/sys/kern
sh makesyscalls.sh syscalls.master

Is the attached patch OK?

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@attbi.com
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2002-12-31 16:28:25 UTC
Responsible Changed
From-To: freebsd-standards->mike

Over to me.
Comment 3 Mike Barcroft freebsd_committer freebsd_triage 2003-02-04 15:32:05 UTC
Responsible Changed
From-To: mike->alfred

Alfred committed most of Craig's other PRs.
Comment 4 Alfred Perlstein freebsd_committer freebsd_triage 2004-01-14 06:45:58 UTC
State Changed
From-To: open->closed

committed