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
bb60cd07
Commit
bb60cd07
authored
Mar 09, 2004
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALPHA] Add stat64 syscalls.
parent
4ab28652
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
14 deletions
+28
-14
arch/alpha/kernel/systbls.S
arch/alpha/kernel/systbls.S
+3
-0
fs/stat.c
fs/stat.c
+1
-1
include/asm-alpha/stat.h
include/asm-alpha/stat.h
+20
-12
include/asm-alpha/unistd.h
include/asm-alpha/unistd.h
+4
-1
No files found.
arch/alpha/kernel/systbls.S
View file @
bb60cd07
...
@@ -444,6 +444,9 @@ sys_call_table:
...
@@ -444,6 +444,9 @@ sys_call_table:
.
quad
sys_clock_nanosleep
.
quad
sys_clock_nanosleep
.
quad
sys_semtimedop
.
quad
sys_semtimedop
.
quad
sys_tgkill
.
quad
sys_tgkill
.
quad
sys_stat64
/*
425
*/
.
quad
sys_lstat64
.
quad
sys_fstat64
.
size
sys_call_table
,
.
-
sys_call_table
.
size
sys_call_table
,
.
-
sys_call_table
.
type
sys_call_table
,
@
object
.
type
sys_call_table
,
@
object
...
...
fs/stat.c
View file @
bb60cd07
...
@@ -283,7 +283,7 @@ asmlinkage long sys_readlink(const char __user * path, char __user * buf, int bu
...
@@ -283,7 +283,7 @@ asmlinkage long sys_readlink(const char __user * path, char __user * buf, int bu
/* ---------- LFS-64 ----------- */
/* ---------- LFS-64 ----------- */
#if !defined(__
alpha__) && !defined(__
ia64__) && !defined(__mips64) && !defined(__x86_64__) && !defined(CONFIG_ARCH_S390X)
#if !defined(__ia64__) && !defined(__mips64) && !defined(__x86_64__) && !defined(CONFIG_ARCH_S390X)
static
long
cp_new_stat64
(
struct
kstat
*
stat
,
struct
stat64
__user
*
statbuf
)
static
long
cp_new_stat64
(
struct
kstat
*
stat
,
struct
stat64
__user
*
statbuf
)
{
{
...
...
include/asm-alpha/stat.h
View file @
bb60cd07
#ifndef _ALPHA_STAT_H
#ifndef _ALPHA_STAT_H
#define _ALPHA_STAT_H
#define _ALPHA_STAT_H
struct
__old_kernel_
stat
{
struct
stat
{
unsigned
int
st_dev
;
unsigned
int
st_dev
;
unsigned
int
st_ino
;
unsigned
int
st_ino
;
unsigned
int
st_mode
;
unsigned
int
st_mode
;
...
@@ -14,27 +14,35 @@ struct __old_kernel_stat {
...
@@ -14,27 +14,35 @@ struct __old_kernel_stat {
unsigned
long
st_mtime
;
unsigned
long
st_mtime
;
unsigned
long
st_ctime
;
unsigned
long
st_ctime
;
unsigned
int
st_blksize
;
unsigned
int
st_blksize
;
int
st_blocks
;
unsigned
int
st_blocks
;
unsigned
int
st_flags
;
unsigned
int
st_flags
;
unsigned
int
st_gen
;
unsigned
int
st_gen
;
};
};
struct
stat
{
/* The stat64 structure increases the size of dev_t, blkcnt_t, adds
unsigned
int
st_dev
;
nanosecond resolution times, and padding for expansion. */
unsigned
int
st_ino
;
struct
stat64
{
unsigned
long
st_dev
;
unsigned
long
st_ino
;
unsigned
long
st_rdev
;
long
st_size
;
unsigned
long
st_blocks
;
unsigned
int
st_mode
;
unsigned
int
st_mode
;
unsigned
int
st_nlink
;
unsigned
int
st_uid
;
unsigned
int
st_uid
;
unsigned
int
st_gid
;
unsigned
int
st_gid
;
unsigned
int
st_rdev
;
unsigned
int
st_blksize
;
long
st_size
;
unsigned
int
st_nlink
;
unsigned
int
__pad0
;
unsigned
long
st_atime
;
unsigned
long
st_atime
;
unsigned
long
st_atime_nsec
;
unsigned
long
st_mtime
;
unsigned
long
st_mtime
;
unsigned
long
st_mtime_nsec
;
unsigned
long
st_ctime
;
unsigned
long
st_ctime
;
unsigned
int
st_blksize
;
unsigned
long
st_ctime_nsec
;
int
st_blocks
;
long
__unused
[
3
];
unsigned
int
st_flags
;
unsigned
int
st_gen
;
};
};
#endif
#endif
include/asm-alpha/unistd.h
View file @
bb60cd07
...
@@ -360,7 +360,10 @@
...
@@ -360,7 +360,10 @@
#define __NR_clock_nanosleep 422
#define __NR_clock_nanosleep 422
#define __NR_semtimedop 423
#define __NR_semtimedop 423
#define __NR_tgkill 424
#define __NR_tgkill 424
#define NR_SYSCALLS 425
#define __NR_stat64 425
#define __NR_lstat64 426
#define __NR_fstat64 427
#define NR_SYSCALLS 428
#if defined(__GNUC__)
#if defined(__GNUC__)
...
...
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