C and C++ Programs

Security fix for problem with arguments showing up in Unix ‘ps -ef’ output

#ifndef _OS_H #define _OS_H #ifdef SYS5 #undef SYS5 #endif #ifdef SVR4 #undef SVR4 #endif #ifdef __pyrsoft #define _DCOSX_ #define _OS_ “DCOSX” #define SYS5 #define SVR4 #else #ifdef pyr #define _OSX_ #define _OS_ “OSX” #else #ifdef _SEQUENT_ #define _PTX_ #define _OS_ “PTX” #define SYS5 #else #ifdef sequent #define _DYNIX_ #define _OS_ “DYNIX” #else #ifdef sun #if…

Extracts archive log header information

#include #include #include #include #include #include #include #include #include #include /* 20010123/FLIX alexandre@neutrinos.org To compile the source: just do: gcc -Wall -O2 archivelog_magic.c -o archivelog_magic To use it: 1. archivelog_magic /path/to/my/archivelog 2. cat /path/to/my/archivelog | archivelog_magic What does it do: for earch file, it search for the magic cookie of oracle (AFAIK bits 12-15) then…