Searched refs:option (Results 1 - 25 of 178) sorted by relevance

12345678

/haiku/headers/posix/
H A Dgetopt.h14 struct option { struct
33 const struct option *longOptions, int *_longIndex);
35 const struct option *longOptions, int *_longIndex);
/haiku/src/apps/deskcalc/
H A DCalcOptions.cpp34 bool option; local
37 if (archive->FindBool("auto num lock", &option) == B_OK)
38 auto_num_lock = option;
40 if (archive->FindBool("audio feedback", &option) == B_OK)
41 audio_feedback = option;
43 if (archive->FindBool("degree mode", &option) == B_OK)
44 degree_mode = option;
/haiku/src/bin/pkgman/
H A DCommonOptions.cpp27 CommonOptions::HandleOption(int option) argument
29 switch (option) {
36 "*** invalid argument for option --debug\n");
H A DCommonOptions.h28 bool HandleOption(int option);
/haiku/src/add-ons/kernel/network/protocols/tcp/
H A Dtcp.cpp84 bump_option(tcp_option *&option, size_t &length) argument
86 if (option->kind <= TCP_OPTION_NOP) {
88 option = (tcp_option *)((uint8 *)option + 1);
90 length += option->length;
91 option = (tcp_option *)((uint8 *)option + option->length);
102 tcp_option *option = (tcp_option *)buffer; local
106 option
540 tcp_control(net_protocol* _protocol, int level, int option, void* value, size_t* _length) argument
556 tcp_getsockopt(net_protocol* _protocol, int level, int option, void* value, int* _length) argument
570 tcp_setsockopt(net_protocol* _protocol, int level, int option, const void* _value, int length) argument
[all...]
/haiku/src/apps/icon-o-matic/generic/property/specific_properties/
H A DOptionProperty.cpp37 option* o = (option*)(other.fOptions.ItemAtFast(i));
38 option* clone = new (nothrow) option;
57 if (archive->FindInt32("option", &fCurrentOptionID) < B_OK)
66 delete (option*)fOptions.ItemAtFast(i);
78 status = into->AddInt32("option", fCurrentOptionID);
117 // try to find option by name
120 option* o = (option*)fOption
[all...]
/haiku/src/bin/network/telnetd/
H A Dstate.c87 #define TS_WILL 5 /* will option negotiation */
249 * Begin option subnegotiation...
277 * Handle RFC 10xx Telnet linemode option additions
338 suboption(); /* handle sub-option */
373 * Telnet option processing state machine.
423 * peer probably should be buffering until this option state negotiation
428 send_do(int option, int init) argument
431 if ((do_dont_resp[option] == 0 && his_state_is_will(option)) ||
432 his_want_state_is_will(option))
451 willoption(int option) argument
643 send_dont(int option, int init) argument
658 wontoption(int option) argument
790 send_will(int option, int init) argument
816 dooption(int option) argument
946 send_wont(int option, int init) argument
961 dontoption(int option) argument
[all...]
/haiku/src/system/libroot/posix/glibc/extensions/
H A Dgetopt.h8 version 2.1 of the License, or (at your option) any later version.
42 When `getopt' finds an option that takes an argument,
45 each non-option ARGV-element is returned here. */
56 non-option elements that the caller should itself scan.
68 /* Set to an option character which was unrecognized. */
75 of `struct option' terminated by an element containing a name which is
79 no_argument (or 0) if the option does not take an argument,
80 required_argument (or 1) if the option requires an argument,
81 optional_argument (or 2) if the option takes an optional argument.
84 to the value given in the field `val' when the option i
94 struct option struct
[all...]
H A Dgetopt1.c9 version 2.1 of the License, or (at your option) any later version.
76 const struct option *long_options;
82 /* Like getopt_long, but '-' as well as '--' can indicate a long option.
83 If an option that starts with '-' (not '--') doesn't match a long option,
84 but does match a short option, it is parsed as a short option
92 const struct option *long_options;
122 static struct option long_options[] =
141 printf ("option
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dgetsubopt_test.cpp19 char* option = strdup("mode=readwrite,unknown,be-lenient"); local
21 int result = getsubopt(&option, keys, &value);
26 result = getsubopt(&option, keys, &value);
31 result = getsubopt(&option, keys, &value);
/haiku/src/apps/autoraise/
H A DAutoRaiseApp.cpp27 BString option; local
31 option = argv[i];
32 if (option.IFindFirst("deskbar") != B_ERROR)
35 if (option.IFindFirst("persist") != B_ERROR)
38 if (option.IFindFirst("-h") != B_ERROR
39 || option.IFindFirst("help") != B_ERROR) {
/haiku/src/add-ons/kernel/network/ppp/ppp_frame/
H A Dppp_frame.cpp118 net_interface_address* address, int32 option,
123 option, oldAddress, newAddress);
128 PPP_module_control(int32 option, void* argument, size_t length) argument
132 if (option < PPPC_CONTROL_MODULE || option > PPP_CONTROL_OPS_END)
138 switch(option)
189 ppp_frame_control(net_datalink_protocol* protocol, int32 option, argument
192 TRACE("%s: option:%" B_PRId32 "\n", __func__, option);
194 if (option >
117 ppp_frame_change_address(net_datalink_protocol* protocol, net_interface_address* address, int32 option, const struct sockaddr* oldAddress, const struct sockaddr* newAddress) argument
[all...]
/haiku/src/add-ons/kernel/network/protocols/l2cap/
H A Dl2cap_command.cpp91 NetBufferPrepend<config_option_mtu> option(buffer.Get());
92 if (option.Status() != B_OK)
95 option->header.type = l2cap_configuration_option::OPTION_MTU;
96 option->header.length = sizeof(option->value);
97 option->value = htole16(*mtu);
105 NetBufferPrepend<config_option_flush_timeout> option(buffer.Get());
106 if (option.Status() != B_OK)
109 option->header.type = l2cap_configuration_option::OPTION_FLUSH_TIMEOUT;
110 option
[all...]
/haiku/src/tests/add-ons/print/ppd/model/
H A DStatement.cpp51 void Statement::SetOption(Value* option) argument
53 fOption = option;
95 Value* option = GetOption(); local
96 if (option != NULL) {
97 return option->GetValueString();
104 Value* option = GetOption(); local
105 if (option != NULL) {
106 return option->GetTranslationString();
165 printf("\t<option>\n");
167 printf("\t</option>\
[all...]
/haiku/src/kits/debugger/settings/generic/
H A DSetting.cpp76 SettingsOption* option = DefaultOption(); local
77 return option != NULL
78 ? BVariant(option->ID(), B_VARIANT_DONT_COPY_DATA) : BVariant();
235 for (int32 i = 0; SettingsOption* option = fOptions.ItemAt(i); i++)
236 option->ReleaseReference();
264 for (int32 i = 0; SettingsOption* option = fOptions.ItemAt(i); i++) {
265 if (strcmp(option->ID(), id) == 0)
266 return option;
274 OptionsSettingImpl::AddOption(SettingsOption* option) argument
276 if (!fOptions.AddItem(option))
287 Option* option = new(std::nothrow) Option(id, name); local
297 SetDefaultOption(SettingsOption* option) argument
[all...]
/haiku/src/kits/tracker/
H A DNavigator.h81 void GoForward(bool option);
82 // is option key held down?
83 void GoBackward(bool option);
84 void GoUp(bool option);
85 void SendNavigationMessage(NavigationAction, BEntry*, bool option);
/haiku/src/bin/
H A Dalert.cpp80 // command line argument option.
89 const char* option = argv[index] + 2; local
91 if (!strcmp(option, "modal"))
93 else if (!strcmp(option, "empty") && !iconFlag) {
96 } else if (!strcmp(option, "info") && !iconFlag) {
99 } else if (!strcmp(option, "idea") && !iconFlag) {
102 } else if (!strcmp(option, "warning") && !iconFlag) {
105 } else if (!strcmp(option, "stop") && !iconFlag) {
110 fprintf(stdout, "Unrecognized option %s\n", argv[index]);
H A Dlogger.cpp79 get_facility(const char *option) argument
82 strlcpy(facility, option, sizeof(facility));
97 get_priority(const char *option) argument
99 char *priority = strchr(option, '.');
141 int option; local
142 while ((option = getopt(argc, argv, "it:p:")) != -1) {
143 switch (option) {
H A Dnotify.cpp107 const char* option = argv[index] + 2; local
110 // No argument to option
111 fprintf(stderr, "Missing argument to option --%s\n\n", option);
117 if (strcmp(option, "type") == 0) {
122 } else if (strcmp(option, "group") == 0)
124 else if (strcmp(option, "title") == 0)
126 else if (strcmp(option, "messageID") == 0)
128 else if (strcmp(option, "progress") == 0)
130 else if (strcmp(option, "timeou
[all...]
/haiku/src/bin/network/telnet/
H A Dtelnet.c139 #define TS_SB 7 /* sub-option collection */
140 #define TS_SE 8 /* looking for sub-option end */
206 * These routines are in charge of sending option negotiations
282 willoption(int option)
286 if (do_dont_resp[option]) {
287 --do_dont_resp[option];
288 if (do_dont_resp[option] && my_state_is_do(option))
289 --do_dont_resp[option];
292 if ((do_dont_resp[option]
279 willoption(int option) argument
341 wontoption(int option) argument
389 dooption(int option) argument
498 dontoption(int option) argument
[all...]
/haiku/headers/private/net/
H A Dnet_datalink_protocol.h32 net_interface_address* address, int32 option,
36 status_t (*control)(net_datalink_protocol* self, int32 option,
/haiku/src/system/libnetwork/
H A Dsocket.cpp108 convert_from_r5_sockopt(int& level, int& option) argument
113 switch (option) {
115 option = SO_DEBUG;
118 option = SO_REUSEADDR;
121 option = SO_NONBLOCK;
124 option = SO_REUSEPORT;
128 option = -1;
314 getsockopt(int socket, int level, int option, void *value, socklen_t *_length) argument
317 if (option == R5_SO_FIONREAD) {
324 convert_from_r5_sockopt(level, option);
333 setsockopt(int socket, int level, int option, const void *value, socklen_t length) argument
[all...]
/haiku/src/apps/debugger/user_interface/gui/util/
H A DSettingsMenu.cpp132 OptionMenuItem(SettingsOption* option) argument
134 BMenuItem(option->Name(), NULL),
135 fOption(option)
152 message->AddPointer("option", fOption);
190 void OptionItemSelected(Settings* settings, SettingsOption* option) argument
193 BVariant(option->ID(), B_VARIANT_DONT_COPY_DATA));
256 SettingsOption* option = setting->OptionAt(i); local
257 BMenuItem* optionItem = new(std::nothrow) OptionMenuItem(option);
350 SettingsOption* option; local
352 || message->FindPointer("option", (voi
[all...]
/haiku/src/tests/add-ons/print/ppd/ui/
H A DPPDConfigView.cpp120 BMessage* GetMessage(uint32 what, const char* option);
193 BMessage* DetailsBuilder::GetMessage(uint32 what, const char* option) argument
198 if (option != NULL) {
199 message->AddString("option", option);
210 const char* option = statement->GetOptionString(); local
213 } else if (option != NULL) {
214 text = option;
224 message = GetMessage(kMsgStringChanged, option);
227 message = GetMessage(kMsgStringChanged, option);
472 const char* option; local
485 const char* option = msg->FindString("option"); local
[all...]
/haiku/src/servers/net/
H A DDHCPClient.cpp139 bool NextOption(dhcp_option_cookie& cookie, message_option& option,
146 uint8* PutOption(uint8* options, message_option option);
147 uint8* PutOption(uint8* options, message_option option, uint8 data);
148 uint8* PutOption(uint8* options, message_option option, uint16 data);
149 uint8* PutOption(uint8* options, message_option option, uint32 data);
150 uint8* PutOption(uint8* options, message_option option, const uint8* data,
206 message_option& option, const uint8*& data, size_t& size) const
239 // handle option overload in file and/or server_name fields.
259 // if last option is not OPTION_END,
260 // there is no space left for other option!
205 NextOption(dhcp_option_cookie& cookie, message_option& option, const uint8*& data, size_t& size) const argument
302 message_option option; local
319 message_option option; local
368 PutOption(uint8* options, message_option option) argument
376 PutOption(uint8* options, message_option option, uint8 data) argument
383 PutOption(uint8* options, message_option option, uint16 data) argument
390 PutOption(uint8* options, message_option option, uint32 data) argument
397 PutOption(uint8* options, message_option option, const uint8* data, uint32 size) argument
577 int option = 1; local
788 message_option option; local
[all...]

Completed in 216 milliseconds

12345678