Deleted Added
full compact
fdesc_vnops.c (1541) fdesc_vnops.c (1549)
1/*
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software donated to Berkeley by
6 * Jan-Simon Pendry.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 74 unchanged lines hidden (view full) ---

83 struct fdescnode *fc_back;
84};
85
86static struct fdcache fdcache[NFDCACHE];
87
88/*
89 * Initialise cache headers
90 */
1/*
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software donated to Berkeley by
6 * Jan-Simon Pendry.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 74 unchanged lines hidden (view full) ---

83 struct fdescnode *fc_back;
84};
85
86static struct fdcache fdcache[NFDCACHE];
87
88/*
89 * Initialise cache headers
90 */
91int
91fdesc_init()
92{
93 struct fdcache *fc;
94
95 devctty = makedev(nchrdev, 0);
96
97 for (fc = fdcache; fc < fdcache + NFDCACHE; fc++)
98 fc->fc_forw = fc->fc_back = (struct fdescnode *) fc;
92fdesc_init()
93{
94 struct fdcache *fc;
95
96 devctty = makedev(nchrdev, 0);
97
98 for (fc = fdcache; fc < fdcache + NFDCACHE; fc++)
99 fc->fc_forw = fc->fc_back = (struct fdescnode *) fc;
100 return (0);
99}
100
101/*
102 * Compute hash list for given target vnode
103 */
104static struct fdcache *
105fdesc_hash(ix)
106 int ix;

--- 71 unchanged lines hidden (view full) ---

178 struct componentname * a_cnp;
179 } */ *ap;
180{
181 struct vnode **vpp = ap->a_vpp;
182 struct vnode *dvp = ap->a_dvp;
183 char *pname;
184 struct proc *p;
185 int nfiles;
101}
102
103/*
104 * Compute hash list for given target vnode
105 */
106static struct fdcache *
107fdesc_hash(ix)
108 int ix;

--- 71 unchanged lines hidden (view full) ---

180 struct componentname * a_cnp;
181 } */ *ap;
182{
183 struct vnode **vpp = ap->a_vpp;
184 struct vnode *dvp = ap->a_dvp;
185 char *pname;
186 struct proc *p;
187 int nfiles;
186 unsigned fd;
188 unsigned fd = 0;
187 int error;
188 struct vnode *fvp;
189 char *ln;
190
191 pname = ap->a_cnp->cn_nameptr;
192 if (ap->a_cnp->cn_namelen == 1 && *pname == '.') {
193 *vpp = dvp;
194 VREF(dvp);

--- 600 unchanged lines hidden (view full) ---

795 vp->v_data = 0;
796
797 return (0);
798}
799
800/*
801 * Return POSIX pathconf information applicable to special devices.
802 */
189 int error;
190 struct vnode *fvp;
191 char *ln;
192
193 pname = ap->a_cnp->cn_nameptr;
194 if (ap->a_cnp->cn_namelen == 1 && *pname == '.') {
195 *vpp = dvp;
196 VREF(dvp);

--- 600 unchanged lines hidden (view full) ---

797 vp->v_data = 0;
798
799 return (0);
800}
801
802/*
803 * Return POSIX pathconf information applicable to special devices.
804 */
805int
803fdesc_pathconf(ap)
804 struct vop_pathconf_args /* {
805 struct vnode *a_vp;
806 int a_name;
807 int *a_retval;
808 } */ *ap;
809{
810

--- 164 unchanged lines hidden ---
806fdesc_pathconf(ap)
807 struct vop_pathconf_args /* {
808 struct vnode *a_vp;
809 int a_name;
810 int *a_retval;
811 } */ *ap;
812{
813

--- 164 unchanged lines hidden ---