Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104153
b: refs/heads/master
c: fcb0708
h: refs/heads/master
i:
  104151: fc9c5ba
v: v3
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Jul 18, 2008
1 parent f50d76a commit 7906fb4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 100b10d752bafafda2a508235b7df6718e42bd76
refs/heads/master: fcb07081f209d3d9c7662ba6a097b254e76f71ee
12 changes: 9 additions & 3 deletions trunk/include/asm-sparc/sembuf.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _SPARC_SEMBUF_H
#define _SPARC_SEMBUF_H

/*
/*
* The semid64_ds structure for sparc architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
Expand All @@ -10,16 +10,22 @@
* - 64-bit time_t to solve y2038 problem
* - 2 miscellaneous 32-bit values
*/
#if defined(__sparc__) && defined(__arch64__)
# define PADDING(x)
#else
# define PADDING(x) unsigned int x;
#endif

struct semid64_ds {
struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
unsigned int __pad1;
PADDING(__pad1)
__kernel_time_t sem_otime; /* last semop time */
unsigned int __pad2;
PADDING(__pad2)
__kernel_time_t sem_ctime; /* last change time */
unsigned long sem_nsems; /* no. of semaphores in array */
unsigned long __unused1;
unsigned long __unused2;
};
#undef PADDING

#endif /* _SPARC64_SEMBUF_H */
23 changes: 1 addition & 22 deletions trunk/include/asm-sparc64/sembuf.h
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
#ifndef _SPARC64_SEMBUF_H
#define _SPARC64_SEMBUF_H

/*
* The semid64_ds structure for sparc64 architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*
* Pad space is left for:
* - 2 miscellaneous 64-bit values
*/

struct semid64_ds {
struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
__kernel_time_t sem_otime; /* last semop time */
__kernel_time_t sem_ctime; /* last change time */
unsigned long sem_nsems; /* no. of semaphores in array */
unsigned long __unused1;
unsigned long __unused2;
};

#endif /* _SPARC64_SEMBUF_H */
#include <asm-sparc/sembuf.h>

0 comments on commit 7906fb4

Please sign in to comment.