home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / unixlib / !UnixLib / src / unix / c / link < prev    next >
Encoding:
Text File  |  1994-09-30  |  409 b   |  25 lines

  1. static char sccs_id[] = "@(#) link.c 2.0 " __DATE__ " HJR";
  2.  
  3. /* link.c (c) Copyright 1990 H.Rogers */
  4.  
  5. #include <errno.h>
  6.  
  7. #include "sys/unix.h"
  8. #include "sys/os.h"
  9.  
  10. int
  11. link (register char *ofile, register char *nfile)
  12. {
  13.   os_error *e;
  14.  
  15.   ofile = __uname (ofile, 0);
  16.   nfile = __uname (nfile, 1);
  17.  
  18.   if (e = os_fsctrl (25, ofile, nfile, 0))
  19.     {
  20.       __seterr (e);
  21.       return (-1);
  22.     }
  23.   return (0);
  24. }
  25.