Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mach_error(3) — NEXTSTEP 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

mach_error(3)  —  UNIX Programmer’s Manual

NAME

mach_error − print a Mach-related error message on stderr
mach_errormsg − return a string corresponding to a Mach error code

SYNOPSIS

#include <mach.h>
 void mach_error(char str, kern_return_t errno)
 char ∗mach_errormsg(kern_return_t errno)

DESCRIPTION

The mach_errormsg library routine returns human readable strings corresponding to the specified Mach return values.  These strings are statically allocated in the Mach library.  Pointers to these strings are returned. 

The mach_error library routine uses mach_errormsg to print a message on stderr.  The message is formatted by first printing the strings specified by str, followed by the string returned by mach_errormsg.  This is then followed by the actual number (errno) specified in the call (useful when the return code is bogus). 

NeXT, Inc.  —  March 24, 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026