简体   繁体   English

libsmbclient中smbc_open()函数的实现在哪里

[英]where is the implementation of smbc_open() function in libsmbclient

I am taking a look at the implementation of libsmbclient . 我正在看libsmbclient的实现。 The source code I have for samba is 4.1.13. 我拥有的samba的源代码是4.1.13。 I can find the example testXXX.c functions which shows the examples of using libsmbclient functions . 我可以找到示例testXXX.c函数,该函数显示了使用libsmbclient functions的示例。 I also found a header file called libsmbclient.h which has all these function prototypes definitions, such as smbc_open , smbc_read and so on. 我还找到了一个名为libsmbclient.h的头文件,该头文件具有所有这些功能原型定义,例如smbc_opensmbc_read等。 I want to see the really implementation of smbc_open() function, and some other functions. 我想看看smbc_open()函数和其他一些函数的真正实现。 I did grep -r 'smbc_open' * , but I didn't find any place that has the implementation of this function. 我做了grep -r 'smbc_open' * ,但是我没有找到任何可以实现此功能的地方。 All I see are the callers calling this function or this prototype definition. 我所看到的只是调用者调用此函数或此原型定义。 So where can I find this function implementation? 那么在哪里可以找到此函数的实现?

I found it. 我找到了。 All these smbc_open(), close() ... functions are implemented in libsmb_compat.c 所有这些smbc_open(),close()...函数都在libsmb_compat.c中实现

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM