Home | History | Annotate | Download | only in bfd

Lines Matching refs:from

52 /* Helper macro to swap (properly handling endianess) things from the
56 Note that FROM should be a pointer, and TO should be the explicit
59 #define LINUX_PRPSINFO32_SWAP_FIELDS(abfd, from, to) \
62 H_PUT_8 (abfd, from->pr_state, &to.pr_state); \
63 H_PUT_8 (abfd, from->pr_sname, &to.pr_sname); \
64 H_PUT_8 (abfd, from->pr_zomb, &to.pr_zomb); \
65 H_PUT_8 (abfd, from->pr_nice, &to.pr_nice); \
66 H_PUT_32 (abfd, from->pr_flag, to.pr_flag); \
67 H_PUT_16 (abfd, from->pr_uid, to.pr_uid); \
68 H_PUT_16 (abfd, from->pr_gid, to.pr_gid); \
69 H_PUT_32 (abfd, from->pr_pid, to.pr_pid); \
70 H_PUT_32 (abfd, from->pr_ppid, to.pr_ppid); \
71 H_PUT_32 (abfd, from->pr_pgrp, to.pr_pgrp); \
72 H_PUT_32 (abfd, from->pr_sid, to.pr_sid); \
73 strncpy (to.pr_fname, from->pr_fname, sizeof (to.pr_fname)); \
74 strncpy (to.pr_psargs, from->pr_psargs, sizeof (to.pr_psargs)); \
102 /* Helper macro to swap (properly handling endianess) things from the
106 Note that FROM should be a pointer, and TO should be the explicit
109 #define LINUX_PRPSINFO64_SWAP_FIELDS(abfd, from, to) \
112 H_PUT_8 (abfd, from->pr_state, &to.pr_state); \
113 H_PUT_8 (abfd, from->pr_sname, &to.pr_sname); \
114 H_PUT_8 (abfd, from->pr_zomb, &to.pr_zomb); \
115 H_PUT_8 (abfd, from->pr_nice, &to.pr_nice); \
116 H_PUT_64 (abfd, from->pr_flag, to.pr_flag); \
117 H_PUT_32 (abfd, from->pr_uid, to.pr_uid); \
118 H_PUT_32 (abfd, from->pr_gid, to.pr_gid); \
119 H_PUT_32 (abfd, from->pr_pid, to.pr_pid); \
120 H_PUT_32 (abfd, from->pr_ppid, to.pr_ppid); \
121 H_PUT_32 (abfd, from->pr_pgrp, to.pr_pgrp); \
122 H_PUT_32 (abfd, from->pr_sid, to.pr_sid); \
123 strncpy (to.pr_fname, from->pr_fname, sizeof (to.pr_fname)); \
124 strncpy (to.pr_psargs, from->pr_psargs, sizeof (to.pr_psargs)); \