Bug 1098 - AIX has msleep
AIX has msleep
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
: P3 critical
: none
Assigned To: Tim Potter
Depends on:
  Show dependency treegraph
Reported: 2004-02-18 04:25 UTC by Heinrich Mislik
Modified: 2005-11-14 09:26 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Heinrich Mislik 2004-02-18 04:25:44 UTC
AIX has a function msleep in libc. 

#include <sys/mman.h>

     int msleep (Sem)
     msemaphore * Sem;

     The msleep subroutine puts a calling process to sleep when a
     semaphore is busy.

Samba also names a function msleep. This does not affect samba itself, but other
applications linked with libsmbclient might use  the wrong "msleep". Symptom is
"timeout connecting to ..." when connecting to remote servers, because AIX
msleep does not sleep but fails immediatly with EFAULT.

msleep should be renamed.
Comment 1 Tim Potter 2004-02-18 17:27:56 UTC
I have a patch to rename this to smb_msleep()
Comment 2 Tim Potter 2004-02-20 14:42:40 UTC
I've checked in a patch to rename msleep() to smb_msleep().
Comment 3 Gerald (Jerry) Carter 2005-08-24 10:22:08 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.
Comment 4 Gerald (Jerry) Carter 2005-11-14 09:26:01 UTC
database cleanup