diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-02-17 22:57:36 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-02-17 22:57:36 +0000 |
commit | 910725398e3bd336f172ffe962b0202f69813cfc (patch) | |
tree | 5ffa2d505e8dd349ff9e752b2ee4c6927ba5d0b9 /libtrivfs | |
parent | 376e59dc3b25ebc6f44d44ae323bbd66b3c4fc25 (diff) |
Initial revision
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/dir-link.c | 30 | ||||
-rw-r--r-- | libtrivfs/dir-mkdir.c | 24 | ||||
-rw-r--r-- | libtrivfs/dir-mkfile.c | 28 | ||||
-rw-r--r-- | libtrivfs/dir-readdir.c | 29 | ||||
-rw-r--r-- | libtrivfs/dir-rename.c | 28 | ||||
-rw-r--r-- | libtrivfs/dir-rmdir.c | 26 | ||||
-rw-r--r-- | libtrivfs/dir-unlink.c | 24 | ||||
-rw-r--r-- | libtrivfs/file-get-trans.c | 26 | ||||
-rw-r--r-- | libtrivfs/file-get-transcntl.c | 25 | ||||
-rw-r--r-- | libtrivfs/file-set-trans.c | 29 | ||||
-rw-r--r-- | libtrivfs/io-read.c | 26 | ||||
-rw-r--r-- | libtrivfs/io-seek.c | 25 | ||||
-rw-r--r-- | libtrivfs/io-write.c | 26 |
13 files changed, 346 insertions, 0 deletions
diff --git a/libtrivfs/dir-link.c b/libtrivfs/dir-link.c new file mode 100644 index 00000000..09c99156 --- /dev/null +++ b/libtrivfs/dir-link.c @@ -0,0 +1,30 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +error_t +trivfs_S_dir_link (struct protid *file, struct protid *dir, char *name) +{ + if (!file) + return EOPNOTSUPP; + if (!dir) + return EXDEV; + return ENOTDIR; +} + + diff --git a/libtrivfs/dir-mkdir.c b/libtrivfs/dir-mkdir.c new file mode 100644 index 00000000..587fd4af --- /dev/null +++ b/libtrivfs/dir-mkdir.c @@ -0,0 +1,24 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +error_t +trivfs_S_dir_mkdir (struct protid *cred, char *name, mode_t mode) +{ + return cred ? ENOTDIR : EOPNOTSUPP; +} diff --git a/libtrivfs/dir-mkfile.c b/libtrivfs/dir-mkfile.c new file mode 100644 index 00000000..2698e121 --- /dev/null +++ b/libtrivfs/dir-mkfile.c @@ -0,0 +1,28 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +error_t +trivfs_S_dir_mkfile (struct protid *file, + int flags, + mode_t mode, + mach_port_t *newnod, + mach_msg_type_name_t *newnodetype) +{ + return file ? ENOTDIR : EOPNOTSUPP; +} diff --git a/libtrivfs/dir-readdir.c b/libtrivfs/dir-readdir.c new file mode 100644 index 00000000..d940c5af --- /dev/null +++ b/libtrivfs/dir-readdir.c @@ -0,0 +1,29 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +error_t +trivfs_S_dir_readdir (struct protid *cred, + char *data, + u_int *datalen, + off_t offset, + off_t *nextoff, + int amt) +{ + return cred ? EOPNOTSUPP : ENOTDIR; +} diff --git a/libtrivfs/dir-rename.c b/libtrivfs/dir-rename.c new file mode 100644 index 00000000..4b03afc2 --- /dev/null +++ b/libtrivfs/dir-rename.c @@ -0,0 +1,28 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +trivfs_S_dir_rename (struct protid *cred, char *name, + struct protid *cred2, char *name) +{ + if (!cred) + return EOPNOTSUPP; + if (!cred2) + return EXDEV; + return ENOTDIR; +} diff --git a/libtrivfs/dir-rmdir.c b/libtrivfs/dir-rmdir.c new file mode 100644 index 00000000..e5e8c989 --- /dev/null +++ b/libtrivfs/dir-rmdir.c @@ -0,0 +1,26 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +error_t +trivfs_S_dir_rmdir (struct protid *cred, char *name) +{ + return cred ? ENOTDIR : EOPNOTSUPP; +} + + diff --git a/libtrivfs/dir-unlink.c b/libtrivfs/dir-unlink.c new file mode 100644 index 00000000..4664c03e --- /dev/null +++ b/libtrivfs/dir-unlink.c @@ -0,0 +1,24 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +error_t +trivfs_S_dir_unlink (struct protid *cred, char *name) +{ + return cred ? ENOTDIR : EOPNOTSUPP; +} diff --git a/libtrivfs/file-get-trans.c b/libtrivfs/file-get-trans.c new file mode 100644 index 00000000..20f54721 --- /dev/null +++ b/libtrivfs/file-get-trans.c @@ -0,0 +1,26 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +error_t +trivfs_S_get_trans (struct protid *cred, + char *trans, + u_int *translen) +{ + return EOPNOTSUPP; +} diff --git a/libtrivfs/file-get-transcntl.c b/libtrivfs/file-get-transcntl.c new file mode 100644 index 00000000..357a058d --- /dev/null +++ b/libtrivfs/file-get-transcntl.c @@ -0,0 +1,25 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +error_t +trivfs_S_file_get_translator_cntl (struct protid *cred, + mach_port_t *cntl) +{ + return EOPNOTSUPP; +} diff --git a/libtrivfs/file-set-trans.c b/libtrivfs/file-set-trans.c new file mode 100644 index 00000000..e561002b --- /dev/null +++ b/libtrivfs/file-set-trans.c @@ -0,0 +1,29 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +error_t +trivfs_S_file_set_translator (struct protid *cred, + int flags, + int oldtransflags, + char *trans, + u_int *translen, + mach_port_t existing) +{ + return EOPNOTSUPP; +} diff --git a/libtrivfs/io-read.c b/libtrivfs/io-read.c new file mode 100644 index 00000000..7813ded9 --- /dev/null +++ b/libtrivfs/io-read.c @@ -0,0 +1,26 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +error_t +trivfs_S_io_read (struct protid *cred, + char *data, + u_int *datalen, + off_t off, + int amt) +{ + return EOPNOTSUPP; +} diff --git a/libtrivfs/io-seek.c b/libtrivfs/io-seek.c new file mode 100644 index 00000000..17db5bdb --- /dev/null +++ b/libtrivfs/io-seek.c @@ -0,0 +1,25 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +error_t +trivfs_S_io_seek (struct protid *cred, + off_t off, + int whence, + off_t *newp) +{ + return EOPNOTSUPP; +} diff --git a/libtrivfs/io-write.c b/libtrivfs/io-write.c new file mode 100644 index 00000000..47b06fd5 --- /dev/null +++ b/libtrivfs/io-write.c @@ -0,0 +1,26 @@ +/* + Copyright (C) 1994 Free Software Foundation + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +error_t +trivfs_S_io_write (struct protid *cred, + char *data, + u_int datalen, + off_t off, + int *amt) +{ + return EOPNOTSUPP; +} |