ls
show_score(int y, int x, int s, int *ls)
if (s == *ls)
*ls = s;
for (sq = sp + 1; sq < ls; sq++)
ls = SHIP(cc->vessels);
extern struct ship *ls; /* &cc->ship[cc->vessels] */
#define foreachship(sp) for ((sp) = cc->ship; (sp) < ls; (sp)++)
struct ship *ls; /* &cc->ship[cc->vessels] */
if (sp >= ls) {
ls = SHIP(cc->vessels);
Char *lm, *ls;
ls = lm;
for (lm = ls; (pl < pm); *lm++ = *pl++)
const char *ls, *fs, *rs;
ls = ERR_lib_error_string(e);
if (ls == NULL) {
ls = lsbuf;
ret = snprintf(buf, len, "error:%08lX:%s:%s:%s", e, ls, fs, rs);
chtype ls, chtype rs,
_tracechtype2(1, ls),
RENDER_WITH_DEFAULT(ls, ACS_VLINE);
#define border(ls, rs, ts, bs, tl, tr, bl, br) wborder(stdscr, ls, rs, ts, bs, tl, tr, bl, br)
const ARG_CH_T ls, const ARG_CH_T rs,
_tracech_t2(1, ls),
RENDER_WITH_DEFAULT(ls, WACS_VLINE);
status(int link, struct sockaddr_dl *sdl, int ls)
if (ls != LINK_STATE_UNKNOWN)
get_linkstate(sdl->sdl_type, ls));
printf("\tstatus: %s\n", get_linkstate(sdl->sdl_type, ls));
socket_listen(int *ls, struct addrinfo *hints, const char *listenaddr,
ls[nls] = socket(res->ai_family, res->ai_socktype,
if (ls[nls] == -1) {
if (setsockopt(ls[nls], SOL_SOCKET, SO_RCVBUF,
if (setsockopt(ls[nls], SOL_SOCKET, SO_REUSEADDR,
if (bind(ls[nls], res->ai_addr, res->ai_addrlen) == -1) {
close(ls[nls]);
if (listen(ls[nls], 5) == -1)
if (getsockname(ls[nls], (struct sockaddr *)&sa, &salen) == -1)
listen_select(const int *ls, int nls)
FD_SET(ls[i], &fdset);
if (ls[i] > mfd)
mfd = ls[i];
if (FD_ISSET(ls[i], &fdset))
return ls[i];
socket_accept(int ls)
as = accept(ls, (struct sockaddr *)&sa, &salen);
int ch, ls[FD_SETSIZE], nls, as, cs, optval;
nls = socket_listen(ls, &hints, listenaddr, listenport);
as = socket_accept(listen_select(ls, nls));
as = listen_select(ls, nls);
CMDFUNC(ls); /* list directory */
{ "ls", "List current inode as directory", 1, 1, ls },
CMDFUNCSTART(ls)
status(int link, struct sockaddr_dl *sdl, int ls, int ifaliases)
if (ls != LINK_STATE_UNKNOWN)
get_linkstate(sdl->sdl_type, ls));
printf("\tstatus: %s\n", get_linkstate(sdl->sdl_type, ls));
ls(path, &sb);
ls(dent->d_name, &sb);
static void ls(const char *, struct stat *);
m88100_fpu_parse_single(uint32_t hs, uint32_t ls)
result |= ls >> (DBL_FRACBITS - SNG_FRACBITS);
ls(path, &sb);
ls(dent->d_name, &sb);
static void ls(const char *, struct stat *);
ls(path, &sb);
ls(dent->d_name, &sb);
static void ls(const char *, struct stat *);
uint32_t channel, noise, ls;
ls = letoh32(*mtod(args, uint32_t *));
sc->sc_dev.dv_xname, __func__, ls));
if (ls)
error = pgt_oid_get(sc, PGT_OID_LINK_STATE, &ls, sizeof(ls));
htole32(ls)));
if (ls != 0)
struct rtw_led_state *ls;
ls = &sc->sc_led_state;
timeout_del(&ls->ls_slow_ch);
timeout_del(&ls->ls_fast_ch);
ls->ls_slowblink = 0;
ls->ls_actblink = 0;
ls->ls_default = 0;
timeout_add_msec(&ls->ls_slow_ch, RTW_LED_SLOW_MSEC);
timeout_add_msec(&ls->ls_fast_ch, RTW_LED_FAST_MSEC);
ls->ls_default = RTW_LED1;
ls->ls_actblink = RTW_LED1;
ls->ls_slowblink = RTW_LED1;
ls->ls_slowblink = 0;
rtw_led_set(ls, &sc->sc_regs, sc->sc_hwverid);
rtw_led_set(struct rtw_led_state *ls, struct rtw_regs *regs, u_int hwverid)
led_condition = ls->ls_default;
if (ls->ls_state & RTW_LED_S_SLOW)
led_condition ^= ls->ls_slowblink;
if (ls->ls_state & (RTW_LED_S_RX|RTW_LED_S_TX))
led_condition ^= ls->ls_actblink;
struct rtw_led_state *ls = &sc->sc_led_state;
ostate = ls->ls_state;
ls->ls_state ^= ls->ls_event;
if ((ls->ls_event & RTW_LED_S_TX) == 0)
ls->ls_state &= ~RTW_LED_S_TX;
if ((ls->ls_event & RTW_LED_S_RX) == 0)
ls->ls_state &= ~RTW_LED_S_RX;
ls->ls_event = 0;
if (ostate != ls->ls_state)
rtw_led_set(ls, &sc->sc_regs, sc->sc_hwverid);
timeout_add_msec(&ls->ls_fast_ch, RTW_LED_FAST_MSEC);
struct rtw_led_state *ls = &sc->sc_led_state;
ls->ls_state ^= RTW_LED_S_SLOW;
rtw_led_set(ls, &sc->sc_regs, sc->sc_hwverid);
timeout_add_msec(&ls->ls_slow_ch, RTW_LED_SLOW_MSEC);
rtw_led_attach(struct rtw_led_state *ls, void *arg)
timeout_set(&ls->ls_fast_ch, rtw_led_fastblink, arg);
timeout_set(&ls->ls_slow_ch, rtw_led_slowblink, arg);
u_int32_t ls;
ls = xfer->device->speed == USB_SPEED_LOW ? UHCI_TD_LS : 0;
setup->td.td_status = htole32(UHCI_TD_SET_ERRCNT(3) | ls |
stat->td.td_status = htole32(UHCI_TD_SET_ERRCNT(3) | ls |
uByte ls;
ls = (sc->sc_dtr ? MCR_DTR : 0) |
sc->sc_dtr, sc->sc_rts, ls));
(void)usbd_do_request(sc->sc_udev, &req, &ls);
struct usb_cdc_line_state ls;
USETDW(ls.dwDTERate, t->c_ospeed);
ls.bCharFormat = UCDC_STOP_BIT_2;
ls.bCharFormat = UCDC_STOP_BIT_1;
ls.bParityType = UCDC_PARITY_ODD;
ls.bParityType = UCDC_PARITY_EVEN;
ls.bParityType = UCDC_PARITY_NONE;
ls.bDataBits = 5;
ls.bDataBits = 6;
ls.bDataBits = 7;
ls.bDataBits = 8;
err = umodem_set_line_coding(sc, &ls);
int ls;
ls = (sc->sc_dtr ? UCDC_LINE_DTR : 0) |
USETW(req.wValue, ls);
int ls;
ls = (sc->sc_dtr ? UCDC_LINE_DTR : 0) |
USETW(req.wValue, ls);
int ls;
ls = (sc->sc_dtr ? UCDC_LINE_DTR : 0) |
USETW(req.wValue, ls);
int ls;
ls = (sc->sc_dtr ? UCDC_LINE_DTR : 0) |
USETW(req.wValue, ls);
struct usb_cdc_line_state ls;
uplcom_encode_speed(sc, t->c_ospeed, &ls);
ls.bCharFormat = UCDC_STOP_BIT_2;
ls.bCharFormat = UCDC_STOP_BIT_1;
ls.bParityType = UCDC_PARITY_ODD;
ls.bParityType = UCDC_PARITY_EVEN;
ls.bParityType = UCDC_PARITY_NONE;
ls.bDataBits = 5;
ls.bDataBits = 6;
ls.bDataBits = 7;
ls.bDataBits = 8;
err = uplcom_set_line_coding(sc, &ls);
uvscom_set_line_coding(struct uvscom_softc *sc, uint16_t lsp, uint16_t ls)
sc->sc_dev.dv_xname, lsp, ls));
USETW(req.wValue, ls);
uint16_t ls;
ls = 0;
SET(ls, UVSCOM_STOP_BIT_2);
SET(ls, UVSCOM_STOP_BIT_1);
SET(ls, UVSCOM_PARITY_ODD);
SET(ls, UVSCOM_PARITY_EVEN);
SET(ls, UVSCOM_PARITY_NONE);
SET(ls, UVSCOM_DATA_BIT_5);
SET(ls, UVSCOM_DATA_BIT_6);
SET(ls, UVSCOM_DATA_BIT_7);
SET(ls, UVSCOM_DATA_BIT_8);
err = uvscom_set_line_coding(sc, lsp, ls);
struct usb_cdc_line_state ls;
USETDW(ls.dwDTERate, t->c_ospeed);
ls.bCharFormat = UCDC_STOP_BIT_2;
ls.bCharFormat = UCDC_STOP_BIT_1;
ls.bParityType = UCDC_PARITY_ODD;
ls.bParityType = UCDC_PARITY_EVEN;
ls.bParityType = UCDC_PARITY_NONE;
ls.bDataBits = 5;
ls.bDataBits = 6;
ls.bDataBits = 7;
ls.bDataBits = 8;
err = uxrcom_set_line_coding(sc, &ls);
knote_acquire(struct knote *kn, struct klist *klist, int ls)
klist_unlock(klist, ls);
int ls;
ls = klist_lock(list);
klist_unlock(list, ls);
int ls;
ls = klist_lock(klist);
klist_unlock(klist, ls);
int ls;
ls = klist_lock(klist);
klist_unlock(klist, ls);
int ls;
ls = klist_lock(list);
if (!knote_acquire(kn, list, ls)) {
ls = klist_lock(list);
klist_unlock(list, ls);
ls = klist_lock(list);
klist_unlock(list, ls);
int ls = 0;
ls = list->kl_ops->klo_lock(list->kl_arg);
ls = splhigh();
return ls;
klist_unlock(struct klist *list, int ls)
list->kl_ops->klo_unlock(list->kl_arg, ls);
splx(ls);
ls_ref(struct lockf_state *ls)
ls->ls_refs++;
ls_rele(struct lockf_state *ls)
if (--ls->ls_refs > 0)
KASSERT(TAILQ_EMPTY(&ls->ls_locks));
KASSERT(TAILQ_EMPTY(&ls->ls_pending));
*ls->ls_owner = NULL;
pool_put(&lockf_state_pool, ls);
struct lockf_state *ls;
ls = *state;
if (ls == NULL && op != F_SETLK) {
if (ls == NULL) {
ls = pool_get(&lockf_state_pool, PR_WAITOK | PR_ZERO);
ls->ls_owner = state;
TAILQ_INIT(&ls->ls_locks);
TAILQ_INIT(&ls->ls_pending);
*state = ls;
ls_ref(ls);
ls_rele(ls);
lock->lf_state = ls;
struct lockf_state *ls;
ls = *state;
if (ls == NULL)
ls_ref(ls);
TAILQ_FOREACH(lock, &ls->ls_locks, lf_entry) {
while (!TAILQ_EMPTY(&ls->ls_pending))
rwsleep_nsec(ls, &lockf_lock, PLOCK, "lockfp", INFSLP);
while ((lock = TAILQ_FIRST(&ls->ls_locks))) {
TAILQ_REMOVE(&ls->ls_locks, lock, lf_entry);
KASSERT(ls->ls_refs == 1);
ls_rele(ls);
ls(cmd.path, &sb);
ls(p, &sb);
static void ls(char *, struct stat *);
void ls(int, char **);
{ "dir", H(dirhelp), 1, 1, 1, CMPL(rl) ls },
{ "ls", H(lshelp), 1, 1, 1, CMPL(rl) ls },
{ "nlist", H(nlisthelp), 1, 1, 1, CMPL(rl) ls },
struct ldapc_search ls;
memset(&ls, 0, sizeof(ls));
ls.ls_scope = -1;
ls.ls_basedn = optarg;
ls.ls_timelimit = strtonum(optarg, 0, INT_MAX,
ls.ls_scope = LDAP_SCOPE_BASE;
ls.ls_scope = LDAP_SCOPE_ONELEVEL;
ls.ls_scope = LDAP_SCOPE_SUBTREE;
ls.ls_sizelimit = strtonum(optarg, 0, INT_MAX,
if (url != NULL && ldapc_parseurl(&ldap, &ls, url) == -1)
if (ls.ls_basedn == NULL)
ls.ls_basedn = "";
if (ls.ls_scope == -1)
ls.ls_scope = LDAP_SCOPE_SUBTREE;
if (ls.ls_filter == NULL)
ls.ls_filter = LDAPFILTER;
ls.ls_filter = argv[0];
ls.ls_attr = argv;
if (ldapc_search(&ldap, &ls) == -1)
ldapc_search(struct ldapc *ldap, struct ldapc_search *ls)
if (aldap_search(ldap->ldap_al, ls->ls_basedn, ls->ls_scope,
ls->ls_filter, ls->ls_attr, 0, ls->ls_sizelimit,
ls->ls_timelimit, pg) == -1) {
dn = ls->ls_basedn;
ldapc_parseurl(struct ldapc *ldap, struct ldapc_search *ls, const char *url)
if (lu->dn != NULL && ls->ls_basedn != NULL &&
strcasecmp(ls->ls_basedn, lu->dn) != 0) {
ls->ls_basedn = lu->dn;
if (ls->ls_scope != -1 && (ls->ls_scope != lu->scope)) {
ls->ls_scope = lu->scope;
ls->ls_attr = lu->attributes;
ls->ls_filter = lu->filter;
LstSrc *ls = lsp;
targ = ls->s;
Lst_AtEnd(ls->l, s2);
printf("2 add %x %x to %x:", targ, s2, ls->l);
Lst_Every(ls->l, PrintAddr);
LstSrc ls;
ls.s = targ;
ls.l = l;
Lst_ForEach(&targ->suff->children, SuffAddSrc, &ls);
int soff, ls;
for (ls = 0; ls < llength(slp); ls++)
if (!isspace(lgetc(slp, ls)))
forwdel(FFRAND, ls);
soff -= ls;
size_t ls = strlen(string);
else if (init > (off_t)ls)
s2 = lmemfind(s1, ls - (size_t)init, p, lp);
sm[i].sm_eo = ls;
ms->src_end = s + ls;
sm->sm_eo = ls;
struct psp_launch_start ls;
memset(&ls, 0, sizeof(ls));
ls.policy = (GPOL_NODBG | GPOL_NOKS | GPOL_NOSEND | GPOL_DOMAIN |
ls.policy |= GPOL_ES;
if (ioctl(env->vmd_psp_fd, PSP_IOC_LAUNCH_START, &ls) < 0) {
*handle = ls.handle;