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

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



enum { FS_READ_BUFFER_MAX = 8192 };

#define return_9p_response(reason) \
  respond(request, (reason)); \
  return

#define return_9p_error(reason) \
  respond(request, (reason)); \
  return

#define return_9p_error_if(exp, reason) \
  if(exp) { return_9p_error(reason); }

#define return_9p_success() \
  respond(request, nil); \
  return


typedef struct Matcher Matcher;

typedef struct Setting Setting;

/* See 9fans "new compiler" 2005-01-07 */
#pragma incomplete Setting 
#pragma incomplete Matcher

Setting *setting_new(char *rulefile, char *mountpoint, char *holefile);
Setting *setting_default_path_new(
  char *defaultpath, char *rulefile, char *mountpoint, char *holefile);

/** starts fs */
void fs_start(Setting *setting);

/** enable 9p srv debugging messages */
void fs_native_9p_debug_enable(void);


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.