ut_os_hpux.c File Reference


Detailed Description

operatingSystem HP-UX OS_

=====================================================
Liste_Funktionen_Beginn:

OS_id                    Read System - ID (uname -m) (HW-ID!)
OS_date                  Datum (als iyear, imon, iday) holen
OS_time                  Zeit (ihour, imin, isec) holen
OS_system                Perform OS - Command (system)
OS_Wait                  in millisecs
OS_beep

OS_checkFilExist
OS_checkDirExist         und try to create dir

Liste_Funktionen_Ende:
=====================================================

- see also:
../ut/ut_os_aix.c

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/utsname.h>
#include <time.h>
#include <sys/time.h>
#include <signal.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/file.h>
#include <fcntl.h>
#include <sys/types.h>
#include "ut_os.h"

Defines

#define _INCLUDE_POSIX_SOURCE

Functions

void OS_Wait (int millisecs)
void OS_beep ()
void OS_id (char *id)
void OS_date (long *i1, long *i2, long *i3)
void OS_time (long *i1, long *i2, long *i3)
int OS_system (char *buf)
int OS_checkFilExist (char *filnam, int mode)
int OS_checkDirExist (char *dirnam)


Define Documentation

#define _INCLUDE_POSIX_SOURCE


Function Documentation

void OS_Wait ( int  millisecs  ) 

void OS_beep (  ) 

void OS_id ( char *  id  ) 

void OS_date ( long *  i1,
long *  i2,
long *  i3 
)

OS_date returns (year, mon, day)

void OS_time ( long *  i1,
long *  i2,
long *  i3 
)

OS_time returns (hour, min, sec)

int OS_system ( char *  buf  ) 

OS_system Perform OS-Command; wait for completion (system)

int OS_checkFilExist ( char *  filnam,
int  mode 
)

    OS_checkFilExist         check if File or Directory exists
    mode = 0: display message sofort;
    mode = 1: just fix returncode, no message
    mode = 2: make Errormessage (TX_Error) if File does not exist
    
    rc = 0 = Fehler; datei existiert NICHT.
    rc = 1 = OK, Datei existiert.

int OS_checkDirExist ( char *  dirnam  ) 

    if dir dirnam does not exist, try to create it.
    Nur testen ob directory existiert: use OS_checkFilExist.
    
    rc = 0 = Fehler; Dir existiert NICHT.
    rc = 1 = Dir sucessfully created.
    rc = 2 = Dir did already exist.


Generated on Sat May 30 09:31:56 2009 for gCAD3D by  doxygen 1.5.6