• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
warning: implicit declaration of function 'mach_reply_port'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

warning: implicit declaration of function 'mach_reply_port'


  • Subject: warning: implicit declaration of function 'mach_reply_port'
  • From: John MacMullin <email@hidden>
  • Date: Fri, 11 Jun 2010 15:08:05 -0700

I have implemented some signal handling straight out of the archives, part of which follows:

#import <signal.h>
#import <mach/mach_error.h>
#import <mach/mach_traps.h>
#include <assert.h>
#include <pthread.h>

.....

void InstallSignalHandler(void)
{
    assert(pthread_main_np());
    if ((signalMachPort = mach_reply_port())) {

.....


I am now receiving a warning error on the build:  warning: implicit declaration of function 'mach_reply_port'

The docs and internet search suggest mach_reply_port is a system call.  That being the case, why the message? What's its declaration and am I missing an include?

John MacMullin

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: warning: implicit declaration of function 'mach_reply_port'
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
  • Next by Date: Re: warning: implicit declaration of function 'mach_reply_port'
  • Previous by thread: Re: duplicate symbol from boost
  • Next by thread: Re: warning: implicit declaration of function 'mach_reply_port'
  • Index(es):
    • Date
    • Thread