⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sfs.h.svn-base

📁 SFS是一个完全分散控制的的网路档案系统。sfslite 用于简化事件驱动网络编程的有用组件。
💻 SVN-BASE
字号:
/* -*-c++-*- *//* $Id$ *//* * * Copyright (C) 1999 David Mazieres (dm@uun.org) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * */#ifndef _SFS_H_INCLUDED_#define _SFS_H_INCLUDED_ 1#ifdef __cplusplusextern "C" {#endif /* __cplusplus */#include <sys/types.h>#include <sys/stat.h>struct stat;struct sfs_desc {  char fsname[256];  unsigned fhsize;  char fhdata[64];};typedef struct sfs_desc sfs_desc;int sfs_getdesc (struct sfs_desc *sdp, const char *path);int sfs_lgetdesc (struct sfs_desc *sdp, const char *path);int sfs_fgetdesc (struct sfs_desc *sdp, int fd);#define sfs_idnamelen 32struct sfs_names {  char uidname[sfs_idnamelen + 2];  char gidname[sfs_idnamelen + 2];};typedef struct sfs_names sfs_names;int sfs_stat2names (sfs_names *snp, const struct stat *sb);int sfs_uidbyname (const char *uidname, dev_t dev);int sfs_gidbyname (const char *gidname, dev_t dev);#define sfs_maxgroups 16struct sfs_remoteid {  int valid;  unsigned uid;  unsigned gid;  unsigned ngroups;  unsigned groups[sfs_maxgroups];};typedef struct sfs_remoteid sfs_remoteid;int sfs_getremoteid (sfs_remoteid *rip, dev_t dev);void sfs_flush_idcache ();#ifdef __cplusplus}#endif /* __cplusplus */#endif /* !_SFS_H_INCLUDED_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -