Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/runtime/Builtin/primEqHandlePosn.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>

#include <errno.h>

#include "haskell2c.h"


int primEqHandlePosnC (fpos_t* n1, fpos_t* n2)
{
  int err;
  err = memcmp(n1,n2,sizeof(fpos_t));
  return !err;
}

int primEqHandleC (FileDesc* n1, FileDesc* n2)
{
  int err;
  err = strcmp(n1->path,n2->path);
  return !err;
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.