Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  wrap_stat.c

  Sprache: C
 

/*++
/* NAME
/* wrap_stat 3
/* SUMMARY
/* mockable stat/lstat wrappers
/* SYNOPSIS
/* #include <wrap_stat.h>
/*
/* int     wrap_stat(
/* const char *path,
/* struct stat *st)
/*
/* int     wrap_lstat(
/* const char *path,
/* struct stat *st)
/* DESCRIPTION
/* This module is a NOOP when the NO_MOCK_WRAPPERS macro is
/* defined.
/*
/* By default this module redirects stat() and lstat() calls to
/* the above listed wrapper functions that may be overridden with
/* mocks. This arrangement prevents mock stat() or lstat() functions
/* from interfering with stat() or lstat() calls made by system
/* libraries or by third-party libraries.
/* LICENSE
/* .ad
/* .fi
/* The Secure Mailer license must be distributed with this software.
/* AUTHOR(S)
/* Wietse Venema
/* porcupine.org
/*--*/


 /*
  * System library.
  */

#include <sys_defs.h>
#include <sys/stat.h>

 /*
  * Utility library.
  */

#include <wrap_stat.h>

/* wrap_stat - mockable wrapper */

int     wrap_stat(const char *path, struct stat *st)
{
#undef stat
    return (stat (path, st));
}

/* wrap_lstat - mockable wrapper */

int     wrap_lstat(const char *path, struct stat *st)
{
#undef lstat
    return (lstat(path, st));
}

Messung V0.5 in Prozent
C=71 H=93 G=82

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-08-09) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=738142