8 More Discussions You Might Find Interesting
1. Web Development
Ref:
https://itnext.io/face-api-js-javascript-api-for-face-recognition-in-the-browser-with-tensorflow-js-bcc2a6c4cf07 (0 Replies)
Discussion started by: Neo
0 Replies
2. Shell Programming and Scripting
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)
Discussion started by: rkrish
1 Replies
3. Programming
Does anyone have any example of how to use the perl api within Build Forge (0 Replies)
Discussion started by: saku
0 Replies
4. Programming
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)
Discussion started by: domiq44
4 Replies
5. Linux
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)
Discussion started by: MarkSeger
0 Replies
6. Programming
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)
Discussion started by: phykell
3 Replies
7. UNIX for Dummies Questions & Answers
What is Low-Level API and High-Level API? (1 Reply)
Discussion started by: sumsin
1 Replies
8. AIX
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)
Discussion started by: q30
0 Replies
creatediskbyname(3x) creatediskbyname(3x)
Name
creatediskbyname - get the disk description associated with a file name
Syntax
#include <disktab.h>
struct disktab *
creatediskbyname(name)
char *name;
Description
The subroutine takes the name of the character device special file representing a disk device (for example, and returns a structure pointer
describing its geometry information and the default disk partition tables. It obtains this information by polling the controlling disk
device driver. The subroutine returns information only for MSCP and SCSI disks.
The file has the following form:
#define DISKTAB "/etc/disktab"
struct disktab {
char *d_name; /* drive name */
char *d_type; /* drive type */
int d_secsize; /* sector size in bytes */
int d_ntracks; /* # tracks/cylinder */
int d_nsectors; /* # sectors/track */
int d_ncylinders; /* # cylinders */
int d_rpm; /* revolutions/minute */
struct partition {
int p_size; /* #sectors in partition */
short p_bsize; /* block size in bytes */
short p_fsize; /* frag size in bytes */
} d_partitions[8];
};
struct disktab *getdiskbyname();
struct disktab *creatediskbyname();
Diagnostics
Successful completion of the subroutine returns a pointer to a valid disktab structure. Failure of this subroutine returns a null pointer.
The subroutine fails if it cannot obtain the necessary information from the device driver or disktab file.
A check is done to ensure that the disktab file exists and is readable. This check ensures that the subroutine is not being called because
the disktab file was accidentally removed. If there is no disktab file, the subroutine fails.
The subroutine also fails if it cannot determine disk geometry attributes by polling the driver. This can occur if the disk is not an MSCP
or SCSI disk. In some cases where the disk consists of removable media and the media is not loaded, the driver will be unable to determine
disk attributes.
Restrictions
The subroutine returns information only for MSCP and SCSI disks.
See Also
getdiskbyname(3x), ra(4), rz(4), disktab(5)
creatediskbyname(3x)