Home | Forum | MAN Pages | Tutorials | Directory | HOWTOs | About Me | Contact
 
FAQS
» Advanced Routing & Traffic Control
» General FAQ
» Squid Proxy Server
» Sendmail
» Fetchmail
» Postfix
» Connecting Mobile Phone
» Paging from Linux
» Standard Commands
» Some common terms
Linux HOWTOs
- Single List of HOWTOs
- ACPI-HOWTO
- Beowulf-HOWTO
- Debian and Windows Shared Printing
- Euro Char Support
- Jaz Drive HOWTO
- Glibc Install HOWTO
- Jaz-Drive-HOWTO
- LILO
- Linux+Win9x+Grub-HOWTO
- Multi-Distro-Dev
- openMosix-HOWTO
- Printing-Usage-HOWTO
- Reading-List-HOWTO
- Snort-Statistics-HOWTO
- Text-Terminal-HOWTO
- Unix-and-Internet-Fundamentals-HOWTO
- VAR-HOWTO
- Windows-LAN-Server-HOWTO
- Xterm-Title
- ADSL Bandwidth Management
- Compile Apache
- Make a Bootdisk
- Linux-Windows9x-Grub
- Linux-Windows
- Linux Crash Recovery
- Optimise Squid
- Block websites in Squid
- Broadcast webcam in linux
- Compile RedHat Linux kernel
- Implement Firewall Security
- Increase Harddrive Performance
- Mount NTFS filesystem
- Patch / rebuild SRPM
- Secure Linux
- Set up a DHCP Server
- Set up an FTP server
- Set up Linux as a Router
- Use Cron
- Samba
Miscellaneous
» All Ports
» Spammers fetch email addresses
» Mounting NTFS in linux
» Linux Gazette
» Linux Man Pages
» Linux Directory
Linux Man Pages
- Section 1
- Section 2
- Section 3
- Section 4
- Section 5
- Section 6
- Section 7
- Section 8
Linux Directory
- General Information
- Linux Hardware
- Software / Applications
- Web Technology
- Software Development
- Linux Distributions
- Linux Publications
- Linux Beginners

linux,man,pages,linux man pages,squid,ntfs,mount
 

Name

ber_int_t, ber_uint_t, ber_len_t, ber_slen_t, ber_tag_t, struct berval, BerValue, BerVarray, BerElement, ber_bvfree, ber_bvecfree, ber_bvecadd, ber_bvarray_free, ber_bvarray_add, ber_bvdup, ber_dupbv, ber_bvstr, ber_bvstrdup, ber_str2bv, ber_free — LBER types and allocation functions

Synopsis

#include <lber.h>

typedef impl_tag_t ber_tag_t;
typedef impl_int_t ber_int_t;
typedef impl_uint_t ber_uint_t;
typedef impl_len_t ber_len_t;
typedef impl_slen_t ber_slen_t;

typedef struct berval {
    ber_len_t bv_len;
    char *bv_val;
} BerValue, *BerVarray;

typedef struct berelement BerElement;
void ber_bvfree( struct berval *  bv);
void ber_bvecfree( struct berval **  bvec);
void ber_bvecadd( struct berval ***  bvec,
  struct berval *  bv);
void ber_bvarray_free( struct berval *  bvarray);
void ber_bvarray_add( BerVarray *  bvarray,
  BerValue *  bv);
struct berval *ber_bvdup( const struct berval *  bv);
struct berval *ber_dupbv( const struct berval *  dst,
  struct berval *  src);
struct berval *ber_bvstr( const char *  str);
struct berval *ber_bvstrdup( const char *  str);
struct berval *ber_str2bv( const char *  str,
  ber_len_t   len,
  int   dup,
  struct berval *  bv);
void ber_free( BerElement *  ber,
  int   freebuf);

LIBRARY

OpenLDAP LBER (liblber, -llber)

DESCRIPTION

The following are the basic types and structures defined for use with the Lightweight BER library.

ber_int_t is a signed integer of at least 32 bits. It is commonly equivalent to int. ber_uint_t is the unsigned variant of ber_int_t.

ber_len_t is an unsigned integer of at least 32 bits used to represent a length. It is commonly equivalent to a size_t. ber_slen_t is the signed variant to ber_len_t.

ber_tag_t is an unsigned integer of at least 32 bits used to represent a BER tag. It is commonly equivalent to a unsigned long.

The actual definitions of the integral impl_TYPE_t types are platform specific.

BerValue, commonly used as struct berval, is used to hold an arbitrary sequence of octets. bv_val points to bv_len octets. bv_val is not necessarily terminated by a NUL (zero) octet. ber_bvfree() frees a BerValue, pointed to by bv, returned from this API. If bv is NULL, the routine does nothing.

ber_bvecfree() frees an array of BerValues (and the array), pointed to by bvec, returned from this API. If bvec is NULL, the routine does nothing. ber_bvecadd() appends the bv pointer to the bvec array. Space for the array is allocated as needed. The end of the array is marked by a NULL pointer.

ber_bvarray_free() frees an array of BerValues (and the array), pointed to by bvarray, returned from this API. If bvarray is NULL, the routine does nothing. ber_bvarray_add() appends the contents of the BerValue pointed to by bv to the bvarray array. Space for the new element is allocated as needed. The end of the array is marked by a BerValue with a NULL bv_val field.

ber_bvdup() returns a copy of a BerValue. The routine returns NULL upon error (e.g. out of memory). The caller should use ber_bvfree() to deallocate the resulting BerValue. ber_dupbv() copies a BerValue from src to dst. If dst is NULL a new BerValue will be allocated to hold the copy. The routine returns NULL upon error, otherwise it returns a pointer to the copy. If dst is NULL the caller should use ber_bvfree() to deallocate the resulting BerValue, otherwise ber_memfree() should be used to deallocate the dst->bv_val. (The ber_bvdup() function is internally implemented as ber_dupbv(NULL, bv). ber_bvdup() is provided only for compatibility with an expired draft of the LDAP C API; ber_dupbv() is the preferred interface.)

ber_bvstr() returns a BerValue containing the string pointed to by str. ber_bvstrdup() returns a BerValue containing a copy of the string pointed to by str. ber_str2bv() returns a BerValue containing the string pointed to by str, whose length may be optionally specified in len. If dup is non-zero, the BerValue will contain a copy of str. If len is zero, the number of bytes to copy will be determined by strlen(3), otherwise len bytes will be copied. If bv is non-NULL, the result will be stored in the given BerValue, otherwise a new BerValue will be allocated to store the result. NOTE: Both ber_bvstr() and ber_bvstrdup() are implemented as macros using ber_str2bv() in this version of the library.

BerElement is an opaque structure used to maintain state information used in encoding and decoding. BerElement structures are created using ber_alloc_t(3) and ber_init(3). ber_free() frees a BerElement pointed to by ber. If ber is NULL, the routine does nothing. If freebuf is zero, the internal buffer is not freed.

ACKNOWLEDGEMENTS

OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan LDAP 3.3 Release.


See the following documents: COPYRIGHTLICENSE

 
Random Linux Commands
Mount
This is the process of attaching a drive to a directory so that the files on it can be accessed. For instance, you usually mount the floppy drive device (/dev/fd0) onto the mount-point /mnt/floppy. Then you can look in the /mnt/floppy directory to see the files on the disk.

Common Linux terms
Linux-FAQs Forum Categories
» About Forum
» Hardware Troubleshooting in Linux
» Linux Entertainment
» Resources
» Software toubleshooting and configuration
All Linux-FAQs Forums
» Crash Recovery
» FAQs
» Forum Talk
» Games
» General
» Linux Audio Support
» Linux Hardware / Driver
» Linux Installation Support
» Linux misc.
» Linux Networking
» Linux Newbies
» Linux Printing Support
» Linux Security
» Linux Video Support
» Mail Server
» Multimedia
» Tutorials
» Web Proxy Server
» Web Server

linux,man,man pages,faqs,howtos,forum
 
Powered by HTML
Linux-faqs.com Copyright, All rights reserved www.linux-faqs.com. Peeyush Maurya.