From: David Howells <dhowells@redhat.com>
To: torvalds@osdl.org, akpm@osdl.org, bernds_cb1@t-online.de,
sam@ravnborg.org
Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org
Subject: [PATCH 5/8] FDPIC: Define SEEK_* constants in the Linux kernel headers [try #4]
Date: Fri, 07 Jul 2006 12:47:49 +0100 [thread overview]
Message-ID: <20060707114749.948.57596.stgit@warthog.cambridge.redhat.com> (raw)
In-Reply-To: <20060707114738.948.76567.stgit@warthog.cambridge.redhat.com>
From: David Howells <dhowells@redhat.com>
Add definitions for SEEK_SET, SEEK_CUR and SEEK_END to the kernel header files.
Signed-Off-By: David Howells <dhowells@redhat.com>
---
include/linux/fs.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 43aef9b..2561020 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -27,6 +27,10 @@ #define INR_OPEN 1024 /* Initial settin
#define BLOCK_SIZE_BITS 10
#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
+#define SEEK_SET 0 /* seek relative to beginning of file */
+#define SEEK_CUR 1 /* seek relative to current file position */
+#define SEEK_END 2 /* seek relative to end of file */
+
/* And dynamically-tunable limits and defaults: */
struct files_stat_struct {
int nr_files; /* read only */
next prev parent reply other threads:[~2006-07-07 11:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-07 11:47 [PATCH 0/8] Fix FRV, ELF-FDPIC and NOMMU stuff " David Howells
2006-07-07 11:47 ` [PATCH 1/8] FRV: Fix FRV arch compile errors " David Howells
2006-07-07 11:47 ` [PATCH 2/8] NOMMU: Fix execution off of ramfs with mmap() " David Howells
2006-07-07 11:47 ` [PATCH 3/8] FDPIC: Fix FDPIC compile errors " David Howells
2006-07-07 11:47 ` [PATCH 4/8] FDPIC: Adjust the ELF-FDPIC driver to conform more to the CodingStyle " David Howells
2006-07-07 11:47 ` David Howells [this message]
2006-07-07 11:47 ` [PATCH 6/8] FDPIC: Move roundup() into linux/kernel.h " David Howells
2006-07-07 11:47 ` [PATCH 7/8] FDPIC: Add coredump capability for the ELF-FDPIC binfmt " David Howells
2006-07-07 11:47 ` [PATCH 8/8] FRV: Introduce asm-offsets for FRV arch " David Howells
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060707114749.948.57596.stgit@warthog.cambridge.redhat.com \
--to=dhowells@redhat.com \
--cc=akpm@osdl.org \
--cc=bernds_cb1@t-online.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome