Home
last modified time | relevance | path

Searched refs:country (Results 1 – 25 of 102) sorted by relevance

12345

/freebsd/lib/lib80211/
H A Dlib80211_regdomain.h64 struct country;
69 const struct country *cc; /* country code for 1-1/default map */
82 struct country { struct
89 LIST_ENTRY(country) next; argument
95 LIST_HEAD(, country) countries; /* country code table */
114 const struct country *lib80211_country_findbycc(const struct regdata *,
116 const struct country *lib80211_country_findbyname(const struct regdata *,
H A Dlib80211_regdomain.c54 struct country *country; /* current country */ member
94 if (mt->country == NULL) { in start_element()
100 mt->country->rd = (void *)strdup(ref); in start_element()
154 if (iseq(name, "country") && mt->country == NULL) { in start_element()
155 mt->country = calloc(1, sizeof(struct country)); in start_element()
156 mt->country->isoname = strdup(id); in start_element()
157 mt->country->code = NO_COUNTRY; in start_element()
159 LIST_INSERT_HEAD(&mt->rdp->countries, mt->country, next); in start_element()
311 if (iseq(name, "isocc") && mt->country != NULL) { in end_element()
312 mt->country->code = strtoul(p, NULL, 0); in end_element()
[all …]
/freebsd/usr.sbin/bsdconfig/timezone/share/
H A Dmenus.subr47 # continent and country menus.
59 # Space-separated list of 2-character country codes.
61 # Desired menu text for the country-zone represented by *, the 2-
62 # character country code.
67 # Number of zones for the country represented by *, the 2-
68 # character country code. Should be -1 if the country has only
70 # zones the country has.
72 # Principal continent (or ocean) in which the country-zone
73 # represented by *, the 2-character country code, resides.
75 # Principal continent (or ocean) in which zone-N of the country
[all …]
H A Dcountries.subr32 # Returns a single property of a given country. Available properties are:
34 # name Name of the country as read from _PATH_ISO3166.
35 # nzones Number of zones within the country (-1 if country has
39 # cont The principal continent in which the country lies (appears
41 # filename_N Like filename, but for the Nth zone when the country has
43 # cont_N Like cont, but for the Nth zone when the country has
45 # descr_N Like name, but for the Nth zone when the country has
59 # Sorts alphabetically the 2-character country codes listed in $COUNTRIES based
60 # on the name of each country.
H A Diso3166.subr55 # Read the ISO 3166 country code database in _PATH_ISO3166:
68 # two ISO 3166 2-character country code
69 # three ISO 3166 3-character country code (if provided)
70 # number ISO 3166 numeric country code (if provided)
71 # name Human-readable country name (may contain spaces)
76 # A space-separated list of 2-character country codes.
78 # The country `name' (as described above).
80 # where CODE is the 2-character country code.
132 # Get the ISO3166-1 (Alpha 1) 2-letter country code
136 # Validate the two-character country code
H A Dzones.subr77 # The ISO 3166 2-character country code.
86 # Comments; present if and only if the country has multiple rows.
99 # Country name of the country represented by CODE, the 2-
100 # character country code.
105 # Either set to `-1' to indicate that the 2-character country
109 # iated with the given country code. When multiple zones are
125 # NOTE: CODE is the 2-character country code.
166 # Validate the two-character country code
266 # Get the ISO3166-1 (Alpha 1) 2-letter country code
270 # Validate the two-character country code
/freebsd/sys/dev/ath/ath_hal/
H A Dah_regdomain.c237 COUNTRY_CODE_TO_ENUM_RD *country; in getDefaultCountry() local
239 country = findCountry(cc); in getDefaultCountry()
240 if (country != AH_NULL) in getDefaultCountry()
267 COUNTRY_CODE_TO_ENUM_RD *country; in getregstate() local
285 country = findCountry(cc); in getregstate()
286 if (country == AH_NULL) { in getregstate()
291 regDmn = country->regDmnEnum; in getregstate()
295 if (country->countryCode == CTRY_DEFAULT) { in getregstate()
310 country = findCountry(cc); in getregstate()
311 if (country == AH_NULL) { in getregstate()
[all …]
/freebsd/sys/contrib/dev/athk/
H A Dregd.c609 struct country_code_to_enum_rd *country = NULL; in ath_regd_get_default_country() local
612 country = ath_regd_find_country(cc); in ath_regd_get_default_country()
613 if (country != NULL) in ath_regd_get_default_country()
685 struct country_code_to_enum_rd *country = NULL; in __ath_regd_init() local
711 country = NULL; in __ath_regd_init()
715 country = ath_regd_find_country(reg->country_code); in __ath_regd_init()
716 if (country == NULL) { in __ath_regd_init()
723 regdmn = country->regDmnEnum; in __ath_regd_init()
738 if (!country) in __ath_regd_init()
739 country = ath_regd_find_country_by_rd(regdmn); in __ath_regd_init()
[all …]
/freebsd/usr.sbin/bsdinstall/scripts/
H A Dwlanconfig82 local input regdomains countries regdomain country prompt
131 prompt="Select your country."
147 country_set "$regdomain" "$country"
193 f_dialog_title "Regdomain/country"
194 if f_yesno "Change regdomain/country ($DEF_REGDOMAIN/$DEF_COUNTRY)?"
/freebsd/usr.sbin/tzsetup/
H A Dtzsetup.c274 struct country { struct
297 static struct country countries[NCOUNTRIES];
309 struct country *cp; in read_iso3166_table()
360 static struct country *
363 struct country *cp; in find_country()
379 add_cont_to_country(struct country *cp, struct continent *cont) in add_cont_to_country()
391 add_zone_to_country(int lineno, struct country *cp, const char *descr, in add_zone_to_country()
426 const struct country *a = xa, *b = xb; in compare_countries()
454 struct country *cp; in read_zones()
557 struct country *cp; in dump_zonetab()
[all …]
/freebsd/contrib/one-true-awk/testdir/
H A Dp.271 maxpop < $3 { maxpop = $3; country = $1 }
2 END { print country, maxpop }
H A Dp.383 country = $1
6 END { print country, maxpop }
/freebsd/usr.sbin/bsdconfig/timezone/include/
H A Dmessages.subr43 msg_country_code_invalid="%s:%d: country code \`%s' invalid"
44 msg_country_code_multiply_defined="%s:%d: country code \`%s' multiply defined: %s"
45 msg_country_code_unknown="%s:%d: country code \`%s' unknown"
56 msg_invalid_country_code="%s:%d: invalid country code \`%s'"
67 msg_select_country="Select a country"
/freebsd/usr.bin/whois/
H A Dwhois.c153 const char *country, *host; in main() local
160 country = host = NULL; in main()
174 country = optarg; in main()
227 if (!argc || (country != NULL && host != NULL)) in main()
233 if (host == NULL && country == NULL) { in main()
241 if (country != NULL) { in main()
243 s_asprintf(&qnichost, "%s%s", country, QNICHOST_TAIL); in main()
/freebsd/contrib/tzdata/
H A Dzone1970.tab12 # of ISO 3166 2-character country codes.
20 # If multiple timezones overlap a country, each has a row in the
21 # table, with each column 1 containing the country code.
28 # and that country is listed first in column 1; any other countries
29 # are listed alphabetically by country code. The table is sorted
30 # first by country code, then (if possible) by an order within the
31 # country that (1) makes some geographical sense, and (2) puts the
38 #country-
357 # For example, the comment "#@AQ<tab>Antarctica/" means the country code
360 # under the Pacific because its line's country codes include AQ.
[all …]
/freebsd/contrib/dialog/samples/copifuncs/
H A Dcopi.ifmcfg53 # or long-distance calls. In the example below, my country code is 7,
6 # the numbers starting with "7-" but not with "7-095-", the country prefix
/freebsd/contrib/wpa/src/p2p/
H A Dp2p_go_neg.c52 os_memcpy(dev->country, pos, 3); in p2p_peer_channels_check()
54 if (pos[2] != 0x04 && os_memcmp(pos, p2p->cfg->country, 2) != 0) { in p2p_peer_channels_check()
56 p2p->cfg->country[0], p2p->cfg->country[1], in p2p_peer_channels_check()
178 p2p_buf_add_listen_channel(buf, p2p->cfg->country, p2p->cfg->reg_class, in p2p_build_go_neg_req()
194 p2p_buf_add_channel_list(buf, p2p->cfg->country, in p2p_build_go_neg_req()
197 p2p_buf_add_channel_list(buf, p2p->cfg->country, in p2p_build_go_neg_req()
201 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_go_neg_req()
339 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_go_neg_resp()
345 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_go_neg_resp()
363 p2p_buf_add_channel_list(buf, p2p->cfg->country, in p2p_build_go_neg_resp()
[all …]
H A Dp2p_build.c86 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_listen_channel() argument
92 wpabuf_put_data(buf, country, 3); in p2p_buf_add_listen_channel()
100 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_operating_channel() argument
106 wpabuf_put_data(buf, country, 3); in p2p_buf_add_operating_channel()
154 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, in p2p_buf_add_channel_list() argument
163 wpabuf_put_data(buf, country, 3); /* Country String */ in p2p_buf_add_channel_list()
376 void p2p_buf_add_oob_go_neg_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_oob_go_neg_channel() argument
383 wpabuf_put_data(buf, country, 3); in p2p_buf_add_oob_go_neg_channel()
H A Dp2p_invitation.c73 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_invitation_req()
80 p2p_buf_add_channel_list(buf, p2p->cfg->country, &p2p->channels, in p2p_build_invitation_req()
158 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_invitation_resp()
167 p2p_buf_add_channel_list(buf, p2p->cfg->country, channels, in p2p_build_invitation_resp()
369 p2p->cfg->country[0], p2p->cfg->country[1], in p2p_process_invitation_req()
H A Dp2p_i.h81 char country[3]; member
758 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country,
760 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country,
762 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country,
776 void p2p_buf_add_oob_go_neg_channel(struct wpabuf *buf, const char *country,
/freebsd/contrib/wpa/src/common/
H A Dieee802_11_common.c1682 static int country_match(const char *const cc[], const char *const country) in country_match() argument
1686 if (country == NULL) in country_match()
1689 if (cc[i][0] == country[0] && cc[i][1] == country[1]) in country_match()
1984 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan) in ieee80211_chan_to_freq() argument
1988 if (country_match(us_op_class_cc, country)) { in ieee80211_chan_to_freq()
1994 if (country_match(eu_op_class_cc, country)) { in ieee80211_chan_to_freq()
2000 if (country_match(jp_op_class_cc, country)) { in ieee80211_chan_to_freq()
2006 if (country_match(cn_op_class_cc, country)) { in ieee80211_chan_to_freq()
2808 u8 country_to_global_op_class(const char *country, u8 op_class) in country_to_global_op_class() argument
2814 if (country_match(us_op_class_cc, country)) { in country_to_global_op_class()
[all …]
H A Dieee802_11_common.h236 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan);
288 u8 country_to_global_op_class(const char *country, u8 op_class);
290 const struct oper_class_map * get_oper_class(const char *country, u8 op_class);
/freebsd/contrib/wpa/wpa_supplicant/
H A Dmesh.c480 wpa_s->hw.num_modes) && wpa_s->conf->country[0]) { in wpa_supplicant_mesh_init()
483 conf->country[0] = wpa_s->conf->country[0]; in wpa_supplicant_mesh_init()
484 conf->country[1] = wpa_s->conf->country[1]; in wpa_supplicant_mesh_init()
485 conf->country[2] = ' '; in wpa_supplicant_mesh_init()
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Deeprom.c225 struct property *country = of_find_property(cur, "country", NULL); in mt76_find_power_limits_node() local
228 if (!country && !regd) { in mt76_find_power_limits_node()
233 if (mt76_string_prop_find(country, dev->alpha2) || in mt76_find_power_limits_node()
/freebsd/tools/tools/net80211/scripts/
H A Dsetup.dfs16 ifconfig $WLAN country $COUNTRY

12345