[Bug 16107] New: server/mach.c: bootstrap_register is deprecated

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Nov 18 00:38:40 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=16107

           Summary: server/mach.c: bootstrap_register is deprecated
           Product: Wine
           Version: 1.1.8
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Keywords: download, source
          Severity: minor
          Priority: P2
         Component: wineserver
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: austinenglish at gmail.com


gcc -c -I. -I. -I../include -I../include  -D__WINESRC__  -Wall -pipe
-fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings
-Wpointer-arith  -g -O2  -o mach.o mach.c
mach.c: In function ‘init_tracing_mechanism’:
mach.c:104: warning: ‘bootstrap_register’ is deprecated (declared at
/usr/include/servers/bootstrap.h:268)

And from bootstrap.h:

/*
 * bootstrap_register()
 *
 * Registers a send right for service_port with the service identified by
 * service_name.  Attempts to register a service where an active binding
 * already exists are rejected.
 *
 * If the service was previously declared with bootstrap_create_service(),
 * but is not currently active, this call can be used to undeclare the
 * service. The bootstrap port used must have sufficient privilege to
 * do so.  (Registering MACH_PORT_NULL is especially useful for shutting
 * down declared services).
 *
 * This API is deprecated. Old scenarios and recommendations:
 *
 * 1) If the code was registering a well known name, please switch to launchd.
 *
 * 2) If the code was registering a dynamically generated string and passing
 *    the string to other applications, please rewrite the code to send a Mach
 *    send-right directly.
 *
 * 3) If the launchd job maintained an optional Mach service, please reserve
 *    the name with launchd and control the presense of the service through
 *    ownership of the Mach receive right like so.
 *
 *      <key>MachServices</key>
 *      <dict>
 *              <key>com.apple.windowserver</key>
 *              <true/>
 *              <key>com.apple.windowserver.active</key>
 *              <dict>
 *                      <key>HideUntilCheckIn</key>
 *                      <true/>
 *              </dict>
 *      </dict>
 *
 *
 * Errors:      Returns appropriate kernel errors on rpc failure.
 *              Returns BOOTSTRAP_NOT_PRIVILEGED, if request directed to
 *                      bootstrap port without privilege.
 *              Returns BOOTSTRAP_NAME_IN_USE, if service has already been
 *                      register or checked-in.
 */
kern_return_t bootstrap_register(
                mach_port_t bp,
                name_t service_name,
                mach_port_t sp)
               
AVAILABLMAC_OS_X_E_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5;


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the wine-bugs mailing list