Home
last modified time | relevance | path

Searched refs:xmalloc (Results 1 – 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/cmd/backup/include/
H A Dmemutils.h36 extern void *xmalloc(size_t);
40 extern void *xmalloc();
45 NOTE(ALIGNMENT(xmalloc, 8))
/illumos-gate/usr/src/cmd/cron/
H A Delm.c63 extern void *xmalloc(size_t);
150 n = (struct notice *)xmalloc(sizeof (struct notice)); in el_init()
156 k = (struct key *)xmalloc(sizeof (struct key)); in el_init()
170 n = (struct notice *)xmalloc(sizeof (struct notice)); in el_init()
176 k = (struct key *)xmalloc(sizeof (struct key)); in el_init()
184 ind = (struct index *)xmalloc(sizeof (struct index)); in el_init()
192 n = (struct notice *)xmalloc(sizeof (struct notice)); in el_init()
199 k = (struct key *)xmalloc(sizeof (struct key)); in el_init()
208 ind = (struct index *)xmalloc(sizeof (struct index)); in el_init()
244 n = (struct notice *)xmalloc(sizeof (struct notice)); in el_add()
[all …]
H A Dfuncs.c115 xmalloc(size_t size) in xmalloc() function
145 p = xmalloc(len + 1); in xstrdup()
H A Dcron.c947 u->home = xmalloc(strlen(pw->pw_dir) + 1); in mod_ctab()
958 u->home = xmalloc(strlen(pw->pw_dir) + 1); in mod_ctab()
962 u->home = xmalloc(strlen(pw->pw_dir) + 1); in mod_ctab()
1069 e = xmalloc(sizeof (struct event)); in add_atevent()
1071 e->cmd = xmalloc(strlen(job) + 1); in add_atevent()
1228 e = xmalloc(sizeof (struct event)); in readcron()
1262 e->cmd = xmalloc(cursor-start + 1); in readcron()
1325 cte_text = xmalloc(MAILBUFLEN); in cte_init()
2194 rp->jobname = xmalloc(strlen(e->cmd) + 1); in ex()
3194 u->home = xmalloc(strlen(pw->pw_dir) + 1); in verify_user_cred()
[all …]
H A Dcron.h118 extern void *xmalloc(size_t);
H A Dcrontab.c248 cf = xmalloc(strlen(CRONDIR)+strlen(login)+2); in main()
324 buf = xmalloc(buflen); in main()
437 tnam = xmalloc(strlen(CRONDIR)+strlen(TMPFILE)+7); in copycron()
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumpfstab.c120 mnt = (struct mnttab *)xmalloc(sizeof (*mnt));
131 mnttable = pm = (struct pmntent *)xmalloc(sizeof (*pm));
134 pm->pm_next = (struct pmntent *)xmalloc(sizeof (*pm));
169 new = (struct mntent *)xmalloc(sizeof (*mnt));
219 mnttable = pm = (struct pmntent *)xmalloc(sizeof (*pm));
222 pm->pm_next = (struct pmntent *)xmalloc(sizeof (*pm));
H A Ddumponline.c114 (struct inodesc **)xmalloc(2*sizeof (*ialloc)); in allocino()
343 archivefile = xmalloc(strlen(old) + strlen(defext) + in activepass()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dutil_cksum.c60 if ((cksum->contents = (krb5_octet *) xmalloc(cksum->length)) == NULL) {
74 if ((buf = (char *) xmalloc(len)) == NULL)
107 if ((temp = xmalloc(cksum->length)) == NULL) {
H A Dutil_dup.c35 if ((ret = (char *) xmalloc(strlen(str)+1)) == NULL)
H A Dutil_localhost.c53 if (! (ptr = xmalloc(strlen(buf) + 1))) in g_local_host_name()
H A Dutil_buffer.c40 if ((buffer->value = (void *) xmalloc(buffer->length + 1)) == NULL) {
H A Dlucid_context.c202 if ((lctx = xmalloc(bufsize)) == NULL) { in make_external_lucid_ctx_v1()
267 if ((lkey->data = xmalloc(k5key->length)) == NULL) { in copy_keyblock_to_lucid_key()
H A Dimport_name.c87 (char *) xmalloc(input_name_buffer->length + 1)) == NULL) {
139 (char *) xmalloc(input_name_buffer->length + 1)) == NULL) {
/illumos-gate/usr/src/cmd/fs.d/ufs/df/
H A Ddf.c76 static char *xmalloc(unsigned int);
298 argstat = (struct stat64 *)xmalloc(argc * sizeof (*argstat)); in main()
299 devnames = (char **)xmalloc(argc * sizeof (char *)); in main()
964 xmalloc(unsigned int size) in xmalloc() function
981 new = (struct mnttab *)xmalloc(sizeof (*new)); in mntdup()
984 (char *)xmalloc((unsigned)(strlen(mnt->mnt_special) + 1)); in mntdup()
988 (char *)xmalloc((unsigned)(strlen(mnt->mnt_mountp) + 1)); in mntdup()
992 (char *)xmalloc((unsigned)(strlen(mnt->mnt_fstype) + 1)); in mntdup()
997 (char *)xmalloc((unsigned)(strlen(mnt->mnt_mntopts) + 1)); in mntdup()
1035 mntl = (struct mntlist *)xmalloc(sizeof (*mntl)); in mkmntlist()
/illumos-gate/usr/src/tools/ctf/common/
H A Dmemory.c45 xmalloc(size_t size) in xmalloc() function
60 mem = xmalloc(size); in xcalloc()
H A Dmemory.h40 void *xmalloc(size_t);
/illumos-gate/usr/src/cmd/vtfontcvt/
H A Dvtfontcvt.c201 xmalloc(size_t size) in xmalloc() function
218 mp = xmalloc(sizeof (*mp)); in add_mapping()
283 gl = xmalloc(sizeof (*gl)); in add_glyph()
284 gl->g_data = xmalloc(wbytes * height); in add_glyph()
453 bytes = xmalloc(wbytes * height); in parse_hex()
454 bytes_r = xmalloc(wbytes * height); in parse_hex()
751 uncompressed = xmalloc(uncompressed_size); in write_fnt_source()
752 compressed = xmalloc(uncompressed_size); in write_fnt_source()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dk5unseal.c209 if ((plain = (unsigned char *) xmalloc(tmsglen)) == NULL) {
293 if ((token.value = (void *) xmalloc(token.length)) == NULL) {
360 xmalloc(8 + (ctx->big_endian ? token.length : plainlen)))) {
452 xmalloc(sizeof(ctx->seed) + 8 +
518 xmalloc(8 + (ctx->big_endian ? token.length : plainlen)))) {
H A Dk5seal.c134 if ((t = (unsigned char *) xmalloc(tlen)) == NULL) in make_seal_token_v1()
195 if ((plain = (unsigned char *) xmalloc(msglen ? msglen : 1)) == NULL) { in make_seal_token_v1()
216 if (! (data_ptr = (char *) xmalloc(8 + in make_seal_token_v1()
/illumos-gate/usr/src/cmd/backup/lib/
H A Dmemutils.c37 xmalloc(bytes) in xmalloc() function
/illumos-gate/usr/src/cmd/fs.d/
H A Ddf.c83 #define NEW(type) xmalloc(sizeof (type))
374 xmalloc(size_t size) in xmalloc() function
534 mount_table = xmalloc( in mtab_read_file()
893 argv = xmalloc(size); in run_fs_specific_df()
1320 temp_buf = xmalloc( in g_output()
1756 requests = xmalloc(size); in create_request_list()
1796 arg_stat = xmalloc(argc * sizeof (struct stat64)); in create_request_list()
1797 valid_stat = xmalloc(argc * sizeof (bool_int)); in create_request_list()
/illumos-gate/usr/src/cmd/sgs/m4/common/
H A Dm4.c858 xmalloc(size_t size) in xmalloc() function
872 ptr = xmalloc(nbr * size); in xcalloc()
1042 ret = xmalloc((len + 1) * sizeof (wchar_t)); in wstrdup()
1061 ret = p = xmalloc(wcslen(from) * mb_cur_max + 1); in wstr2str()
1105 ret = p = xmalloc((strlen(from) + 1) * sizeof (wchar_t)); in str2wstr()
/illumos-gate/usr/src/lib/libpkg/common/
H A Dprogerr.c131 xmalloc(size_t size) in xmalloc() function
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/
H A DgssapiP_generic.h111 #define xmalloc(n) MALLOC(n) macro
113 #define xmalloc(n) malloc(n) macro

12