The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/fs/nwfs/nwfs_subr.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 1999, Boris Popov
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer.
   10  * 2. Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in the
   12  *    documentation and/or other materials provided with the distribution.
   13  * 3. All advertising materials mentioning features or use of this software
   14  *    must display the following acknowledgement:
   15  *    This product includes software developed by Boris Popov.
   16  * 4. Neither the name of the author nor the names of any co-contributors
   17  *    may be used to endorse or promote products derived from this software
   18  *    without specific prior written permission.
   19  *
   20  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   21  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   22  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   23  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   24  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   25  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   26  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   27  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   28  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   29  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   30  * SUCH DAMAGE.
   31  *
   32  * $FreeBSD$
   33  */
   34 #ifndef _NWFS_SUBR_H_
   35 #define _NWFS_SUBR_H_
   36 
   37 extern int nwfs_debuglevel;
   38 
   39 #ifdef MALLOC_DECLARE
   40 MALLOC_DECLARE(M_NWFSDATA);
   41 #endif
   42 
   43 struct ncp_conn;
   44 struct ncp_nlstables;
   45 struct ncp_open_info;
   46 struct nw_entry_info;
   47 struct nw_search_info;
   48 struct nwmount;
   49 struct thread;
   50 struct timespec;
   51 struct ucred;
   52 struct vattr;
   53 struct vnode;
   54 
   55 int  ncp_initsearch(struct vnode *dvp,struct thread *td, struct ucred *cred);
   56 int  ncp_search_for_file_or_subdir(struct nwmount *nmp,struct nw_search_seq *seq,
   57                 struct nw_entry_info *target,
   58                 struct thread *td, struct ucred *cred);
   59 int  ncp_lookup(struct vnode *dvp, int len, char *name, struct nw_entry_info *fap,
   60                 struct thread *td, struct ucred *cred);
   61 int  ncp_lookup_volume(struct ncp_conn *conn, char *volname, 
   62                 u_char *volNum, u_int32_t *dirEnt,
   63                 struct thread *td, struct ucred *cred);
   64 int  ncp_close_file(struct ncp_conn *conn, ncp_fh *fh,
   65                 struct thread *td, struct ucred *cred);
   66 int  ncp_open_create_file_or_subdir(struct nwmount *nmp,struct vnode *dvp, int namelen,char *name,
   67                 int open_create_mode, u_int32_t create_attributes,
   68                 int desired_acc_rights, struct ncp_open_info *nop,
   69                 struct thread *td, struct ucred *cred);
   70 int  ncp_DeleteNSEntry(struct nwmount *nmp, 
   71                 u_int32_t dirent, int namelen, char *name,
   72                 struct thread *td, struct ucred *cred);
   73 int  ncp_nsrename(struct ncp_conn *conn, int volume, int ns, int oldtype, 
   74         struct ncp_nlstables *nt,
   75         nwdirent fdir, char *old_name, int oldlen,
   76         nwdirent tdir, char *new_name, int newlen,
   77         struct thread *td, struct ucred *cred);
   78 int  ncp_obtain_info(struct nwmount *nmp, u_int32_t dirent,
   79                 int namelen, char *path, struct nw_entry_info *target,
   80                 struct thread *td, struct ucred *cred);
   81 int  ncp_modify_file_or_subdir_dos_info(struct nwmount *nmp, struct vnode *vp, 
   82                 u_int32_t info_mask,
   83                 struct nw_modify_dos_info *info,
   84                 struct thread *td, struct ucred *cred);
   85 int  ncp_setattr(struct vnode *,struct vattr *,struct ucred *,struct thread *td);
   86 int  ncp_get_namespaces(struct ncp_conn *conn, u_int32_t volume, int *nsf,
   87                 struct thread *td, struct ucred *cred);
   88 int  ncp_get_volume_info_with_number(struct ncp_conn *conn, 
   89                 int n, struct ncp_volume_info *target,
   90                 struct thread *td, struct ucred *cred);
   91 
   92 void ncp_unix2dostime (struct timespec *tsp, int tz, u_int16_t *ddp, 
   93              u_int16_t *dtp, u_int8_t *dhp);
   94 void ncp_dos2unixtime (u_int dd, u_int dt, u_int dh, int tz, struct timespec *tsp);
   95 
   96 #endif /* !_NWFS_SUBR_H_ */

Cache object: cba3fb9646bd6a341cc44e61045a1eae


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.