2
0

target_structs.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * MIPS specific structures for linux-user
  3. *
  4. * Copyright (c) 2013 Fabrice Bellard
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef MIPS_TARGET_STRUCTS_H
  20. #define MIPS_TARGET_STRUCTS_H
  21. struct target_ipc_perm {
  22. abi_int __key; /* Key. */
  23. abi_uint uid; /* Owner's user ID. */
  24. abi_uint gid; /* Owner's group ID. */
  25. abi_uint cuid; /* Creator's user ID. */
  26. abi_uint cgid; /* Creator's group ID. */
  27. abi_uint mode; /* Read/write permission. */
  28. abi_ushort __seq; /* Sequence number. */
  29. abi_ushort __pad1;
  30. abi_ulong __unused1;
  31. abi_ulong __unused2;
  32. };
  33. struct target_shmid_ds {
  34. struct target_ipc_perm shm_perm; /* operation permission struct */
  35. abi_long shm_segsz; /* size of segment in bytes */
  36. abi_ulong shm_atime; /* time of last shmat() */
  37. abi_ulong shm_dtime; /* time of last shmdt() */
  38. abi_ulong shm_ctime; /* time of last change by shmctl() */
  39. abi_int shm_cpid; /* pid of creator */
  40. abi_int shm_lpid; /* pid of last shmop */
  41. abi_ulong shm_nattch; /* number of current attaches */
  42. abi_ulong __unused1;
  43. abi_ulong __unused2;
  44. };
  45. #define TARGET_SEMID64_DS
  46. /*
  47. * The semid64_ds structure for the MIPS architecture.
  48. * Note extra padding because this structure is passed back and forth
  49. * between kernel and user space.
  50. */
  51. struct target_semid64_ds {
  52. struct target_ipc_perm sem_perm;
  53. abi_ulong sem_otime;
  54. abi_ulong sem_ctime;
  55. abi_ulong sem_nsems;
  56. abi_ulong __unused1;
  57. abi_ulong __unused2;
  58. };
  59. #endif