File:  [MW Coherent from dump] / coherent / g / usr / lib / uucp / tay104 / unix / lcksys.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* lcksys.c
   Lock and unlock a remote system.  */

#include "uucp.h"

#include "uudefs.h"
#include "uuconf.h"
#include "sysdep.h"
#include "system.h"

/* Lock a remote system.  */

boolean
fsysdep_lock_system (qsys)
     const struct uuconf_system *qsys;
{
  char *z;
  boolean fret;

  z = zbufalc (strlen (qsys->uuconf_zname) + sizeof "LCK..");
  sprintf (z, "LCK..%.8s", qsys->uuconf_zname);
  fret = fsdo_lock (z, FALSE, (boolean *) NULL);
  ubuffree (z);
  return fret;
}

/* Unlock a remote system.  */

boolean
fsysdep_unlock_system (qsys)
     const struct uuconf_system *qsys;
{
  char *z;
  boolean fret;

  z = zbufalc (strlen (qsys->uuconf_zname) + sizeof "LCK..");
  sprintf (z, "LCK..%.8s", qsys->uuconf_zname);
  fret = fsdo_unlock (z, FALSE);
  ubuffree (z);
  return fret;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.