!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/share/gtk-doc/html/glib/   drwxr-xr-x
Free 5.23 GB of 27.03 GB (19.34%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     glib-Trash-Stacks.html (9.44 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Trash Stacks

Trash Stacks

Trash Stacks — maintain a stack of unused allocated memory chunks.

Synopsis


#include <glib.h>


            GTrashStack;
void        g_trash_stack_push              (GTrashStack **stack_p,
                                             gpointer data_p);
gpointer    g_trash_stack_pop               (GTrashStack **stack_p);
gpointer    g_trash_stack_peek              (GTrashStack **stack_p);
guint       g_trash_stack_height            (GTrashStack **stack_p);

Description

A GTrashStack is an efficient way to keep a stack of unused allocated memory chunks. Each memory chunk is required to be large enough to hold a gpointer. This allows the stack to be maintained without any space overhead, since the stack pointers can be stored inside the memory chunks.

There is no function to create a GTrashStack. A NULL GTrashStack* is a perfectly valid empty stack.

Details

GTrashStack

typedef struct {
  GTrashStack *next;
} GTrashStack;

Each piece of memory that is pushed onto the stack is cast to a GTrashStack*.

GTrashStack *next; pointer to the previous element of the stack, gets stored in the first sizeof (gpointer) bytes of the element.

g_trash_stack_push ()

void        g_trash_stack_push              (GTrashStack **stack_p,
                                             gpointer data_p);

Pushes a piece of memory onto a GTrashStack.

stack_p : a pointer to a GTrashStack.
data_p : the piece of memory to push on the stack.

g_trash_stack_pop ()

gpointer    g_trash_stack_pop               (GTrashStack **stack_p);

Pops a piece of memory off a GTrashStack.

stack_p : a pointer to a GTrashStack.
Returns : the element at the top of the stack.

g_trash_stack_peek ()

gpointer    g_trash_stack_peek              (GTrashStack **stack_p);

Returns the element at the top of a GTrashStack.

stack_p : a pointer to a GTrashStack.
Returns : the element at the top of the stack.

g_trash_stack_height ()

guint       g_trash_stack_height            (GTrashStack **stack_p);

Returns the height of a GTrashStack.

stack_p : a pointer to a GTrashStack.
Returns : the height of the stack.

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0044 ]--