Lines Matching defs:in

7  * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
37 * Redistribution and use in source forms, with and without modification,
40 * Redistribution in binary form may occur without any restrictions.
47 * NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
49 * is included in support of clause 2.2 (b) of the Apple Public License,
114 int msgmax, /* max chars in a message */
116 msgmnb, /* max chars in a queue */
117 msgtql, /* max messages in system */
121 MSGMAX, /* = (MSGSSZ*MSGSEG) : max chars in a message */
123 MSGMNB, /* = 2048 : max chars in a queue */
124 MSGTQL, /* = 40 : max messages in system */
154 msqid_ds_kerneltouser32(struct user_msqid_ds *in, struct user32_msqid_ds *out)
156 out->msg_perm = in->msg_perm;
157 out->msg_qnum = in->msg_qnum;
158 out->msg_cbytes = in->msg_cbytes; /* for ipcs */
159 out->msg_qbytes = in->msg_qbytes;
160 out->msg_lspid = in->msg_lspid;
161 out->msg_lrpid = in->msg_lrpid;
162 out->msg_stime = in->msg_stime; /* XXX loss of range */
163 out->msg_rtime = in->msg_rtime; /* XXX loss of range */
164 out->msg_ctime = in->msg_ctime; /* XXX loss of range */
168 msqid_ds_kerneltouser64(struct user_msqid_ds *in, struct user64_msqid_ds *out)
170 out->msg_perm = in->msg_perm;
171 out->msg_qnum = in->msg_qnum;
172 out->msg_cbytes = in->msg_cbytes; /* for ipcs */
173 out->msg_qbytes = in->msg_qbytes;
174 out->msg_lspid = in->msg_lspid;
175 out->msg_lrpid = in->msg_lrpid;
176 out->msg_stime = in->msg_stime; /* XXX loss of range */
177 out->msg_rtime = in->msg_rtime; /* XXX loss of range */
178 out->msg_ctime = in->msg_ctime; /* XXX loss of range */
183 * this works because we copy fields in order from the end of the struct to
187 msqid_ds_user32tokernel(struct user32_msqid_ds *in, struct user_msqid_ds *out)
189 out->msg_ctime = in->msg_ctime;
190 out->msg_rtime = in->msg_rtime;
191 out->msg_stime = in->msg_stime;
192 out->msg_lrpid = in->msg_lrpid;
193 out->msg_lspid = in->msg_lspid;
194 out->msg_qbytes = in->msg_qbytes;
195 out->msg_cbytes = in->msg_cbytes; /* for ipcs */
196 out->msg_qnum = in->msg_qnum;
197 out->msg_perm = in->msg_perm;
201 msqid_ds_user64tokernel(struct user64_msqid_ds *in, struct user_msqid_ds *out)
203 out->msg_ctime = in->msg_ctime;
204 out->msg_rtime = in->msg_rtime;
205 out->msg_stime = in->msg_stime;
206 out->msg_lrpid = in->msg_lrpid;
207 out->msg_lspid = in->msg_lspid;
208 out->msg_qbytes = in->msg_qbytes;
209 out->msg_cbytes = in->msg_cbytes; /* for ipcs */
210 out->msg_qnum = in->msg_qnum;
211 out->msg_perm = in->msg_perm;
335 * Indirect parameters: uap->which msg call to invoke (index in array of msg calls)
456 * individual msghdrs. Note: We need to do this in a
649 * while they are copying the message in/out. We
787 * If we suffer resource starvation, we will sleep in this loop and
820 * If our message plus the messages already in the queue would
834 * message headers, since they are allocated and freed in
929 * Re-lock the user_msqid_ds in case we page-fault when copying in
972 * Copy in the message type. For a 64 bit process, this is 64 bits,
1016 * Copy in the message body
1037 printf("error %d copying in message segment\n", eval);
1081 * suffice in that case. However, this hook may be required where
1486 /* Copy in the command structure */
1491 if (!IS_64BIT_PROCESS(p)) /* convert in place */
1562 if (!IS_64BIT_PROCESS(p)) /* convert in place */