Lines Matching refs:token
59 token_t *token; /* Resultant token */
61 if ((token = (token_t *)malloc(sizeof (token_t))) == NULL)
63 if ((token->tt_data = malloc(s)) == NULL) {
64 free(token);
67 token->tt_size = s;
68 token->tt_next = NULL;
69 return (token);
75 * pointer to header token.
81 token_t *token; /* token pointer */
82 char version = TOKEN_VERSION; /* version of token family */
86 char data_header = AUT_HEADER64; /* header for this token */
88 token = get_token(2 * sizeof (char) + sizeof (int32_t) +
93 token = get_token(2 * sizeof (char) + 3 * sizeof (int32_t) +
97 if (token == NULL)
99 adr_start(&adr, token->tt_data);
100 adr_char(&adr, &data_header, 1); /* token ID */
110 return (token);
116 * pointer to header token.
122 token_t *token; /* token pointer */
123 char version = TOKEN_VERSION; /* version of token family */
129 char data_header = AUT_HEADER64_EX; /* header for this token */
148 token = get_token(2 * sizeof (char) + sizeof (int32_t) +
152 token = get_token(2 * sizeof (char) + 3 * sizeof (int32_t) +
156 if (token == NULL)
158 adr_start(&adr, token->tt_data);
159 adr_char(&adr, &data_header, 1); /* token ID */
172 return (token);
178 * pointer to a trailer token.
184 token_t *token; /* token pointer */
185 char data_header = AUT_TRAILER; /* header for this token */
189 token = get_token(sizeof (char) + sizeof (int32_t) + sizeof (short));
190 if (token == NULL)
192 adr_start(&adr, token->tt_data);
193 adr_char(&adr, &data_header, 1); /* token ID */
197 return (token);
203 * pointer to an argument token.
208 token_t *token; /* local token */
210 char data_header = AUT_ARG32; /* header for this token */
215 token = get_token((int)(2 * sizeof (char) + sizeof (int32_t) +
217 if (token == NULL)
219 adr_start(&adr, token->tt_data);
220 adr_char(&adr, &data_header, 1); /* token type */
226 return (token);
232 * pointer to an argument token.
237 token_t *token; /* local token */
239 char data_header = AUT_ARG64; /* header for this token */
244 token = get_token((int)(2 * sizeof (char) + sizeof (int64_t) +
246 if (token == NULL)
248 adr_start(&adr, token->tt_data);
249 adr_char(&adr, &data_header, 1); /* token type */
255 return (token);
262 * pointer to an attribute token.
267 token_t *token; /* local token */
271 char data_header = AUT_ATTR64; /* header for this token */
273 token = get_token(sizeof (char) +
277 if (token == NULL)
279 adr_start(&adr, token->tt_data);
292 return (token);
298 * pointer to a data token.
304 token_t *token; /* token pointer */
305 char data_header = AUT_DATA; /* header for this token */
335 token = get_token((int)(4 * sizeof (char) + byte_count));
336 if (token == NULL)
338 adr_start(&adr, token->tt_data);
363 return (token);
372 * token id adr_char
377 * pointer to a AUT_PRIV token.
382 token_t *token; /* local token */
384 char data_header = AUT_PRIV; /* header for this token */
398 token = get_token((int)(sizeof (char) + (2 * sizeof (short)) + t_bytes
400 if (token == NULL)
403 adr_start(&adr, token->tt_data);
412 return (token);
418 * pointer to a process token.
425 token_t *token; /* local token */
428 char data_header = AUT_PROCESS64; /* header for this token */
430 token = get_token(sizeof (char) + 8 * sizeof (int32_t) +
435 token = get_token(sizeof (char) + 9 * sizeof (int32_t));
438 if (token == NULL)
440 adr_start(&adr, token->tt_data);
456 return (token);
462 * pointer to a process_ex token.
468 token_t *token; /* local token */
470 char data_header; /* header for this token */
475 token = get_token(sizeof (char) + sizeof (int64_t) +
479 token = get_token(sizeof (char) + sizeof (int64_t) +
485 token = get_token(sizeof (char) + 13 * sizeof (int32_t));
488 token = get_token(sizeof (char) + 9 * sizeof (int32_t));
491 if (token == NULL)
493 adr_start(&adr, token->tt_data);
514 return (token);
520 * pointer to token chain containing a sequence token
525 token_t *token; /* local token */
527 char data_header = AUT_SEQ; /* header for this token */
529 token = get_token(sizeof (char) + sizeof (int32_t));
530 if (token == NULL)
532 adr_start(&adr, token->tt_data);
536 return (token);
542 * pointer to a process token.
549 token_t *token; /* local token */
552 char data_header = AUT_SUBJECT64; /* header for this token */
554 token = get_token(sizeof (char) + sizeof (int64_t) +
559 token = get_token(sizeof (char) + 9 * sizeof (int32_t));
562 if (token == NULL)
564 adr_start(&adr, token->tt_data);
580 return (token);
586 * pointer to a process token.
593 token_t *token; /* local token */
596 char data_header; /* header for this token */
600 token = get_token(sizeof (char) + sizeof (int64_t) +
604 token = get_token(sizeof (char) + sizeof (int64_t) +
608 char data_header; /* header for this token */
612 token = get_token(sizeof (char) + 13 * sizeof (int32_t));
615 token = get_token(sizeof (char) + 9 * sizeof (int32_t));
619 if (token == NULL)
621 adr_start(&adr, token->tt_data);
642 return (token);
648 * pointer to a process token.
664 * pointer to a text token.
669 token_t *token; /* local token */
671 char data_header = AUT_TEXT; /* header for this token */
675 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
676 if (token == NULL)
678 adr_start(&adr, token->tt_data);
683 return (token);
689 * pointer to a path token.
694 token_t *token; /* local token */
696 char data_header = AUT_PATH; /* header for this token */
701 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
702 if (token == NULL)
704 adr_start(&adr, token->tt_data);
709 return (token);
715 * pointer to an command line argument token
720 token_t *token; /* local token */
722 char data_header = AUT_CMD; /* header for this token */
747 token = get_token(len);
748 if (token == NULL)
751 adr_start(&adr, token->tt_data);
770 return (token);
776 * pointer to a exit value token.
781 token_t *token; /* local token */
783 char data_header = AUT_EXIT; /* header for this token */
785 token = get_token(sizeof (char) + (2 * sizeof (int32_t)));
786 if (token == NULL)
788 adr_start(&adr, token->tt_data);
793 return (token);
799 * pointer to a return value token.
804 token_t *token; /* local token */
806 char data_header = AUT_RETURN32; /* header for this token */
808 token = get_token(2 * sizeof (char) + sizeof (int32_t));
809 if (token == NULL)
811 adr_start(&adr, token->tt_data);
816 return (token);
822 * pointer to a return value token.
827 token_t *token; /* local token */
829 char data_header = AUT_RETURN64; /* header for this token */
831 token = get_token(2 * sizeof (char) + sizeof (int64_t));
832 if (token == NULL)
834 adr_start(&adr, token->tt_data);
839 return (token);
846 * pointer to a opaque token.
851 token_t *token; /* local token */
853 char data_header = AUT_OPAQUE; /* header for this token */
858 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
859 if (token == NULL)
861 adr_start(&adr, token->tt_data);
866 return (token);
872 * pointer to an internet address token
877 token_t *token; /* local token */
879 char data_header = AUT_IN_ADDR; /* header for this token */
881 token = get_token(sizeof (char) + sizeof (struct in_addr));
882 if (token == NULL)
884 adr_start(&adr, token->tt_data);
888 return (token);
894 * pointer to an internet extended token
899 token_t *token;
917 if ((token = get_token(sizeof (char) + sizeof (int32_t) +
922 adr_start(&adr, token->tt_data);
928 return (token);
934 * pointer to token chain containing a ip port address token
939 token_t *token; /* local token */
941 char data_header = AUT_IPORT; /* header for this token */
943 token = get_token(sizeof (char) + sizeof (short));
944 if (token == NULL)
946 adr_start(&adr, token->tt_data);
950 return (token);
956 token_t *token; /* local token */
958 char data_header = AUT_IPC; /* header for this token */
960 token = get_token((2 * sizeof (char)) + sizeof (int32_t));
961 if (token == NULL)
963 adr_start(&adr, token->tt_data);
968 return (token);
986 char data_header = AUT_TID; /* header for this token */
988 token_t *token; /* local token */
994 token = get_token((int)(2 * sizeof (char) + 2 * sizeof (short) +
996 if (token == NULL)
999 adr_start(&adr, token->tt_data);
1012 return (token);
1022 * pointer to a group list token.
1029 token_t *token; /* local token */
1031 char data_header = AUT_GROUPS; /* header for this token */
1033 token = get_token(sizeof (char) + NGROUPS * sizeof (int32_t));
1034 if (token == NULL)
1036 adr_start(&adr, token->tt_data);
1040 return (token);
1046 * pointer to a group list token.
1051 token_t *token; /* local token */
1053 char data_header = AUT_NEWGROUPS; /* header for this token */
1058 token = get_token(sizeof (char) + sizeof (short) + n * sizeof (gid_t));
1059 if (token == NULL)
1062 adr_start(&adr, token->tt_data);
1067 return (token);
1073 * pointer to an exec args token.
1084 * pointer to an exec args token.
1095 * pointer to an exec args token.
1100 token_t *token;
1110 token = get_token(sizeof (char) + sizeof (int32_t) + len);
1111 if (token == (token_t *)NULL)
1113 adr_start(&adr, token->tt_data);
1119 return (token);
1125 * pointer to a uauth token.
1130 token_t *token; /* local token */
1132 char data_header = AUT_UAUTH; /* header for this token */
1137 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
1138 if (token == NULL)
1140 adr_start(&adr, token->tt_data);
1145 return (token);
1151 * pointer to a use of privilege token.
1156 token_t *token; /* local token */
1158 char data_header = AUT_UAUTH; /* header for this token */
1163 token = get_token(sizeof (char) + sizeof (char) + sizeof (short) +
1165 if (token == NULL)
1167 adr_start(&adr, token->tt_data);
1173 return (token);
1179 * pointer to a user token.
1184 token_t *token; /* local token */
1186 char data_header = AUT_USER; /* header for this token */
1191 token = get_token(sizeof (char) + sizeof (uid_t) + sizeof (short) +
1193 if (token == NULL)
1195 adr_start(&adr, token->tt_data);
1201 return (token);
1207 * pointer to a xatom token.
1212 token_t *token; /* local token */
1214 char data_header = AUT_XATOM; /* header for this token */
1219 token = get_token(sizeof (char) + sizeof (short) + len);
1220 if (token == NULL)
1222 adr_start(&adr, token->tt_data);
1227 return (token);
1233 * pointer to a X select token.
1238 token_t *token; /* local token */
1240 char data_header = AUT_XSELECT; /* header for this token */
1249 token = get_token(sizeof (char) + (sizeof (short) * 3) +
1251 if (token == NULL)
1253 adr_start(&adr, token->tt_data);
1262 return (token);
1268 * pointer to a common X token.
1274 token_t *token; /* local token */
1277 token = get_token(sizeof (char) + sizeof (int32_t) + sizeof (uid_t));
1278 if (token == NULL)
1280 adr_start(&adr, token->tt_data);
1285 return (token);
1291 * pointer to a X Colormap token.
1303 * pointer to a X Cursor token.
1315 * pointer to a X Font token.
1327 * pointer to a X Graphic Context token.
1339 * pointer to a X Pixal Map token.
1351 * pointer to a X Window token.
1363 * pointer to a X Property token.
1369 token_t *token; /* local token */
1371 char data_header = AUT_XPROPERTY; /* header for this token */
1376 token = get_token(sizeof (char) + sizeof (int32_t) + sizeof (uid_t) +
1378 if (token == NULL)
1380 adr_start(&adr, token->tt_data);
1387 return (token);
1393 * pointer to a X Client token
1399 token_t *token; /* local token */
1401 char data_header = AUT_XCLIENT; /* header for this token */
1403 token = get_token(sizeof (char) + sizeof (uint32_t));
1404 if (token == NULL)
1406 adr_start(&adr, token->tt_data);
1410 return (token);
1416 * pointer to a label token.
1421 token_t *token; /* local token */
1423 char data_header = AUT_LABEL; /* header for this token */
1426 token = get_token(sizeof (char) + llen);
1427 if (token == NULL) {
1430 free(token);
1433 adr_start(&adr, token->tt_data);
1437 return (token);
1443 * pointer to a label token.
1449 token_t *token;
1455 token = au_to_label(ucred_getlabel(uc));
1457 return (token);
1463 * pointer to a zonename token.
1468 token_t *token; /* local token */
1470 char data_header = AUT_ZONENAME; /* header for this token */
1477 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
1478 if (token == NULL)
1480 adr_start(&adr, token->tt_data);
1485 return (token);
1491 * pointer to a fmri token.
1496 token_t *token; /* local token */
1498 char data_header = AUT_FMRI; /* header for this token */
1505 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
1506 if (token == NULL)
1508 adr_start(&adr, token->tt_data);
1513 return (token);