home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / fonts / lib / fs / FSSync.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-21  |  1.7 KB  |  48 lines

  1. /* $XConsortium: FSSync.c,v 1.4 92/05/26 17:14:57 gildea Exp $ */
  2. /*
  3.  * Copyright 1990 Network Computing Devices;
  4.  * Portions Copyright 1987 by Digital Equipment Corporation and the
  5.  * Massachusetts Institute of Technology
  6.  *
  7.  * Permission to use, copy, modify, distribute, and sell this software and
  8.  * its documentation for any purpose is hereby granted without fee, provided
  9.  * that the above copyright notice appear in all copies and that both that
  10.  * copyright notice and this permission notice appear in supporting
  11.  * documentation, and that the names of Network Computing Devices, Digital or
  12.  * M.I.T. not be used in advertising or publicity pertaining to distribution
  13.  * of the software without specific, written prior permission.
  14.  *
  15.  * NETWORK COMPUTING DEVICES, DIGITAL AND M.I.T. DISCLAIM ALL WARRANTIES WITH
  16.  * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
  17.  * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES,
  18.  * DIGITAL OR M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
  19.  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  20.  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  21.  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
  22.  * THIS SOFTWARE.
  23.  */
  24.  
  25. #include "FSlibint.h"
  26.  
  27. extern _FSQEvent *_FSqfree;
  28.  
  29. /* synchronize with errors and events */
  30.  
  31. FSSync(svr, discard)
  32.     FSServer     *svr;
  33.     Bool        discard;
  34. {
  35.     fsListExtensionsReply rep;
  36.     fsReq      *req;
  37.  
  38.     GetEmptyReq(ListExtensions, req);
  39.     (void) _FSReply(svr, (fsReply *) & rep, 0, fsTrue);
  40.  
  41.     if (discard && svr->head) {
  42.     ((_FSQEvent *) svr->tail)->next = _FSqfree;
  43.     _FSqfree = (_FSQEvent *) svr->head;
  44.     svr->head = svr->tail = NULL;
  45.     svr->qlen = 0;
  46.     }
  47. }
  48.