tn
{ "open", openhelp, tn, 0 },
int tn(int argc, char **argv);
if (tn(argp - args, args) == 1)
bn_mul_normal(&(r[n2]), &(a[n]), tn, &(b[n]), tn);
memset(&r[n2 + tn * 2], 0, sizeof(*r) * (n2 - tn * 2));
struct sigev_thread *tn;
tn = malloc(sizeof(*tn));
tn->tn_cur = NULL;
tn->tn_lwpid = -1;
tn->tn_refcount = 1;
_pthread_cond_init(&tn->tn_cv, NULL);
LIST_INSERT_HEAD(&sigev_threads, tn, tn_link);
ret = _pthread_create(&tn->tn_thread, &sigev_default_attr,
sigev_service_loop, tn);
LIST_REMOVE(tn, tn_link);
free(tn);
tn = NULL;
while (tn->tn_lwpid == -1)
_pthread_cond_wait(&tn->tn_cv, sigev_list_mtx);
return (tn);
struct sigev_thread *tn;
tn = arg;
thr_self(&tn->tn_lwpid);
_pthread_cond_broadcast(&tn->tn_cv);
if (tn->tn_refcount == 0) {
LIST_REMOVE(tn, tn_link);
free(tn);
tn->tn_cur = sn;
tn->tn_cur = NULL;
} else if (tn->tn_cur) {
while (tn->tn_cur)
_pthread_cond_wait(&tn->tn_cv, sigev_list_mtx);
tn = tv;
while (tv.tv_sec > tn.tv_sec || (tv.tv_sec ==
tn.tv_sec && tv.tv_usec > tn.tv_usec)) {
gettimeofday(&tn, NULL);
struct timeval tv, tn;
struct tgate_net *tn;
if (tg && (tn = tg->tgate_nets)->mask != 0) {
for (i = 0; i < MAX_TGATE_NETS; i++, tn++) {
if (on_net(dst, tn->net, tn->mask)
&& tn->mask <= mask)
if (i >= MAX_TGATE_NETS || tn->mask == 0) {
char tn[32];
snprintf(tn, sizeof(tn), "dev.amdtemp.%d.sensor_offset", unit);
TUNABLE_INT_FETCH(tn, &sc->sc_offset);
mpt_configure_ioc(struct mpt_softc *mpt, int tn, int needreset)
if (tn == MPT_MAX_TRYS) {
return (mpt_configure_ioc(mpt, tn++, 1));
return (mpt_configure_ioc(mpt, tn++, 1));
return (mpt_configure_ioc(mpt, tn++, 1));
char tn[32];
snprintf(tn, sizeof(tn), "dev.rl.%d.twister_enable", unit);
TUNABLE_INT_FETCH(tn, &sc->rl_twister_enable);
snprintf(tn, sizeof(tn), "dev.rl.%d.prefer_iomap", unit);
TUNABLE_INT_FETCH(tn, &prefer_iomap);
static ccb_p sym_get_ccb (hcb_p np, u_char tn, u_char ln, u_char tag_order);
static lcb_p sym_alloc_lcb (hcb_p np, u_char tn, u_char ln);
static void sym_alloc_lcb_tags (hcb_p np, u_char tn, u_char ln);
static ccb_p sym_get_ccb (hcb_p np, u_char tn, u_char ln, u_char tag_order)
tcb_p tp = &np->target[tn];
lp = sym_alloc_lcb(np, tn, ln);
sym_alloc_lcb_tags(np, tn, ln);
cp->target = tn;
PRINT_LUN(np, tn, ln);
static lcb_p sym_alloc_lcb (hcb_p np, u_char tn, u_char ln)
tcb_p tp = &np->target[tn];
static void sym_alloc_lcb_tags (hcb_p np, u_char tn, u_char ln)
tcb_p tp = &np->target[tn];
if (!lp && !(lp = sym_alloc_lcb(np, tn, ln)))
u_int tn;
tn = xpt_path_target_id(path);
if (tn >= SYM_CONF_MAX_TARGET)
tp = &np->target[tn];
Symbios_target *tn = &nvram->target[target];
tp->tinfo.user.period = tn->sync_period ? (tn->sync_period + 3) / 4 : 0;
tp->tinfo.user.width = tn->bus_width == 0x10 ? BUS_16_BIT : BUS_8_BIT;
(tn->flags & SYMBIOS_QUEUE_TAGS_ENABLED)? SYM_SETUP_MAX_TAG : 0;
if (!(tn->flags & SYMBIOS_DISCONNECT_ENABLE))
if (!(tn->flags & SYMBIOS_SCAN_AT_BOOT_TIME))
if (!(tn->flags & SYMBIOS_SCAN_LUNS))
struct Tekram_target *tn = &nvram->target[target];
if (tn->flags & TEKRAM_SYNC_NEGO) {
i = tn->sync_index & 0xf;
(tn->flags & TEKRAM_WIDE_NEGO) ? BUS_16_BIT : BUS_8_BIT;
if (tn->flags & TEKRAM_TAGGED_COMMANDS) {
if (tn->flags & TEKRAM_DISCONNECT_ENABLE)
if (!(tn->flags & TEKRAM_PARITY_CHECK))
struct Symbios_target *tn = &nvram->target[i];
(tn->flags & SYMBIOS_DISCONNECT_ENABLE) ? " DISC" : "",
(tn->flags & SYMBIOS_SCAN_AT_BOOT_TIME) ? " SCAN_BOOT" : "",
(tn->flags & SYMBIOS_SCAN_LUNS) ? " SCAN_LUNS" : "",
(tn->flags & SYMBIOS_QUEUE_TAGS_ENABLED)? " TCQ" : "",
tn->bus_width,
tn->sync_period / 4,
tn->timeout);
struct Tekram_target *tn = &nvram->target[i];
j = tn->sync_index & 0xf;
(tn->flags & TEKRAM_PARITY_CHECK) ? " PARITY" : "",
(tn->flags & TEKRAM_SYNC_NEGO) ? " SYNC" : "",
(tn->flags & TEKRAM_DISCONNECT_ENABLE) ? " DISC" : "",
(tn->flags & TEKRAM_START_CMD) ? " START" : "",
(tn->flags & TEKRAM_TAGGED_COMMANDS) ? " TCQ" : "",
(tn->flags & TEKRAM_WIDE_NEGO) ? " WIDE" : "",
tmpfs_vptocnp_dir(struct tmpfs_node *tn, struct tmpfs_node *tnp,
if (de->td_node == tn) {
tmpfs_vptocnp_fill(struct vnode *vp, struct tmpfs_node *tn,
error = tmpfs_vptocnp_dir(tn, tnp, &de);
struct tmpfs_node *tn, *tnp, *tnp1;
tn = VP_TO_TMPFS_NODE(vp);
if (tn->tn_type == VDIR) {
tnp = tn->tn_dir.tn_parent;
error = tmpfs_vptocnp_fill(vp, tn, tn->tn_dir.tn_parent, buf,
error = tnp->tn_vnode == NULL ? tmpfs_vptocnp_dir(tn, tnp,
error = tmpfs_vptocnp_fill(vp, tn, tnp, buf, buflen,
tmpfs_seek_clamp(struct tmpfs_node *tn, off_t *noff, bool seekdata)
if (*noff < tn->tn_size)
*noff = tn->tn_size;
struct tmpfs_node *tn;
tn = VP_TO_TMPFS_NODE(vp);
error = tmpfs_seek_clamp(tn, &noff, seekdata);
obj = tn->tn_reg.tn_aobj;
error = tmpfs_seek_clamp(tn, &noff, seekdata);
struct ieee80211_node_txrate tn;
tn = IEEE80211_NODE_TXRATE_INIT_LEGACY(rate);
mword = ieee80211_rate2media(ic, &tn, mode);
tn = IEEE80211_NODE_TXRATE_INIT_LEGACY(allrates.rs_rates[i]);
mword = ieee80211_rate2media(ic, &tn, IEEE80211_MODE_AUTO);
struct ieee80211_node_txrate tn;
tn = IEEE80211_NODE_TXRATE_INIT_LEGACY(rs->rs_rates[i]);
mword = ieee80211_rate2media(ic, &tn, mode);
struct ieee80211_node_txrate tn;
tn = IEEE80211_NODE_TXRATE_INIT_LEGACY(
imr->ifm_active |= ieee80211_rate2media(ic, &tn, mode);
ieee80211_node_get_txrate(vap->iv_bss, &tn);
imr->ifm_active |= ieee80211_rate2media(ic, &tn, mode);
#define NETGRAPH_INIT(tn, tp) \
NETGRAPH_INIT_ORDERED(tn, tp, SI_SUB_PSEUDO, SI_ORDER_MIDDLE)
struct timeval tn, *tim_touse;
(void)SCTP_GETTIME_TIMEVAL(&tn);
ticks_gone_by = sctp_secs_to_ticks((uint32_t)(tn.tv_sec - tim_touse->tv_sec));
char n[MAX_FNAME], envstr[MAX_ENVSTR], tn[MAX_FNAME];
if (snprintf(tn, sizeof(tn), CRON_TAB(n)) >= (int)sizeof(tn)) {
if (!(tmp = fopen(tn, "w+"))) {
warn("%s", tn);
warnx("error while writing new crontab to %s", tn);
fclose(tmp); unlink(tn);
fclose(tmp); unlink(tn);
if (chown(tn, ROOT_UID, -1) < OK)
fclose(tmp); unlink(tn);
if (chmod(tn, 0600) < OK)
fclose(tmp); unlink(tn);
unlink(tn);
unlink(tn);
if (rename(tn, n)) {
warn("error renaming %s to %s", tn, n);
unlink(tn);