Hi,
I need to call an API (GetUsageDetails)from inside a shell script which takes an input argument acct_nbr.
The output of API will be like :
<usageAccum accumId="450" accumCaptn="PM_125" inclUnits="1410.00" inclUnitsUsed="744.00" shared="true" pooled="false" prorated="false"... (1 Reply)
Hi all,
I would like to know if an API for compress (.Z) exists in C ?
I want to write a program which process a large number of data files with efficient compression at the end.
Thanks
http://fedora.unix.com/images/misc/progress.gif (4 Replies)
If anyone is interested I just released a new version that contains an API for collecting any kind of data you want and to include it in the user interface, data files and even be able to send it via sockets to other tools. Of course you need to be a perl programmer to use it...
A second... (0 Replies)
Hi,
I've just been experimenting with AIX's ldapsearch utility - I've been successfully using it to retrieve information from an Active Directory, however, I need to make similar calls from a C program.
Is there a suitable LDAP API on AIX which will give me similar capabilties to the... (3 Replies)
Machine and OS : IBM 7044-170 AIX 4.3.3
Hi, everyone
I have a question , pls help me to resolve. In IBM AIX , how to obtain the CPU Load and other infomations by System API Fuction.
Wait for your reply ......., Thanks. (0 Replies)
getdiskbyname(3) Library Functions Manual getdiskbyname(3)NAME
getdiskbyname, getdiskbyname_r - Get the disk description using a disk name
LIBRARY
Standard C Library (libc)
SYNOPSIS
#include <sys/disklabel.h> #include <sys/types.h>
struct disklabel *getdiskbyname( char *name);
int getdiskbyname_r( char *name, struct disklabel *disk, char *boot, int boot_len);
PARAMETERS
Specifies a common name for the disk drive whose geometry and partition characteristics are sought. Points to the structure that will con-
tain the returned disk description. Points to the buffer that will contain the optional names of the primary and secondary bootstraps.
Specifies the length of boot. This should be BUFSIZ.
DESCRIPTION
Operations supported by the getdiskbyname function are also supported by the createlabel function. See The getdiskbyname and getdiskby-
name_r functions are supported only for backward compatibility with DIGITAL UNIX Version 4.0 and earlier versions. These functions will be
retired in a future release of Tru64 UNIX.
The getdiskbyname() function uses a disk (disk drive) name to return a pointer to a structure that describes the geometry and standard par-
tition characteristics of the named disk drive. Information obtained from the /etc/disktab database file is written to the type disklabel
structure space referenced by the returned pointer.
The getdiskbyname_r() function is the reentrant version of getdiskbyname(). Upon successful completion, getdiskbyname_r() returns a value
of 0 (zero); the returned structure is pointed at by disk. Upon error, it returns a value of -1, and may set errno to [EINVAL].
RETURN VALUES
Upon successful completion, the getdiskbyname() function, returns a pointer to a type disklabel structure.
ERRORS
Either disk or boot is NULL, or boot_len is not equal to BUFSIZ.
RELATED INFORMATION
Functions: createlabel(3)
Files: disklabel(4), disktab(4)
Commands: disklabel(8) delim off
getdiskbyname(3)