~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to linux-user/i386/syscall.h

Tags: upstream-0.9.0+20070816
ImportĀ upstreamĀ versionĀ 0.9.0+20070816

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
        struct target_vm86plus_info_struct vm86plus;
143
143
};
144
144
 
145
 
/* ipcs */
146
 
 
147
 
#define TARGET_SEMOP           1
148
 
#define TARGET_SEMGET          2
149
 
#define TARGET_SEMCTL          3 
150
 
#define TARGET_MSGSND          11 
151
 
#define TARGET_MSGRCV          12
152
 
#define TARGET_MSGGET          13
153
 
#define TARGET_MSGCTL          14
154
 
#define TARGET_SHMAT           21
155
 
#define TARGET_SHMDT           22
156
 
#define TARGET_SHMGET          23
157
 
#define TARGET_SHMCTL          24
158
 
 
159
 
struct target_msgbuf {
160
 
        int mtype;
161
 
        char mtext[1];
162
 
};
163
 
 
164
 
struct target_ipc_kludge {
165
 
        unsigned int    msgp;   /* Really (struct msgbuf *) */
166
 
        int msgtyp;
167
 
};      
168
 
 
169
 
struct target_ipc_perm {
170
 
        int     key;
171
 
        unsigned short  uid;
172
 
        unsigned short  gid;
173
 
        unsigned short  cuid;
174
 
        unsigned short  cgid;
175
 
        unsigned short  mode;
176
 
        unsigned short  seq;
177
 
};
178
 
 
179
 
struct target_msqid_ds {
180
 
        struct target_ipc_perm  msg_perm;
181
 
        unsigned int            msg_first;      /* really struct target_msg* */
182
 
        unsigned int            msg_last;       /* really struct target_msg* */
183
 
        unsigned int            msg_stime;      /* really target_time_t */
184
 
        unsigned int            msg_rtime;      /* really target_time_t */
185
 
        unsigned int            msg_ctime;      /* really target_time_t */
186
 
        unsigned int            wwait;          /* really struct wait_queue* */
187
 
        unsigned int            rwait;          /* really struct wait_queue* */
188
 
        unsigned short          msg_cbytes;
189
 
        unsigned short          msg_qnum;
190
 
        unsigned short          msg_qbytes;
191
 
        unsigned short          msg_lspid;
192
 
        unsigned short          msg_lrpid;
193
 
};
194
 
 
195
 
struct target_shmid_ds {
196
 
        struct target_ipc_perm  shm_perm;
197
 
        int                     shm_segsz;
198
 
        unsigned int            shm_atime;      /* really target_time_t */
199
 
        unsigned int            shm_dtime;      /* really target_time_t */
200
 
        unsigned int            shm_ctime;      /* really target_time_t */
201
 
        unsigned short          shm_cpid;
202
 
        unsigned short          shm_lpid;
203
 
        short                   shm_nattch;
204
 
        unsigned short          shm_npages;
205
 
        unsigned long           *shm_pages;
206
 
        void                    *attaches;      /* really struct shm_desc * */
207
 
};
208
 
 
209
 
#define TARGET_IPC_RMID 0
210
 
#define TARGET_IPC_SET  1
211
 
#define TARGET_IPC_STAT 2
212
 
 
213
 
union target_semun {
214
 
    int val;
215
 
    unsigned int buf;   /* really struct semid_ds * */
216
 
    unsigned int array; /* really unsigned short * */
217
 
    unsigned int __buf; /* really struct seminfo * */
218
 
    unsigned int __pad; /* really void* */
219
 
};
220
 
 
221
145
#define UNAME_MACHINE "i686"