Home
last modified time | relevance | path

Searched refs:mt (Results 1 – 25 of 84) sorted by relevance

1234

/illumos-gate/usr/src/cmd/mandoc/
H A Dman_term.c52 struct mtermp *mt, \
152 struct mtermp mt; in terminal_man() local
166 memset(&mt, 0, sizeof(mt)); in terminal_man()
167 mt.lmargin[mt.lmargincur] = term_len(p, p->defindent); in terminal_man()
168 mt.offset = term_len(p, p->defindent); in terminal_man()
169 mt.pardist = 1; in terminal_man()
188 print_man_nodelist(p, &mt, n, man); in terminal_man()
194 print_man_nodelist(p, &mt, n, man); in terminal_man()
275 mt->pardist = 1; in pre_PD()
280 mt->pardist = term_vspan(p, &su); in pre_PD()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dmtctxres.c68 mtctxres_t *mt; in __res_init_ctx() local
77 if ((mt = malloc(sizeof (mtctxres_t))) == 0) { in __res_init_ctx()
82 memset(mt, 0, sizeof (mtctxres_t)); in __res_init_ctx()
84 if ((ret = pthread_setspecific(key, mt)) != 0) { in __res_init_ctx()
85 free(mt); in __res_init_ctx()
96 mtctxres_t *mt = (mtctxres_t *)value; in __res_destroy_ctx() local
98 if (mt != 0) in __res_destroy_ctx()
99 free(mt); in __res_destroy_ctx()
106 mtctxres_t *mt; in ___mtctxres() local
127 if (((mt = pthread_getspecific(key)) != 0) || in ___mtctxres()
[all …]
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_mech_tabs.c150 crypto_mech_type_t mt; in kcf_mech_hash_find() local
152 mt = CRYPTO_MECH_INVALID; in kcf_mech_hash_find()
154 mt = *(crypto_mech_type_t *)hv; in kcf_mech_hash_find()
155 ASSERT(mt != CRYPTO_MECH_INVALID); in kcf_mech_hash_find()
158 return (mt); in kcf_mech_hash_find()
308 crypto_mech_type_t mt; in kcf_create_mech_entry() local
322 mt = kcf_mech_hash_find(mechname); in kcf_create_mech_entry()
323 if (mt != CRYPTO_MECH_INVALID) { in kcf_create_mech_entry()
392 crypto_mech_type_t kcf_mech_type, mt; in kcf_add_mech_provider() local
494 mt = kcf_mech_hash_find(dmi->cm_mech_name); in kcf_add_mech_provider()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dltm.c64 Table *mt; in luaT_gettmbyobj() local
67 mt = hvalue(o)->metatable; in luaT_gettmbyobj()
70 mt = uvalue(o)->metatable; in luaT_gettmbyobj()
73 mt = G(L)->mt[ttypenv(o)]; in luaT_gettmbyobj()
75 return (mt ? luaH_getstr(mt, G(L)->tmname[event]) : luaO_nilobject); in luaT_gettmbyobj()
H A Dlapi.c687 Table *mt = NULL; in lua_getmetatable() local
693 mt = hvalue(obj)->metatable; in lua_getmetatable()
696 mt = uvalue(obj)->metatable; in lua_getmetatable()
699 mt = G(L)->mt[ttypenv(obj)]; in lua_getmetatable()
702 if (mt == NULL) in lua_getmetatable()
705 sethvalue(L, L->top, mt); in lua_getmetatable()
813 Table *mt; in lua_setmetatable() local
818 mt = NULL; in lua_setmetatable()
821 mt = hvalue(L->top - 1); in lua_setmetatable()
825 hvalue(obj)->metatable = mt; in lua_setmetatable()
[all …]
H A Dlstate.c164 TValue mt; in init_registry() local
170 setthvalue(L, &mt, L); in init_registry()
171 luaH_setint(L, registry, LUA_RIDX_MAINTHREAD, &mt); in init_registry()
173 sethvalue(L, &mt, luaH_new(L)); in init_registry()
174 luaH_setint(L, registry, LUA_RIDX_GLOBALS, &mt); in init_registry()
305 for (i=0; i < LUA_NUMTAGS; i++) g->mt[i] = NULL; in lua_newstate()
/illumos-gate/usr/src/lib/libresolv2/common/sunw/
H A Dsunw_mtctxres.c111 mtctxres_t *mt = ___mtctxres(); in __res_retry() local
113 mt->retry_save = retry; in __res_retry()
114 return ((mt->retry_private != 0) ? mt->retry_private : retry); in __res_retry()
119 mtctxres_t *mt = ___mtctxres(); in __res_retry_reset() local
121 return (mt->retry_save); in __res_retry_reset()
/illumos-gate/usr/src/cmd/backup/lib/
H A Drmtlib.c230 struct mtget mt; in rmtopen() local
248 if (rmtstatus(&mt) < 0) { in rmtopen()
272 rmtstatus(struct mtget *mt) in rmtstatus() argument
274 char *buf = (char *)mt; in rmtstatus()
278 return (rmtstatus_extended(mt)); in rmtstatus()
284 if ((unsigned)n > sizeof (*mt)) { in rmtstatus()
303 rmtstatus_extended(struct mtget *mt) in rmtstatus_extended() argument
305 if ((mt->mt_type = rmtcall("status", "sT")) == -1) in rmtstatus_extended()
307 mt->mt_dsreg = rmtcall("status", "sD"); in rmtstatus_extended()
308 mt->mt_erreg = rmtcall("status", "sE"); in rmtstatus_extended()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_vers.cc79 struct timeval mt; in nextminor() local
80 gettimeofday(&mt, NULL); in nextminor()
82 newvers->time_sec = (unsigned int) mt.tv_sec; in nextminor()
83 newvers->time_usec = (unsigned int) mt.tv_usec; in nextminor()
113 struct timeval mt; in nextmajor() local
114 gettimeofday(&mt, NULL); in nextmajor()
116 newvers->time_sec = (unsigned int) mt.tv_sec; in nextmajor()
117 newvers->time_usec = (unsigned int) mt.tv_usec; in nextmajor()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmxtouch.c41 tmxtouch(const char* path, Time_t at, Time_t mt, Time_t ct, int flags) in tmxtouch() argument
60 if (mt == TMX_NOTIME && !(flags & PATH_TOUCH_VERBATIM)) in tmxtouch()
62 else if (!mt && !(flags & PATH_TOUCH_VERBATIM)) in tmxtouch()
66 mv.tv_sec = tmxsec(mt); in tmxtouch()
67 mv.tv_nsec = tmxnsec(mt); in tmxtouch()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dtouch.c46 touch(const char* path, time_t at, time_t mt, int flags) in touch() argument
63 if (mt == (time_t)(-1) && !(flags & PATH_TOUCH_VERBATIM)) in touch()
65 else if (!mt && !(flags & PATH_TOUCH_VERBATIM)) in touch()
69 mv.tv_sec = mt; in touch()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_die.c414 struct Dwarf_P_debug_str_entry_s *mt = in make_debug_str_entry() local
417 if (!mt) { in make_debug_str_entry()
422 mt->dse_slen = slen; in make_debug_str_entry()
423 mt->dse_table_offset = 0; in make_debug_str_entry()
424 mt->dse_dbg = dbg; in make_debug_str_entry()
426 mt->dse_has_table_offset = TRUE; in make_debug_str_entry()
427 mt->dse_table_offset = offset_in_table; in make_debug_str_entry()
428 mt->dse_name = 0; in make_debug_str_entry()
431 mt->dse_has_table_offset = FALSE; in make_debug_str_entry()
436 mt->dse_table_offset = 0; in make_debug_str_entry()
[all …]
H A Dpro_init.c306 struct Dwarf_P_debug_str_entry_s* mt = in key_simple_string_hashfunc() local
310 if (mt->dse_has_table_offset) { in key_simple_string_hashfunc()
312 str = (const char *)mt->dse_dbg->de_debug_str->ds_data + in key_simple_string_hashfunc()
313 mt->dse_table_offset; in key_simple_string_hashfunc()
316 str = (const char *)mt->dse_name; in key_simple_string_hashfunc()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvdsk_common.h469 #define VD_MEDIATYPE2DK_MEDIATYPE(mt) \ argument
470 ((mt) == VD_MEDIA_FIXED ? DK_FIXED_DISK : \
471 (mt) == VD_MEDIA_CD ? DK_CDROM : \
472 (mt) == VD_MEDIA_DVD ? DK_DVDROM : \
492 #define DK_MEDIATYPE2VD_MEDIATYPE(mt) \ argument
493 (((mt) > DK_MEDIA_OPTICAL_MAX)? VD_MEDIA_FIXED : \
494 (mt) == DK_REMOVABLE_DISK ? VD_MEDIA_FIXED : \
495 (mt) == DK_MO_ERASABLE ? VD_MEDIA_FIXED : \
496 (mt) == DK_MO_WRITEONCE ? VD_MEDIA_FIXED : \
497 (mt) == DK_AS_MO ? VD_MEDIA_FIXED : \
[all …]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dfilesys_rcm.c696 struct mnttab mt; in cache_create() local
751 while (getmntent(fp, &mt) == 0) { in cache_create()
754 if ((mt.mnt_mntopts != NULL) && in cache_create()
755 (hasmntopt(&mt, OPT_IGNORE) != NULL)) in cache_create()
758 if (cache_insert(cache, &mt) < 0) { in cache_create()
950 cache_insert(cache_t *cache, struct mnttab *mt) in cache_insert() argument
959 (mt == NULL) || in cache_insert()
960 (mt->mnt_special == NULL) || in cache_insert()
961 (mt->mnt_mountp == NULL) || in cache_insert()
962 (mt->mnt_fstype == NULL)) { in cache_insert()
[all …]
/illumos-gate/usr/src/lib/libeti/menu/common/
H A Dterminit.c54 set_menu_term(MENU *m, PTF_void mt) in set_menu_term() argument
57 SMterm(m) = mt; in set_menu_term()
59 SMterm(Dfl_Menu) = mt; in set_menu_term()
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dalloc.c49 struct stats *mt, *mc; in alloc_fini() local
51 mt = Malloctotal; in alloc_fini()
57 stats_delete(mt); in alloc_fini()
/illumos-gate/usr/src/lib/librstp/common/
H A Dtimes.c61 unsigned short mt; in STP_set_times() local
63 mt = htons (f << 8); \ in STP_set_times()
64 (void) memcpy (t, &mt, 2); in STP_set_times()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dmntinfo.c696 construct_mt(struct mnttab *mt) in construct_mt() argument
703 if ((nfte = fs_tab_init(mt->mnt_mountp, mt->mnt_fstype)) == NULL) in construct_mt()
713 if (strcmp(mt->mnt_fstype, MNTTYPE_AUTOFS) == 0 || in construct_mt()
714 strcmp(mt->mnt_fstype, MNTTYPE_NFS) == 0 || in construct_mt()
715 is_remote_src(mt->mnt_special) == REAL_REMOTE) in construct_mt()
724 nfte->remote_name = strdup(mt->mnt_special); in construct_mt()
734 if (hasmntopt(mt, MNTOPT_RO) == NULL) { in construct_mt()
857 struct mnttab *mt = &mtbuf; in get_mntinfo() local
875 while (!getmntent(pp, mt)) in get_mntinfo()
876 if (construct_mt(mt)) in get_mntinfo()
/illumos-gate/usr/src/cmd/allocate/
H A Dst_clean.sh115 if mt -f $DEVFILE status 2>&1 | grep "no tape loaded" >/dev/null ; then
156 if mt -f $DEVFILE status 2>&1 | grep "no tape loaded" > /dev/null ; then
162 if mt -f $DEVFILE status 2>&1 | grep "no tape loaded" > /dev/null ; then
/illumos-gate/usr/src/cmd/backup/restore/
H A Dtape.c34 int mt = -1; variable
194 mt = open(archivefile, O_RDONLY|O_LARGEFILE); in setup()
195 if (mt < 0) { in setup()
201 if ((mt = rmtopen(magtape, O_RDONLY)) < 0) { in setup()
208 mt = 0; in setup()
209 else if ((mt = open(magtape, O_RDONLY|O_LARGEFILE)) < 0) { in setup()
555 if ((host != NULL && (mt = rmtopen(magtape, O_RDONLY)) == -1) || in getvol()
557 (mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) { in getvol()
694 retval = ioctl(mt, (int)MTIOCTOP, (char *)&tcom); in setdumpnum()
1520 i = read(mt, &tbf[rd], cnt); in readtape()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dalloc.c63 struct stats *mt, *ft, *mc, *fc; in alloc_fini() local
65 mt = Malloctotal; in alloc_fini()
75 stats_delete(mt); in alloc_fini()
/illumos-gate/usr/src/lib/libima/
H A DMakefile.com41 CFLAGS += -mt
45 CFLAGS64 += -mt
/illumos-gate/usr/src/lib/libsun_ima/
H A DMakefile.com46 CFLAGS += -mt
48 CFLAGS64 += -mt
/illumos-gate/usr/src/lib/libproc/common/
H A DPzone.c66 struct mnttab mt; in rebuild_lofs_cache() local
97 while (getmntany(fp, &mt, &mt_find) == 0 && in rebuild_lofs_cache()
98 (strcmp(mt.mnt_fstype, "lofs") == 0) && in rebuild_lofs_cache()
99 (strcmp(mt.mnt_special, mt.mnt_mountp) != 0)) { in rebuild_lofs_cache()
102 lmt->l_special = strdup(mt.mnt_special); in rebuild_lofs_cache()
103 lmt->l_mountp = strdup(mt.mnt_mountp); in rebuild_lofs_cache()

1234