[SCM] Samba Shared Repository - branch master updated

Andreas Schneider asn at samba.org
Mon May 3 07:56:02 MDT 2010


The branch, master has been updated
       via  fcb5382... tsocket: Fixed the documentation of tsocket_address_bsd_sockaddr.
      from  54e68b4... Added a couple of systemFlags, needed for determining filtered attributes.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit fcb53828dfade06c9b9b644d4fb3e074354947f9
Author: Andreas Schneider <asn at samba.org>
Date:   Mon May 3 11:25:26 2010 +0200

    tsocket: Fixed the documentation of tsocket_address_bsd_sockaddr.

-----------------------------------------------------------------------

Summary of changes:
 lib/tsocket/tsocket.h |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/tsocket/tsocket.h b/lib/tsocket/tsocket.h
index d4f9e87..7d6a174 100644
--- a/lib/tsocket/tsocket.h
+++ b/lib/tsocket/tsocket.h
@@ -902,16 +902,23 @@ ssize_t tsocket_address_bsd_sockaddr(const struct tsocket_address *addr,
  * for anything else. The file descriptor will be closed when the stream gets
  * freed. If you still want to use the fd you have have to create a duplicate.
  *
- * @param[in]  mem_ctx      The talloc memory context to use.
+ * @param[in]  mem_ctx  The talloc memory context to use.
  *
- * @param[in]  fd           The non blocking fd to use!
+ * @param[in]  fd       The non blocking fd to use!
  *
- * @param[in]  stream       The filed tstream_context you allocated before.
+ * @param[out] stream   A pointer to store an allocated tstream_context.
  *
- * @return              0 on success, -1 on error with errno set.
+ * @return              0 on success, -1 on error.
  *
- * @warning You should read the tsocket_bsd.c code and unterstand it in order
- * use this function.
+ * Example:
+ * @code
+ *   fd2 = dup(fd);
+ *   rc = tstream_bsd_existing_socket(mem_ctx, fd2, &tstream);
+ *   if (rc < 0) {
+ *     stream_terminate_connection(conn, "named_pipe_accept: out of memory");
+ *     return;
+ *   }
+ * @endcode
  */
 int tstream_bsd_existing_socket(TALLOC_CTX *mem_ctx,
 				int fd,


-- 
Samba Shared Repository


More information about the samba-cvs mailing list