diff options
Diffstat (limited to 'source/smbwrapper/shared.c')
-rw-r--r-- | source/smbwrapper/shared.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/smbwrapper/shared.c b/source/smbwrapper/shared.c index 7a5cbcee22e..ef139414bc9 100644 --- a/source/smbwrapper/shared.c +++ b/source/smbwrapper/shared.c @@ -212,3 +212,10 @@ int smbw_setenv(const char *name, const char *value) return ret; } +/***************************************************************** +return true if the passed fd is the SMBW_HANDLE +*****************************************************************/ +int smbw_shared_fd(int fd) +{ + return (shared_fd && shared_fd == fd); +} |