mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: monstr@seznam.cz
To: linux-kernel@vger.kernel.org
Cc: arnd@arndb.de, linux-arch@vger.kernel.org,
	stephen.neuendorffer@xilinx.com, John.Linn@xilinx.com,
	john.williams@petalogix.com, matthew@wil.cx,
	will.newton@gmail.com, drepper@redhat.com,
	microblaze-uclinux@itee.uq.edu.au, grant.likely@secretlab.ca,
	Michal Simek <monstr@monstr.eu>
Subject: [PATCH 49/56] microblaze_v2: fcntl.h sockios.h ucontext.h
Date: Sun,  4 May 2008 13:41:38 +0200	[thread overview]
Message-ID: <231ae415bf52de25c69f727fd13c50d201f8ecd8.1209897267.git.monstr@monstr.eu> (raw)
In-Reply-To: <643084ee3819dd169cad3c4e3565c5ff20dd3429.1209897267.git.monstr@monstr.eu>
In-Reply-To: <a4a778e34c66d126f5c4bf1ca423cf32950ea5ab.1209897266.git.monstr@monstr.eu>

From: Michal Simek <monstr@monstr.eu>


Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 include/asm-microblaze/fcntl.h    |  104 +++++++++++++++++++++++++++++++++++++
 include/asm-microblaze/sockios.h  |   25 +++++++++
 include/asm-microblaze/ucontext.h |   24 +++++++++
 3 files changed, 153 insertions(+), 0 deletions(-)
 create mode 100644 include/asm-microblaze/fcntl.h
 create mode 100644 include/asm-microblaze/sockios.h
 create mode 100644 include/asm-microblaze/ucontext.h

diff --git a/include/asm-microblaze/fcntl.h b/include/asm-microblaze/fcntl.h
new file mode 100644
index 0000000..b8706c9
--- /dev/null
+++ b/include/asm-microblaze/fcntl.h
@@ -0,0 +1,104 @@
+/*
+ * include/asm-microblaze/fcntl.h
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2006 Atmark Techno, Inc.
+ */
+
+#ifndef _ASM_MICROBLAZE_FCNTL_H
+#define _ASM_MICROBLAZE_FCNTL_H
+
+/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
+ located on an ext2 file system */
+#define O_ACCMODE	0003
+#define O_RDONLY	00
+#define O_WRONLY	01
+#define O_RDWR		02
+#define O_CREAT		0100 /* not fcntl */
+#define O_EXCL		0200 /* not fcntl */
+#define O_NOCTTY	0400 /* not fcntl */
+#define O_TRUNC		01000 /* not fcntl */
+#define O_APPEND	02000
+#define O_NONBLOCK	04000
+#define O_NDELAY	O_NONBLOCK
+#define O_SYNC		010000
+#define FASYNC		020000 /* fcntl, for BSD compatibility */
+#define O_DIRECTORY	040000 /* must be a directory */
+#define O_NOFOLLOW	0100000 /* don't follow links */
+#define O_LARGEFILE	0200000
+#define O_DIRECT	0400000 /* direct disk access hint */
+#define O_NOATIME	01000000
+#define O_CLOEXEC	02000000
+
+#define F_DUPFD		0 /* dup */
+#define F_GETFD		1 /* get close_on_exec */
+#define F_SETFD		2 /* set/clear close_on_exec */
+#define F_GETFL		3 /* get file->f_flags */
+#define F_SETFL		4 /* set file->f_flags */
+#define F_GETLK		5
+#define F_SETLK		6
+#define F_SETLKW	7
+
+#define F_SETOWN	8 /* for sockets. */
+#define F_GETOWN	9 /* for sockets. */
+#define F_SETSIG	10 /* for sockets. */
+#define F_GETSIG	11 /* for sockets. */
+
+#define F_GETLK64	12 /* using 'struct flock64' */
+#define F_SETLK64	13
+#define F_SETLKW64	14
+
+/* for F_[GET|SET]FL */
+#define FD_CLOEXEC	1 /* actually anything with low bit set goes */
+
+/* for posix fcntl() and lockf() */
+#define F_RDLCK		0
+#define F_WRLCK		1
+#define F_UNLCK		2
+
+/* for old implementation of bsd flock () */
+#define F_EXLCK		4 /* or 3 */
+#define F_SHLCK		8 /* or 4 */
+
+/* for leases */
+#define F_INPROGRESS	16
+
+/* operations for bsd flock(), also used by the kernel implementation */
+#define LOCK_SH		1 /* shared lock */
+#define LOCK_EX		2 /* exclusive lock */
+#define LOCK_NB		4 /* or'd with one of the above to prevent blocking */
+#define LOCK_UN		8 /* remove lock */
+
+#define LOCK_MAND	32 /* This is a mandatory flock */
+#define LOCK_READ	64 /* ... Which allows concurrent read operations */
+#define LOCK_WRITE	128 /* ... Which allows concurrent write operations */
+#define LOCK_RW		192 /* ... Which allows concurrent read & write ops */
+
+#ifdef __KERNEL__
+#define F_POSIX		1
+#define F_FLOCK		2
+#define F_BROKEN	4 /* broken flock() emulation */
+#endif /* __KERNEL__ */
+
+struct flock {
+	short l_type;
+	short l_whence;
+	off_t l_start;
+	off_t l_len;
+	pid_t l_pid;
+};
+
+struct flock64 {
+	short l_type;
+	short l_whence;
+	loff_t l_start;
+	loff_t l_len;
+	pid_t l_pid;
+};
+
+#define F_LINUX_SPECIFIC_BASE	1024
+
+#endif /* _ASM_MICROBLAZE_FCNTL_H */
diff --git a/include/asm-microblaze/sockios.h b/include/asm-microblaze/sockios.h
new file mode 100644
index 0000000..a11b12f
--- /dev/null
+++ b/include/asm-microblaze/sockios.h
@@ -0,0 +1,25 @@
+/*
+ * include/asm-microblaze/sockios.h
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2006 Atmark Techno, Inc.
+ */
+
+#ifndef _ASM_MICROBLAZE_SOCKIOS_H
+#define _ASM_MICROBLAZE_SOCKIOS_H
+
+#include <asm/ioctl.h>
+
+/* Socket-level I/O control calls. */
+#define FIOSETOWN	0x8901
+#define SIOCSPGRP	0x8902
+#define FIOGETOWN	0x8903
+#define SIOCGPGRP	0x8904
+#define SIOCATMARK	0x8905
+#define SIOCGSTAMP	0x8906		/* Get stamp (timeval) */
+#define SIOCGSTAMPNS	0x8907		/* Get stamp (timespec) */
+
+#endif /* _ASM_MICROBLAZE_SOCKIOS_H */
diff --git a/include/asm-microblaze/ucontext.h b/include/asm-microblaze/ucontext.h
new file mode 100644
index 0000000..7ece650
--- /dev/null
+++ b/include/asm-microblaze/ucontext.h
@@ -0,0 +1,24 @@
+/*
+ * include/asm-microblaze/ucontext.h
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2006 Atmark Techno, Inc.
+ */
+
+#ifndef _ASM_MICROBLAZE_UCONTEXT_H
+#define _ASM_MICROBLAZE_UCONTEXT_H
+
+#include <asm/sigcontext.h>
+
+struct ucontext {
+	unsigned long		uc_flags;
+	struct ucontext		*uc_link;
+	stack_t			uc_stack;
+	struct sigcontext	uc_mcontext;
+	sigset_t		uc_sigmask; /* mask last for extensibility */
+};
+
+#endif /* _ASM_MICROBLAZE_UCONTEXT_H */
-- 
1.5.4.GIT


  reply	other threads:[~2008-05-05 13:55 UTC|newest]

Thread overview: 170+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-04 11:40 Microblaze patches V2 monstr
2008-05-04 11:40 ` [PATCH 01/56] microblaze_v2: Kconfig patches monstr
2008-05-04 11:40   ` [PATCH 02/56] microblaze_v2: Makefiles for Microblaze cpu monstr
2008-05-04 11:40     ` [PATCH 03/56] microblaze_v2: Cpuinfo handling monstr
2008-05-04 11:40       ` [PATCH 04/56] microblaze_v2: Open firmware files monstr
2008-05-04 11:40         ` [PATCH 05/56] microblaze_v2: Support for semaphores monstr
2008-05-04 11:40           ` [PATCH 06/56] microblaze_v2: exception handling monstr
2008-05-04 11:40             ` [PATCH 07/56] microblaze_v2: Signal support monstr
2008-05-04 11:40               ` [PATCH 08/56] microblaze_v2: Interrupt handling, timer support, supported function monstr
2008-05-04 11:40                 ` [PATCH 09/56] microblaze_v2: cache support monstr
2008-05-04 11:40                   ` [PATCH 10/56] microblaze_v2: Generic dts file for platforms monstr
2008-05-04 11:41                     ` [PATCH 11/56] microblaze_v2: kernel modules support monstr
2008-05-04 11:41                       ` [PATCH 12/56] microblaze_v2: lmb support monstr
2008-05-04 11:41                         ` [PATCH 13/56] microblaze_v2: PVR support, cpuinfo support monstr
2008-05-04 11:41                           ` [PATCH 14/56] microblaze_v2: defconfig file monstr
2008-05-04 11:41                             ` [PATCH 15/56] microblaze_v2: head.S + linker script monstr
2008-05-04 11:41                               ` [PATCH 16/56] microblaze_v2: supported function for memory - kernel/lib monstr
2008-05-04 11:41                                 ` [PATCH 17/56] microblaze_v2: checksum support monstr
2008-05-04 11:41                                   ` [PATCH 18/56] microblaze_v2: early_printk support monstr
2008-05-04 11:41                                     ` [PATCH 19/56] microblaze_v2: uaccess files monstr
2008-05-04 11:41                                       ` [PATCH 20/56] microblaze_v2: heartbeat file monstr
2008-05-04 11:41                                         ` [PATCH 21/56] microblaze_v2: setup.c - system setting monstr
2008-05-04 11:41                                           ` [PATCH 22/56] microblaze_v2: asm-offsets monstr
2008-05-04 11:41                                             ` [PATCH 23/56] microblaze_v2: process and init task function monstr
2008-05-04 11:41                                               ` [PATCH 24/56] microblaze_v2: time support monstr
2008-05-04 11:41                                                 ` [PATCH 25/56] microblaze_v2: ptrace support monstr
2008-05-04 11:41                                                   ` [PATCH 26/56] microblaze_v2: traps support monstr
2008-05-04 11:41                                                     ` [PATCH 27/56] microblaze_v2: support for a.out monstr
2008-05-04 11:41                                                       ` [PATCH 28/56] microblaze_v2: memory inicialization, MMU, TLB monstr
2008-05-04 11:41                                                         ` [PATCH 29/56] microblaze_v2: page.h, segment.h, unaligned.h monstr
2008-05-04 11:41                                                           ` [PATCH 30/56] microblaze_v2: includes SHM*, msgbuf monstr
2008-05-04 11:41                                                             ` [PATCH 31/56] microblaze_v2: bug headers files monstr
2008-05-04 11:41                                                               ` [PATCH 32/56] microblaze_v2: definitions of types monstr
2008-05-04 11:41                                                                 ` [PATCH 33/56] microblaze_v2: ioctl support monstr
2008-05-04 11:41                                                                   ` [PATCH 34/56] microblaze_v2: io.h IO operations monstr
2008-05-04 11:41                                                                     ` [PATCH 35/56] microblaze_v2: headers for executables format FLAT, ELF monstr
2008-05-04 11:41                                                                       ` [PATCH 36/56] microblaze_v2: dma support monstr
2008-05-04 11:41                                                                         ` [PATCH 37/56] microblaze_v2: headers for irq monstr
2008-05-04 11:41                                                                           ` [PATCH 38/56] microblaze_v2: atomic.h bitops.h byteorder.h monstr
2008-05-04 11:41                                                                             ` [PATCH 39/56] microblaze_v2: headers pgalloc.h pgtable.h monstr
2008-05-04 11:41                                                                               ` [PATCH 40/56] microblaze_v2: system.h pvr.h processor.h monstr
2008-05-04 11:41                                                                                 ` [PATCH 41/56] microblaze_v2: clinkage.h linkage.h sections.h kmap_types.h monstr
2008-05-04 11:41                                                                                   ` [PATCH 42/56] microblaze_v2: stats headers monstr
2008-05-04 11:41                                                                                     ` [PATCH 43/56] microblaze_v2: termbits.h termios.h monstr
2008-05-04 11:41                                                                                       ` [PATCH 44/56] microblaze_v2: sigcontext.h siginfo.h monstr
2008-05-04 11:41                                                                                         ` [PATCH 45/56] microblaze_v2: headers simple files - empty or redirect to asm-generic monstr
2008-05-04 11:41                                                                                           ` [PATCH 46/56] microblaze_v2: headers files entry.h current.h mman.h registers.h sembuf.h monstr
2008-05-04 11:41                                                                                             ` [PATCH 47/56] microblaze_v2: device.h param.h topology.h monstr
2008-05-04 11:41                                                                                               ` [PATCH 48/56] microblaze_v2: pool.h socket.h monstr
2008-05-04 11:41                                                                                                 ` monstr [this message]
2008-05-04 11:41                                                                                                   ` [PATCH 50/56] microblaze_v2: setup.h string.h thread_info.h monstr
2008-05-04 11:41                                                                                                     ` [PATCH 51/56] microblaze_v2: Kbuild file monstr
2008-05-04 11:41                                                                                                       ` [PATCH 52/56] microblaze_v2: pci headers monstr
2008-05-04 11:41                                                                                                         ` [PATCH 53/56] microblaze_v2: IPC headers monstr
2008-05-04 11:41                                                                                                           ` [PATCH 54/56] microblaze_v2: entry.S monstr
2008-05-04 11:41                                                                                                             ` [PATCH 55/56] microblaze_v2: sys_microblaze.c monstr
2008-05-04 11:41                                                                                                               ` [PATCH 56/56] microblaze_v2: syscall_table.S and unistd.h monstr
2008-05-04 22:45                                                                                                         ` [PATCH 52/56] microblaze_v2: pci headers Arnd Bergmann
2008-05-05 14:08                                                                                                           ` Michal Simek
2008-05-05  2:39                                                                                                     ` [PATCH 50/56] microblaze_v2: setup.h string.h thread_info.h John Williams
2008-05-05 14:24                                                                                                       ` Michal Simek
2008-05-04 22:43                                                                                                   ` [PATCH 49/56] microblaze_v2: fcntl.h sockios.h ucontext.h Arnd Bergmann
2008-05-05 14:08                                                                                                     ` Michal Simek
2008-05-04 22:39                                                                                                 ` [PATCH 48/56] microblaze_v2: pool.h socket.h Arnd Bergmann
2008-05-04 22:37                                                                                               ` [PATCH 47/56] microblaze_v2: device.h param.h topology.h Arnd Bergmann
2008-05-05 14:07                                                                                                 ` Michal Simek
2008-05-05  9:54                                                                                             ` [PATCH 46/56] microblaze_v2: headers files entry.h current.h mman.h registers.h sembuf.h Arnd Bergmann
2008-05-06  9:07                                                                                               ` Michal Simek
2008-05-06 20:57                                                                                             ` Geert Uytterhoeven
2008-05-05  2:34                                                                                           ` [PATCH 45/56] microblaze_v2: headers simple files - empty or redirect to asm-generic John Williams
2008-05-05 15:10                                                                                             ` Grant Likely
2008-05-06  9:02                                                                                               ` Arnd Bergmann
2008-05-06 14:47                                                                                             ` Stephen Rothwell
2008-05-06 15:23                                                                                               ` Michal Simek
2008-05-06 15:38                                                                                                 ` Grant Likely
2008-05-06 16:21                                                                                                 ` Arnd Bergmann
2008-05-07 18:46                                                                                                   ` Michal Simek
2008-05-05  9:50                                                                                       ` [PATCH 43/56] microblaze_v2: termbits.h termios.h Arnd Bergmann
2008-05-04 22:31                                                                                     ` [PATCH 42/56] microblaze_v2: stats headers Arnd Bergmann
2008-05-04 21:58                                                                             ` [PATCH 38/56] microblaze_v2: atomic.h bitops.h byteorder.h Arnd Bergmann
2008-05-05  2:28                                                                               ` John Williams
2008-05-06  8:42                                                                                 ` Michal Simek
2008-05-07  7:26                                                                           ` [PATCH 37/56] microblaze_v2: headers for irq Thomas Gleixner
2008-05-11 13:56                                                                             ` Michal Simek
2008-05-05  2:25                                                                         ` [PATCH 36/56] microblaze_v2: dma support John Williams
2008-05-05  6:45                                                                           ` Geert Uytterhoeven
2008-05-06  9:16                                                                             ` Michal Simek
2008-05-06  9:48                                                                               ` Geert Uytterhoeven
2008-05-06  9:53                                                                                 ` Michal Simek
2008-05-06 11:17                                                                                   ` Geert Uytterhoeven
2008-05-06 11:24                                                                                     ` Arnd Bergmann
2008-05-06 13:20                                                                                       ` Michal Simek
2008-05-06 15:36                                                                                         ` Arnd Bergmann
2008-05-07  6:24                                                                                           ` Michal Simek
2008-05-07  7:17                                                                                             ` Geert Uytterhoeven
2008-05-07  9:21                                                                                               ` Arnd Bergmann
2008-05-07 18:43                                                                                                 ` Michal Simek
2008-05-05  2:24                                                                       ` [PATCH 35/56] microblaze_v2: headers for executables format FLAT, ELF John Williams
2008-05-04 21:34                                                                   ` [PATCH 33/56] microblaze_v2: ioctl support Arnd Bergmann
2008-05-05 14:06                                                                     ` Michal Simek
2008-05-04 21:28                                                                 ` [PATCH 32/56] microblaze_v2: definitions of types Arnd Bergmann
2008-05-04 21:10                                                             ` [PATCH 30/56] microblaze_v2: includes SHM*, msgbuf Arnd Bergmann
2008-05-05  2:19                                                 ` [PATCH 24/56] microblaze_v2: time support John Williams
2008-05-05 14:22                                                   ` Michal Simek
2008-05-06  0:30                                                     ` John Williams
2008-05-06  9:56                                                       ` Michal Simek
2008-05-06 10:02                                                       ` Michal Simek
2008-05-06 11:38                                                         ` Arnd Bergmann
2008-05-06 13:26                                                           ` Michal Simek
2008-05-06 22:50                                                             ` John Williams
2008-05-06 14:28                                                           ` Grant Likely
2008-05-06 16:36                                                           ` Stephen Neuendorffer
2008-05-07  7:22                                                 ` Thomas Gleixner
2008-05-05  2:15                                           ` [PATCH 21/56] microblaze_v2: setup.c - system setting John Williams
2008-05-05 14:21                                             ` Michal Simek
2008-05-05 14:36                                     ` [PATCH 18/56] microblaze_v2: early_printk support Grant Likely
2008-05-05 20:10                                       ` Michal Simek
2008-05-05 23:22                                     ` John Williams
2008-05-06  8:14                                       ` Michal Simek
2008-05-04 19:59                                   ` [PATCH 17/56] microblaze_v2: checksum support Arnd Bergmann
2008-05-05 14:05                                     ` Michal Simek
2008-05-05  2:14                           ` [PATCH 13/56] microblaze_v2: PVR support, cpuinfo support John Williams
2008-05-05 14:20                             ` Michal Simek
2008-05-05  2:11                         ` [PATCH 12/56] microblaze_v2: lmb support John Williams
2008-05-05 21:32                           ` Segher Boessenkool
2008-05-05 14:31                     ` [PATCH 10/56] microblaze_v2: Generic dts file for platforms Grant Likely
2008-05-05 20:07                       ` Michal Simek
2008-05-05 17:25                     ` Stephen Neuendorffer
2008-05-05 23:16                       ` John Williams
2008-05-05 23:32                         ` Stephen Neuendorffer
2008-05-06  0:10                           ` John Williams
2008-05-06  0:17                             ` Stephen Neuendorffer
2008-05-06  7:50                             ` Michal Simek
2008-05-06  7:38                           ` Michal Simek
2008-05-05  2:09                   ` [PATCH 09/56] microblaze_v2: cache support John Williams
2008-05-05 17:37                   ` [microblaze-uclinux] " Stephen Neuendorffer
2008-05-06  9:22                     ` Michal Simek
2008-05-05 22:37                   ` Stephen Neuendorffer
2008-05-05  1:58                 ` [PATCH 08/56] microblaze_v2: Interrupt handling, timer support, supported function John Williams
2008-05-05 14:20                   ` Michal Simek
2008-05-07  7:04                 ` Thomas Gleixner
2008-05-11 13:55                   ` Michal Simek
2008-05-11 14:35                     ` Thomas Gleixner
2008-05-11 21:55                       ` Michal Simek
2008-05-04 19:52               ` [PATCH 07/56] microblaze_v2: Signal support Arnd Bergmann
2008-05-05 21:32               ` Stephen Neuendorffer
2008-05-05 23:33                 ` John Williams
2008-05-06  0:13                   ` Stephen Neuendorffer
2008-05-06  0:25                     ` John Williams
2008-05-06  0:33                       ` Stephen Neuendorffer
2008-05-06  9:41                         ` Michal Simek
2008-05-05 14:24         ` [PATCH 04/56] microblaze_v2: Open firmware files Grant Likely
2008-05-05 21:56         ` Stephen Neuendorffer
2008-05-06  7:27           ` Michal Simek
2008-05-07 16:04         ` [microblaze-uclinux] " Stephen Neuendorffer
2008-05-07 18:40           ` Michal Simek
2008-05-07 18:59             ` Grant Likely
2008-05-07 19:12               ` Michal Simek
2008-05-07 20:14                 ` Stephen Neuendorffer
2008-05-05  1:52       ` [PATCH 03/56] microblaze_v2: Cpuinfo handling John Williams
2008-05-05 14:19         ` Michal Simek
2008-05-05  1:47     ` [PATCH 02/56] microblaze_v2: Makefiles for Microblaze cpu John Williams
2008-05-06  8:51       ` Michal Simek
2008-05-04 21:24   ` [PATCH 01/56] microblaze_v2: Kconfig patches Grant Likely
2008-05-05  6:36     ` Michal Simek
2008-05-05  1:42   ` John Williams
2008-05-05  6:46     ` Michal Simek
2008-05-05 14:16     ` Michal Simek
2008-05-05  2:30 ` Microblaze patches V2 John Williams
2008-05-05  7:02   ` Michal Simek

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=231ae415bf52de25c69f727fd13c50d201f8ecd8.1209897267.git.monstr@monstr.eu \
    --to=monstr@seznam.cz \
    --cc=John.Linn@xilinx.com \
    --cc=arnd@arndb.de \
    --cc=drepper@redhat.com \
    --cc=grant.likely@secretlab.ca \
    --cc=john.williams@petalogix.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=microblaze-uclinux@itee.uq.edu.au \
    --cc=monstr@monstr.eu \
    --cc=stephen.neuendorffer@xilinx.com \
    --cc=will.newton@gmail.com \
    /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

all inboxes | Powered by JetHome®