Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postfix/src/util/   (Postfix Mailserver Version 3.11©)  Datei vom 11.9.2024 mit Größe 945 B image not shown  

Quelle  duplex_pipe.c

  Sprache: C
 

/*++
/* NAME
/* duplex_pipe 3
/* SUMMARY
/* local IPD
/* SYNOPSIS
/* #include <iostuff.h>
/*
/* int duplex_pipe(fds)
/* int *fds;
/* DESCRIPTION
/* duplex_pipe() uses whatever local primitive it takes
/* to get a two-way I/O channel.
/* DIAGNOSTICS
/* A null result means success. In case of error, the result
/* is -1 and errno is set to the appropriate number.
/* LICENSE
/* .ad
/* .fi
/* The Secure Mailer license must be distributed with this software.
/* AUTHOR(S)
/* Wietse Venema
/* IBM T.J. Watson Research
/* P.O. Box 704
/* Yorktown Heights, NY 10598, USA
/*--*/


/* System libraries */

#include <sys_defs.h>
#include <sys/socket.h>
#include <unistd.h>

/* Utility library. */

#include "iostuff.h"
#include "sane_socketpair.h"

/* duplex_pipe - give me a duplex pipe or bust */

int     duplex_pipe(int *fds)
{
#ifdef HAS_DUPLEX_PIPE
    return (pipe(fds));
#else
    return (sane_socketpair(AF_UNIX, SOCK_STREAM, 0, fds));
#endif
}

Messung V0.5 in Prozent
C=75 H=92 G=83

¤ 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.