/external/elfutils/tests/ |
H A D | test-nlist.c | 37 struct nlist nl[6] = local 49 if (nlist (".libs/test-nlist", nl) != 0 50 && nlist ("./test-nlist", nl) != 0) 56 for (cnt = 0; nl[cnt].n_name != NULL; ++cnt) 60 printf ("nl[%d].n_name = \"%s\"\n" 61 "nl[%d].n_value = %ld\n" 62 "nl[%d].n_scnum = %d\n" 63 "nl[%d].n_type = %u\n" 64 "nl[%d].n_sclass = %d\n" 65 "nl[ [all...] |
/external/libnl/python/examples/ |
H A D | iface.py | 1 import netlink.capi as nl namespace 13 e, attr = genl.py_genlmsg_parse(nl.nlmsg_hdr(m), 0, 16 thiswiphy = nl.nla_get_u32(attr[nl80211.NL80211_ATTR_WIPHY]) 19 print("\tinterface %s" % nl.nla_get_string(attr[nl80211.NL80211_ATTR_IFNAME])); 21 print("\tifindex %d" % nl.nla_get_u32(attr[nl80211.NL80211_ATTR_IFINDEX])) 23 print("\twdev 0x%lx" % nl.nla_get_u64(attr[nl80211.NL80211_ATTR_WDEV])) 25 print("\tmac %02x:%02x:%02x:%02x:%02x:%02x" % tuple(nl.nla_data(attr[nl80211.NL80211_ATTR_MAC]))) 27 print("\tssid ", nl.nla_data(attr[nl80211.NL80211_ATTR_SSID])) 29 iftype = nl.nla_get_u32(attr[nl80211.NL80211_ATTR_IFTYPE]) 32 freq = nl [all...] |
H A D | wiphy.py | 1 import netlink.capi as nl namespace 28 e, fattr = nl.py_nla_parse_nested(nl80211.NL80211_FREQUENCY_ATTR_MAX, attr, pol) 30 freq = nl.nla_get_u32(fattr[nl80211.NL80211_FREQUENCY_ATTR_FREQ]) 33 sys.stdout.write(" (%.1f dBm)" % (0.01 * nl.nla_get_u32(fattr[nl80211.NL80211_FREQUENCY_ATTR_MAX_TX_POWER]))) 39 e, battr = nl.py_nla_parse_nested(nl80211.NL80211_BAND_ATTR_MAX, attr, None) 40 print("\tband %d:" % nl.nla_type(attr)) 42 for fattr in nl.nla_get_nested(battr[nl80211.NL80211_BAND_ATTR_FREQS]): 66 e, attr = genl.py_genlmsg_parse(nl.nlmsg_hdr(m), 0, 69 print('wiphy %s' % nl.nla_get_string(attr[nl80211.NL80211_ATTR_WIPHY_NAME])) 71 fpol = nl [all...] |
/external/elfutils/libelf/ |
H A D | nlist.c | 60 nlist (const char *filename, struct nlist *nl) argument 177 while (nl->n_name != NULL && nl->n_name[0] != '\0') 183 search.str = nl->n_name; 184 found = nlist_fshash_find (table, nl->n_name, 0, &search); 189 nl->n_value = found->sym.st_value; 190 nl->n_scnum = found->sym.st_shndx; 191 nl->n_type = GELF_ST_TYPE (found->sym.st_info); 193 nl->n_sclass = 0; 194 nl [all...] |
/external/libnetfilter_conntrack/examples/ |
H A D | nfct-mnl-flush.c | 14 struct mnl_socket *nl; local 21 nl = mnl_socket_open(NETLINK_NETFILTER); 22 if (nl == NULL) { 27 if (mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID) < 0) { 31 portid = mnl_socket_get_portid(nl); 43 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len); 49 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 54 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 61 mnl_socket_close(nl);
|
H A D | nfct-mnl-create.c | 14 struct mnl_socket *nl; local 22 nl = mnl_socket_open(NETLINK_NETFILTER); 23 if (nl == NULL) { 28 if (mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID) < 0) { 32 portid = mnl_socket_get_portid(nl); 65 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len); 71 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 76 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 83 mnl_socket_close(nl);
|
H A D | nfct-mnl-del.c | 14 struct mnl_socket *nl; local 22 nl = mnl_socket_open(NETLINK_NETFILTER); 23 if (nl == NULL) { 28 if (mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID) < 0) { 32 portid = mnl_socket_get_portid(nl); 60 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len); 66 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 71 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 78 mnl_socket_close(nl);
|
H A D | nfct-mnl-dump.c | 31 struct mnl_socket *nl; local 38 nl = mnl_socket_open(NETLINK_NETFILTER); 39 if (nl == NULL) { 44 if (mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID) < 0) { 48 portid = mnl_socket_get_portid(nl); 60 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len); 66 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 71 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 78 mnl_socket_close(nl);
|
H A D | nfexp-mnl-dump.c | 35 struct mnl_socket *nl; local 42 nl = mnl_socket_open(NETLINK_NETFILTER); 43 if (nl == NULL) { 48 if (mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID) < 0) { 53 portid = mnl_socket_get_portid(nl); 65 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len); 71 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 77 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 84 mnl_socket_close(nl);
|
H A D | nfct-mnl-event.c | 44 struct mnl_socket *nl; local 48 nl = mnl_socket_open(NETLINK_NETFILTER); 49 if (nl == NULL) { 54 if (mnl_socket_bind(nl, NF_NETLINK_CONNTRACK_NEW | 63 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 76 mnl_socket_close(nl);
|
H A D | nfexp-mnl-event.c | 44 struct mnl_socket *nl; local 48 nl = mnl_socket_open(NETLINK_NETFILTER); 49 if (nl == NULL) { 54 if (mnl_socket_bind(nl, NF_NETLINK_CONNTRACK_EXP_NEW | 63 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 76 mnl_socket_close(nl);
|
H A D | nfct-mnl-set-label.c | 10 struct mnl_socket *nl; member in struct:callback_args 60 if (mnl_socket_sendto(cbargs->nl, nlh, nlh->nlmsg_len) < 0) 105 struct mnl_socket *nl; local 107 nl = mnl_socket_open(NETLINK_NETFILTER); 108 if (nl == NULL) { 113 if (mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID) < 0) { 118 return nl; 123 struct mnl_socket *nl; local 148 nl = sock_nl_create(); 149 portid = mnl_socket_get_portid(nl); [all...] |
H A D | nfct-mnl-dump-labels.c | 46 struct mnl_socket *nl; local 54 nl = mnl_socket_open(NETLINK_NETFILTER); 55 if (nl == NULL) { 60 if (mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID) < 0) { 64 portid = mnl_socket_get_portid(nl); 77 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len); 83 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 90 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 100 mnl_socket_close(nl);
|
H A D | nfct-mnl-get.c | 33 struct mnl_socket *nl; local 41 nl = mnl_socket_open(NETLINK_NETFILTER); 42 if (nl == NULL) { 47 if (mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID) < 0) { 51 portid = mnl_socket_get_portid(nl); 79 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len); 85 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 90 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 97 mnl_socket_close(nl);
|
/external/apache-xml/src/main/java/org/apache/xpath/functions/ |
H A D | FuncCount.java | 47 // DTMIterator nl = m_arg0.asIterator(xctxt, xctxt.getCurrentNode()); 53 // while (DTM.NULL != nl.nextNode()) 57 // nl.detach(); 58 DTMIterator nl = m_arg0.asIterator(xctxt, xctxt.getCurrentNode()); 59 int i = nl.getLength(); 60 nl.detach();
|
/external/apache-xml/src/main/java/org/apache/xpath/patterns/ |
H A D | FunctionPattern.java | 106 DTMIterator nl = m_functionExpr.asIterator(xctxt, context); 109 if (null != nl) 113 while (DTM.NULL != (n = nl.nextNode())) 125 // nl.detach(); 127 nl.detach(); 150 DTMIterator nl = m_functionExpr.asIterator(xctxt, context); 153 if (null != nl) 157 while (DTM.NULL != (n = nl.nextNode())) 169 nl.detach(); 193 DTMIterator nl [all...] |
/external/python/cpython2/Parser/ |
H A D | acceler.c | 69 int nl = g->g_ll.ll_nlabels; local 71 accel = (int *) PyObject_MALLOC(nl * sizeof(int)); 76 for (k = 0; k < nl; k++) 105 else if (lbl >= 0 && lbl < nl) 108 while (nl > 0 && accel[nl-1] == -1) 109 nl--; 110 for (k = 0; k < nl && accel[k] == -1;) 112 if (k < nl) { 114 s->s_accel = (int *) PyObject_MALLOC((nl [all...] |
/external/syslinux/com32/lib/ |
H A D | memcpy.c | 13 size_t nl = n >> 2; local 14 asm volatile ("cld ; rep ; movsl ; movl %3,%0 ; rep ; movsb":"+c" (nl),
|
H A D | memset.c | 13 size_t nl = n >> 2; local 15 : "+c" (nl), "+D" (q)
|
/external/syslinux/memdisk/ |
H A D | memcpy.c | 13 size_t nl = n >> 2; local 14 asm volatile ("cld ; rep ; movsl ; movl %3,%0 ; rep ; movsb":"+c" (nl),
|
H A D | memset.c | 13 size_t nl = n >> 2; local 15 : "+c" (nl), "+D" (q)
|
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
H A D | KeyManager.java | 62 XNodeSet nl = null; 84 nl = kt.getNodeSetDTMByKey(name, ref); 86 if (nl != null) 96 if ((null == nl) &&!foundDoc /* && m_needToBuildKeysTable */) 108 nl = kt.getNodeSetDTMByKey(name, ref); 113 return nl;
|
/external/iproute2/tipc/ |
H A D | msg.c | 51 struct mnl_socket *nl; local 53 nl = mnl_socket_open(NETLINK_GENERIC); 54 if (nl == NULL) { 59 ret = mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID); 65 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len); 71 return nl; 74 static int msg_recv(struct mnl_socket *nl, mnl_cb_t callback, void *data, int seq) argument 80 portid = mnl_socket_get_portid(nl); 82 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); 87 ret = mnl_socket_recvfrom(nl, bu 100 struct mnl_socket *nl; local [all...] |
/external/blktrace/btt/ |
H A D | plat.c | 25 long nl; member in struct:plat_info 38 pp->nl = 0; 62 pp->first_ts + (delta / 2), pp->tl / pp->nl); 77 pp->nl = 1; 83 pp->first_ts + (delta / 2), pp->tl / pp->nl); 86 pp->nl = 1; 90 pp->nl += 1;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/util/ |
H A D | ASN1Dump.java | 60 String nl = Strings.lineSeparator(); 80 buf.append(nl); 90 buf.append(nl); 126 buf.append(nl); 132 buf.append(nl); 155 buf.append(nl); 165 buf.append(nl); 195 buf.append(nl); 200 buf.append(indent + "ObjectIdentifier(" + ((ASN1ObjectIdentifier)obj).getId() + ")" + nl); 204 buf.append(indent + "Boolean(" + ((ASN1Boolean)obj).isTrue() + ")" + nl); 302 outputApplicationSpecific(String type, String indent, boolean verbose, ASN1Primitive obj, String nl) argument [all...] |