service.h File Reference

Service functions. More...

#include <string.h>
#include <stdlib.h>
#include <stdio.h>

Go to the source code of this file.

Enumerations

enum  state_t { STATE_FREE = 0, STATE_INIT, STATE_OK }

Functions

const char * gen_name (const char *mask, int id)
 Generate a name in allocated memory.
int cmp_tid (const void *a_, const void *b_)
 Sort-helper for thread-id sorting.
int cmp_tid_back (const void *a_, const void *b_)
 Sort-helper for reverse thread-id sorting.
int cmp_name (const void *a_, const void *b_)
 Sort-helper for name sorting.
int cmp_name_back (const void *a_, const void *b_)
 Sort-helper for reverse name sorting.
int cmp_prio (const void *a_, const void *b_)
 Sort-helper for prio sorting.
int cmp_prio_back (const void *a_, const void *b_)
 Sort-helper for reverse prio sorting.
int cmp_load (const void *a_, const void *b_)
 Sort-helper for load sorting.
int cmp_load_back (const void *a_, const void *b_)
 Sort-helper for reverse load sorting.
int cmp_time (const void *a_, const void *b_)
 Sort-helper for time sorting.
int cmp_time_back (const void *a_, const void *b_)
 Sort-helper for reverse time sorting.


Detailed Description

Service functions.

Date:
01/14/2004
Author:
Jork Loeser <jork.loeser@inf.tu-dresden.de>

Function Documentation

const char * gen_name ( const char *  mask,
int  id 
) [inline]

Generate a name in allocated memory.

The name has the form "maskXXX" with XXX replaced by the id, 0-filled.

Precondition:
0=<id<1000.
Return values:
0 Error
!0 ptr to the name, allocated with malloc

Referenced by disp_alloc(), and scope_alloc().


Generated on Wed Apr 11 06:39:34 2012 for JTop - Top for DROPS by  doxygen 1.5.6