mirror of
https://github.com/samba-team/samba.git
synced 2025-12-24 04:23:53 +03:00
Add a wrapper for dup2() to our system.c
Andrew Bartlett
This commit is contained in:
@@ -1219,6 +1219,16 @@ const char *sys_dlerror(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int sys_dup2(int oldfd, int newfd)
|
||||||
|
{
|
||||||
|
#if defined(HAVE_DUP2)
|
||||||
|
return dup2(oldfd, newfd);
|
||||||
|
#else
|
||||||
|
errno = ENOSYS;
|
||||||
|
return -1;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
Wrapper for Admin Logs.
|
Wrapper for Admin Logs.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user