1 /* This file is part of the Project Athena Zephyr Notification System.
2 * It contains source for the ZNewLocateUser function.
4 * Created by: Robert French
6 * $Id: ZNewLocU.c,v 1.10 1999/01/22 23:19:17 ghudson Exp $
8 * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of Technology.
9 * For copying and distribution information, see the file
16 static const char rcsid_ZNewLocateUser_c[] =
17 "$Id: ZNewLocU.c,v 1.10 1999/01/22 23:19:17 ghudson Exp $";
20 Code_t ZLocateUser(user, nlocs, auth)
27 ZAsyncLocateData_t zald;
29 (void) ZFlushLocations(); /* ZFlushLocations never fails (the library
30 is allowed to know this). */
32 if ((retval = ZRequestLocations(user, &zald, UNACKED, auth)) != ZERR_NONE)
35 retval = Z_WaitForNotice (¬ice, ZCompareALDPred, &zald, SRV_TIMEOUT);
36 if (retval == ZERR_NONOTICE)
38 if (retval != ZERR_NONE)
41 if ((retval = ZParseLocations(¬ice, &zald, nlocs, NULL)) != ZERR_NONE) {