Plan 9 from Bell Labs’s /usr/web/sources/contrib/de0u/root/sys/src/cmd/divergefs/common.c

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


#include <u.h>
#include <libc.h>
#include <fcall.h>
#include <thread.h>
#include <9p.h>
#include "common.h"
#include "utils.h"

void *emallocz9p(ulong size)
{
  void *result = emalloc9p(size);
  return memset(result, 0, size);
}

void *emalloc_fs(ulong size)
{
  return emalloc9p(size);
}

void *erealloc_fs(void *p, ulong size)
{
  return erealloc9p(p, size);
}

void *emallocz_fs(ulong size)
{
  return emallocz9p(size);
}

char *estrdup_fs(char *str)
{
  return estrdup9p(str);
}



Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].