[uClibc 0003174]: in no mmu build, msyc() in sys/mman.h breaks msync() in linuxthreads.old/wrapsyscall.c

bugs at busybox.net bugs at busybox.net
Sun Apr 27 13:18:28 UTC 2008


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=3174 
====================================================================== 
Reported By:                kendallc
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   3174
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             04-27-2008 02:01 PDT
Last Modified:              04-27-2008 06:18 PDT
====================================================================== 
Summary:                    in no mmu build, msyc() in sys/mman.h breaks msync()
in linuxthreads.old/wrapsyscall.c
Description: 
For architectures with no MMU, some of the system calls in sys/mman.h were
changed to be "static inline" calls that do nothing. This avoids making
calls into the kernel that don't actually do anything. Unfortunately, the
change breaks linuxthreads.old/wrapsyscall.c because it includes
sys/mman.h but has its own implementation of msync().

The "static inline" declarations could also cause problems for other code
that needs a pointer to msyc() or the other calls. I don't know why anyone
would want a pointer to msyc(), but you never know what people will try do.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 04-27-08 06:18  
---------------------------------------------------------------------- 
> The "static inline" declarations could also cause problems for other code
that needs a pointer to msyc() or the other calls. I don't know why anyone
would want a pointer to msyc(), but you never know what people will try
do.

Taking a pointer to inline function works in C. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-27-08 02:01  kendallc       New Issue                                    
04-27-08 02:01  kendallc       Status                   new => assigned     
04-27-08 02:01  kendallc       Assigned To               => uClibc          
04-27-08 06:18  vda            Note Added: 0007264                          
======================================================================




More information about the uClibc-cvs mailing list