Anteprima
Vedrai una selezione di 1 pagina su 2
Sistemi operativi - Syscall perror Pag. 1
1 su 2
D/illustrazione/soddisfatti o rimborsati
Disdici quando
vuoi
Acquista con carta
o PayPal
Scarica i documenti
tutte le volte che vuoi
Estratto del documento

perror - write error messages to standard error

The Single UNIX ® Specification, Version 2

Copyright © 1997 The Open Group

NAME

perror - write error messages to standard error

SYNOPSIS

#include <stdio.h>
void perror(const char *s);

DESCRIPTION

The perror() function maps the error number accessed through the symbol errno to a language-dependent error message, which is written to the standard error stream as follows:

  • first (if s is not a null pointer and the character pointed to by s is not the null byte), the string pointed to by s followed by a colon and a space character;
  • then an error message string followed by a newline character.

The contents of the error message strings are the same as those returned by strerror() with argument errno.

The perror() function will mark the file associated with the standard error stream as having been written (st_ctime, st_mtime marked for update) at some time between its successful completion and exit(), abort(), or the completion of the program by a call to exit() or abort().

of fflush() or fclose() on stderr.

The perror() function does not change the orientation of the standard error stream.

RETURN VALUE

The perror() function returns no value.

ERRORS

No errors are defined.

EXAMPLES

None.

APPLICATION USAGE

None.

FUTURE DIRECTIONS

None.

SEE ALSO

1 di 2 10/06/2010 16:40

Dettagli
Publisher
A.A. 2012-2013
2 pagine
SSD Scienze matematiche e informatiche INF/01 Informatica

I contenuti di questa pagina costituiscono rielaborazioni personali del Publisher N. A. di informazioni apprese con la frequenza delle lezioni di Sistemi operativi e studio autonomo di eventuali libri di riferimento in preparazione dell'esame finale o della tesi. Non devono intendersi come materiale ufficiale dell'università Università degli studi di Napoli Federico II o del prof Cotroneo Domenico.