__ARRAYCOUNT(3) BSD Library Functions Manual __ARRAYCOUNT(3)NAME
__arraycount -- macro for statically allocated arrays
SYNOPSIS
#include <sys/cdefs.h>
size_t
__arraycount(x);
DESCRIPTION
The __arraycount() macro returns the number of elements in a statically allocated buffer.
EXAMPLES
The following example demonstrates a typical usage of __arraycount():
uint8_t buf[BUFSIZE];
size_t i;
...
for (i = 0; i < __arraycount(buf); i++)
...
SEE ALSO cdefs(3)HISTORY
The __arraycount() macro first appeared in NetBSD 4.0.
BSD December 16, 2010 BSD
Check Out this Related Man Page
CDEFS(3) BSD Library Functions Manual CDEFS(3)NAME
cdefs -- common definitions and macros
SYNOPSIS
#include <sys/cdefs.h>
DESCRIPTION
The <sys/cdefs.h> header includes some common definitions and macros typical to the C language conventions of NetBSD. Among these are:
o Certain C language properties and definitions that are versioned according to the support in compilers. Examples include the
__func__ keyword and the restrict type qualifier from C99.
o Macros and definitions specific to compilers, preprocessors, and linkers; see __CONCAT(3), __UNCONST(3), __insn_barrier(3), and
attribute(3).
o Utility macros provided for convenience; see __arraycount(3) and bits(3).
The header also contains the __RCSID() and __KERNEL_RCSID() macros used for version control system (VCS) identifiers. Thus, all NetBSD
source code files typically include <sys/cdefs.h>, included as the first thing right after any possible copyright texts;
/*-
* Copyright (c) 1984 John Doe
* All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted.
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: cdefs.3,v 1.3 2011/04/08 07:55:04 jruoho Exp $");
It is possible to identify the RCS keyword strings by using ident(1).
SEE ALSO ident(1), param(3), stddef(3), types(3), c(7)HISTORY
The <sys/cdefs.h> header was originally imported from 386BSD.
BSD April 8, 2011 BSD
Is there any build in command in unix to kill all the child process for a given process ID ? If any one has script or command, please let me know.
Thanks
Sanjay (4 Replies)
Hello all,
I have gone through the search and looked at posting about idle users and killing processes. Here is my question I would like to kill an idle user ( which I can do) but how can I asure that all of his process is also killed whit out tracing his inital start PID. I have tried this on a... (4 Replies)
Hello All,
I was just wondering if there is any direct way to access PL/SQL OUT variables from Korn Shell Script.
I could already figure out how to return a single value back from PL/SQL to Shell Script (using bind variable).
But, what if we want to return multiple values?
One option I... (4 Replies)
Hi
I would like to know if there is a way to just have one ORACLE connection established, using which we can execute different queries and store the results under different variables.
For e.g the following uses to two silent ORACLE connection to store the result under two different... (4 Replies)
Hi
i want to call a oracle stored procedure from unix (using bash shell).
consider this is my oracle stored procedure with parameter
create procedure testproc(name IN varchar, age IN Number, id OUT Number )
AS
begin
id=1;
dbms_output.put.line('successfull validation')
end;... (6 Replies)
hi
I have two tables in oracle DB and am using a joining query which will result in the output as follows.
i need to assign it to a two dimensional array and use it for my further calculations.
the way i tried is as follows.
#!/bin/ksh
export... (1 Reply)
hi every body
this is my first thread in this forum, i hope find a solution for my problem
i have to write a script bt i still have some error and i don't know how to correct them
$ for i in `seq 500 505`; do ./generateur_tache $i tache$i.txt; nprocs=$i; copt$i=`cat tache$i.txt | ./copt.awk` ;... (10 Replies)
Dears,
Newbie here and tried to search this topic for 3 days now with results.
I have a shell array and I want to use it in sqlplus with one connection.
here is what I have for now
#!/bin/ksh
FileName=1000
FileName=2000
FileName=3000
FileName=4000
sqlplus /nolog <<EOF
connect... (20 Replies)
I am parsing file for the fields using awk command, first i check 26th field for two characters using substr function if it matches then using for loop on array i search 184th field for 4 chars if it matches then i print the required fields but on execution i get the error, please help...... (5 Replies)
Hi All,
Greetings!
I have a file of 40000+ lines with different entries, I need matching entries filterd out to their files based on first filed pattern for the matching :
For example:
All server1 entries (in field1) to come together with its path in 2nd field.
The best output I want... (9 Replies)