rpms/dietlibc/devel dietlibc-0.28-hppa.patch, NONE, 1.1 dietlibc.spec, 1.6, 1.7

Enrico Scholz (ensc) fedora-extras-commits at redhat.com
Mon Mar 7 00:26:01 UTC 2005


Author: ensc

Update of /cvs/extras/rpms/dietlibc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17002

Modified Files:
	dietlibc.spec 
Added Files:
	dietlibc-0.28-hppa.patch 
Log Message:
synced hppa's <fcntl.h> with recent kernel


dietlibc-0.28-hppa.patch:

--- NEW FILE dietlibc-0.28-hppa.patch ---
diff -rup dietlibc-0.28.hppa/include/fcntl.h dietlibc-0.28/include/fcntl.h
--- dietlibc-0.28.hppa/include/fcntl.h	2005-03-07 01:11:46.000000000 +0100
+++ dietlibc-0.28/include/fcntl.h	2005-03-07 01:21:07.000000000 +0100
@@ -501,13 +501,21 @@ struct flock64 {
 #define O_CREAT     00000400 /* not fcntl */
 #define O_TRUNC     00001000 /* not fcntl */
 #define O_EXCL      00002000 /* not fcntl */
+#define O_LARGEFILE 00004000
 #define O_ASYNC     00020000
 #define O_SYNC      00100000
 #define O_NONBLOCK  00200004 /* HPUX has separate NDELAY & NONBLOCK */
 #define O_NDELAY    O_NONBLOCK
 #define O_NOCTTY    00400000 /* not fcntl */
+#define O_DSYNC     01000000 /* HPUX only */
+#define O_RSYNC     02000000 /* HPUX only */
+#define O_NOATIME   04000000
 #define O_DIRECTORY  00010000
 
+#define O_DIRECT    00040000 /* direct disk access hint - currently ignored */
+#define O_NOFOLLOW  00000200 /* don't follow links */
+#define O_INVISIBLE 04000000 /* invisible I/O, for DMAPI/XDSM */
+
 #define F_DUPFD     0   /* Duplicate file descriptor.  */
 #define F_GETFD     1   /* Get file descriptor flags.  */
 #define F_SETFD     2   /* Set file descriptor flags.  */
@@ -521,6 +529,11 @@ struct flock64 {
 #define F_SETLK64   9   /* Set record locking info (non-blocking).  */
 #define F_SETLKW64  10  /* Set record locking info (blocking).  */
 
+#define F_GETOWN    11	/*  for sockets. */
+#define F_SETOWN    12	/*  for sockets. */
+#define F_SETSIG    13	/*  for sockets. */
+#define F_GETSIG    14	/*  for sockets. */
+
 #define FD_CLOEXEC  1   /* actually anything with low bit set goes */
 
 #define F_RDLCK     1   /* Read lock.  */
@@ -530,6 +543,21 @@ struct flock64 {
 #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 */
+
 struct flock
 {
     short int l_type;   /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK.  */


Index: dietlibc.spec
===================================================================
RCS file: /cvs/extras/rpms/dietlibc/devel/dietlibc.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- dietlibc.spec	6 Mar 2005 21:39:18 -0000	1.6
+++ dietlibc.spec	7 Mar 2005 00:25:59 -0000	1.7
@@ -45,6 +45,7 @@
 Patch0:		dietlibc-0.28-gcc4.patch
 Patch1:		dietlibc-0.28-setpriority.patch
 Patch2:		dietlibc-0.28-ppc.patch
+Patch3:		dietlibc-0.28-hppa.patch
 BuildRoot:	%_tmppath/%name-%version-buildroot
 %{?with_dyn:Requires:	dietlibc-lib = %version-%release}
 
@@ -77,6 +78,7 @@
 %patch0 -p1 -b .gcc4
 %patch1 -p1 -b .nice
 %patch2 -p1 -b .ppc
+%patch3 -p1 -b .hppa
 
 ## only for 0.28; remove it in 0.29
 sed -i -e 's!LD_RUN_PATH= !env -u LD_RUN_PATH !' Makefile




More information about the scm-commits mailing list