Update of /cvsroot/fink/experimental/dmacks/misc
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv10504

Added Files:
        portcheck.c 
Log Message:
Can't figure out a situation where this returns false?


--- NEW FILE: portcheck.c ---
/* from msachs */
/* exit indicates if Aqua GUI is available */

/* gcc -framework CoreFoundation -o portcheck portcheck.c */
#include <CoreFoundation/CoreFoundation.h>
#include <stdio.h>

int main(int argc, char *argv[]) {
        CFMessagePortRef port = NULL;
        CFMessagePortContext context = {0, NULL, NULL, NULL, NULL};

        port = CFMessagePortCreateLocal(NULL, CFSTR("hello-port"), NULL, 
&context, NULL);
        printf("%x\n", port);

        if(port == NULL)
                return 1;
        else {
                CFRelease(port);
                return 0;
        }
}



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to