Sponsored Content
Full Discussion: proc
Top Forums UNIX for Dummies Questions & Answers proc Post 72110 by reborg on Wednesday 18th of May 2005 03:21:07 PM
Old 05-18-2005
does ps -ef list anything? or does it hang?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/proc 100%

The df/bdf command shows /proc 100% full all the time. What does /proc contain? and why 100% all the time even on a new setup. (1 Reply)
Discussion started by: asutoshch
1 Replies

2. UNIX for Dummies Questions & Answers

about /proc

hi, we all know /proc is about the information of active process, I have just read an artical which said you can use /proc/cpuinfo, /proc/net./proc/meminfo etc. to know about some hardware information .But I want to know how to use with command line? (1 Reply)
Discussion started by: fuqiang1976
1 Replies

3. UNIX for Advanced & Expert Users

The /proc Filesystems

Anyone know what the difference between the /proc filesystems under Linux and SunOS? Thanx In Advance! -Lola (1 Reply)
Discussion started by: Sparticus007
1 Replies

4. Programming

Proc problem

Hello all , We have a c program , it is running well on AIX 4.3.3.0 .But when we run it on AIX 4.2.1.0 version the program exit when it begin to do this command : Exec sql connect . N.B: The version of C compiler is :4.2 Database :Oracle8 thanks in advance . Elie . (2 Replies)
Discussion started by: eyounes
2 Replies

5. UNIX for Advanced & Expert Users

/proc

/proc is filing up my root filesystem. Can you delete any of the4 ID numbers out of /proc. Please help me. (3 Replies)
Discussion started by: aojmoj
3 Replies

6. UNIX for Dummies Questions & Answers

proc directory

I did a search on this, but didn't find exactly the answer I'm looking for. What exactly is the proc directory for? Showing processes spawned by users? I ask because I have some very large files in that directory by multiple users and its affecting my disk usage. Can you limit how many... (2 Replies)
Discussion started by: kymberm
2 Replies

7. Programming

Need Of Proc*c/c++ Compiler

1. Software Requirments For Pro*c/c++ , 2. Need Pro* C/c++ Compiler, 3. Documents For Installing Proc* C Compiler (3 Replies)
Discussion started by: contactmadhuin
3 Replies

8. Programming

Need help ! SQL and Proc *C

:) hi all ! Please help me When I select data from oracle with proc * C prog. I count the number of rows For example the total rows is 1000000 but the number of result return is a limit number 5000 for ex So How can I know this limit (5 Replies)
Discussion started by: iwbasts
5 Replies

9. UNIX for Dummies Questions & Answers

_/proc/stat vs /proc/uptime

Hi, I am trying to calculate the CPU Usage by getting the difference between the idle time reported by /proc/stat at 2 different intervals. Now the 4th entry in the first line of /proc/stat will give me the 'idle time'. But I also came across /proc/uptime that gives me 2 entries : 1st one as the... (0 Replies)
Discussion started by: coderd
0 Replies

10. UNIX for Dummies Questions & Answers

Regarding /proc

If you are adding the kernel module without any module parameter passing, it should print out following information to info1 file so that user can make read access to info1 file (via, for example, cat /proc/info1): • Processor type • Kernel version • Total number of the processes currently... (1 Reply)
Discussion started by: shekhar.huded
1 Replies
The talloc array functions(3)					      talloc					     The talloc array functions(3)

NAME
The talloc array functions - Talloc contains some handy helpers for handling Arrays conveniently. Modules The talloc string functions. talloc string allocation and manipulation functions. Functions void * talloc_array (const void *ctx,#type, unsigned count) Allocate an array. void * talloc_array_size (const void *ctx, size_t size, unsigned count) Allocate an array. void * talloc_array_ptrtype (const void *ctx, const void *ptr, unsigned count) Allocate an array into a typed pointer. size_t talloc_array_length (const void *ctx) Get the number of elements in a talloc'ed array. void * talloc_zero_array (const void *ctx,#type, unsigned count) Allocate a zero-initialized array. void * talloc_realloc (const void *ctx, void *ptr,#type, size_t count) Change the size of a talloc array. void * talloc_realloc_size (const void *ctx, void *ptr, size_t size) Untyped realloc to change the size of a talloc array. void * talloc_realloc_fn (const void *context, void *ptr, size_t size) Provide a function version of talloc_realloc_size. Detailed Description Talloc contains some handy helpers for handling Arrays conveniently. Function Documentation void* talloc_array (const void *ctx, #type, unsignedcount) Allocate an array. The macro is equivalent to: * (type *)talloc_size(ctx, sizeof(type) * count); * except that it provides integer overflow protection for the multiply, returning NULL if the multiply overflows. Parameters: ctx The talloc context to hang the result off. type The type that we want to allocate. count The number of 'type' elements you want to allocate. Returns: The allocated result, properly cast to 'type *', NULL on error. Example: * unsigned int *a, *b; * a = talloc_zero(NULL, unsigned int); * b = talloc_array(a, unsigned int, 100); * See Also: talloc() talloc_zero_array() size_t talloc_array_length (const void *ctx) Get the number of elements in a talloc'ed array. A talloc chunk carries its own size, so for talloc'ed arrays it is not necessary to store the number of elements explicitly. Parameters: ctx The allocated array. Returns: The number of elements in ctx. void* talloc_array_ptrtype (const void *ctx, const void *ptr, unsignedcount) Allocate an array into a typed pointer. The macro should be used when you have a pointer to an array and want to allocate memory of an array to point at with this pointer. When compiling with gcc >= 3 it is typesafe. Note this is a wrapper of talloc_array_size() and talloc_get_name() will return the current location in the source file and not the type. Parameters: ctx The talloc context to hang the result off. ptr The pointer you want to assign the result to. count The number of elements you want to allocate. Returns: The allocated memory chunk, properly casted. NULL on error. void* talloc_array_size (const void *ctx, size_tsize, unsignedcount) Allocate an array. Parameters: ctx The talloc context to hang the result off. size The size of an array element. count The number of elements you want to allocate. Returns: The allocated result, NULL on error. void* talloc_realloc (const void *ctx, void *ptr, #type, size_tcount) Change the size of a talloc array. The macro changes the size of a talloc pointer. The 'count' argument is the number of elements of type 'type' that you want the resulting pointer to hold. talloc_realloc() has the following equivalences: * talloc_realloc(ctx, NULL, type, 1) ==> talloc(ctx, type); * talloc_realloc(ctx, NULL, type, N) ==> talloc_array(ctx, type, N); * talloc_realloc(ctx, ptr, type, 0) ==> talloc_free(ptr); * The 'context' argument is only used if 'ptr' is NULL, otherwise it is ignored. Parameters: ctx The parent context used if ptr is NULL. ptr The chunk to be resized. type The type of the array element inside ptr. count The intended number of array elements. Returns: The new array, NULL on error. The call will fail either due to a lack of memory, or because the pointer has more than one parent (see talloc_reference()). void* talloc_realloc_fn (const void *context, void *ptr, size_tsize) Provide a function version of talloc_realloc_size. This is a non-macro version of talloc_realloc(), which is useful as libraries sometimes want a ralloc function pointer. A realloc() implementation encapsulates the functionality of malloc(), free() and realloc() in one call, which is why it is useful to be able to pass around a single function pointer. Parameters: context The parent context used if ptr is NULL. ptr The chunk to be resized. size The new chunk size. Returns: The new chunk, NULL on error. void* talloc_realloc_size (const void *ctx, void *ptr, size_tsize) Untyped realloc to change the size of a talloc array. The macro is useful when the type is not known so the typesafe talloc_realloc() cannot be used. Parameters: ctx The parent context used if 'ptr' is NULL. ptr The chunk to be resized. size The new chunk size. Returns: The new array, NULL on error. void* talloc_zero_array (const void *ctx, #type, unsignedcount) Allocate a zero-initialized array. Parameters: ctx The talloc context to hang the result off. type The type that we want to allocate. count The number of 'type' elements you want to allocate. Returns: The allocated result casted to 'type *', NULL on error. The talloc_zero_array() macro is equivalent to: * ptr = talloc_array(ctx, type, count); * if (ptr) memset(ptr, sizeof(type) * count); * Author Generated automatically by Doxygen for talloc from the source code. Version 2.0 Tue Jun 17 2014 The talloc array functions(3)
All times are GMT -4. The time now is 03:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy