Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
94b1c3eb
Commit
94b1c3eb
authored
Apr 11, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Apr 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] knfsd: Remove name_lookup.h that noone is using anymore.
From: NeilBrown <neilb@cse.unsw.edu.au>
parent
5b2b9a81
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
include/linux/sunrpc/name_lookup.h
include/linux/sunrpc/name_lookup.h
+0
-38
No files found.
include/linux/sunrpc/name_lookup.h
deleted
100644 → 0
View file @
5b2b9a81
/*
* map between user/group name and id for a given 'client'
*/
struct
name_ent
{
char
name
[
20
];
};
static
inline
int
name_get_user
(
int
uid
,
struct
name_ent
**
namep
)
{
struct
name_ent
*
n
=
kmalloc
(
sizeof
(
*
n
),
GFP_KERNEL
);
if
(
n
)
sprintf
(
n
->
name
,
"%d"
,
uid
);
*
namep
=
n
;
return
n
?
0
:
-
ENOMEM
;
}
static
inline
int
name_get_group
(
int
uid
,
struct
name_ent
**
namep
)
{
struct
name_ent
*
n
=
kmalloc
(
sizeof
(
*
n
),
GFP_KERNEL
);
if
(
n
)
sprintf
(
n
->
name
,
"%d"
,
uid
);
*
namep
=
n
;
return
n
?
0
:
-
ENOMEM
;
}
static
inline
int
name_get_uid
(
char
*
name
,
int
name_len
,
int
*
uidp
)
{
*
uidp
=
simple_strtoul
(
name
,
NULL
,
0
);
return
0
;
}
static
inline
int
name_get_gid
(
char
*
name
,
int
name_len
,
int
*
gidp
)
{
*
gidp
=
simple_strtoul
(
name
,
NULL
,
0
);
return
0
;
}
static
inline
void
name_put
(
struct
name_ent
*
ent
)
{
kfree
(
ent
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment