Home
last modified time | relevance | path

Searched refs:con (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/external/libcups/scheduler/
Dclient.c34 static int check_if_modified(cupsd_client_t *con,
39 static int cupsd_start_tls(cupsd_client_t *con, http_encryption_t e);
41 static char *get_file(cupsd_client_t *con, struct stat *filestats,
43 static http_status_t install_cupsd_conf(cupsd_client_t *con);
44 static int is_cgi(cupsd_client_t *con, const char *filename,
47 static int pipe_command(cupsd_client_t *con, int infile, int *outfile,
49 static int valid_host(cupsd_client_t *con);
50 static int write_file(cupsd_client_t *con, http_status_t code,
53 static void write_pipe(cupsd_client_t *con);
66 cupsd_client_t *con, /* New client pointer */ in cupsdAcceptClient() local
[all …]
Dipp.c35 static void accept_jobs(cupsd_client_t *con, ipp_attribute_t *uri);
36 static void add_class(cupsd_client_t *con, ipp_attribute_t *uri);
37 static int add_file(cupsd_client_t *con, cupsd_job_t *job,
39 static cupsd_job_t *add_job(cupsd_client_t *con, cupsd_printer_t *printer,
41 static void add_job_subscriptions(cupsd_client_t *con, cupsd_job_t *job);
43 static void add_printer(cupsd_client_t *con, ipp_attribute_t *uri);
44 static void add_printer_state_reasons(cupsd_client_t *con,
46 static void add_queued_job_count(cupsd_client_t *con, cupsd_printer_t *p);
49 static void authenticate_job(cupsd_client_t *con, ipp_attribute_t *uri);
50 static void cancel_all_jobs(cupsd_client_t *con, ipp_attribute_t *uri);
[all …]
Dauth.c61 static int check_authref(cupsd_client_t *con, const char *right);
249 cupsdAuthorize(cupsd_client_t *con) /* I - Client connection */ in cupsdAuthorize() argument
266 con->best = cupsdFindBest(con->uri, httpGetState(con->http)); in cupsdAuthorize()
267 con->type = CUPSD_AUTH_NONE; in cupsdAuthorize()
269 …cupsdLogClient(con, CUPSD_LOG_DEBUG2, "con->uri=\"%s\", con->best=%p(%s)", con->uri, con->best, co… in cupsdAuthorize()
271 if (con->best && con->best->type != CUPSD_AUTH_NONE) in cupsdAuthorize()
273 if (con->best->type == CUPSD_AUTH_DEFAULT) in cupsdAuthorize()
276 type = con->best->type; in cupsdAuthorize()
285 authorization = httpGetField(con->http, HTTP_FIELD_AUTHORIZATION); in cupsdAuthorize()
291 con->gss_uid = 0; in cupsdAuthorize()
[all …]
Dlog.c493 cupsdLogClient(cupsd_client_t *con, /* I - Client connection */ in cupsdLogClient() argument
517 if (con) in cupsdLogClient()
518 snprintf(clientmsg, sizeof(clientmsg), "[Client %d] %s", con->number, in cupsdLogClient()
1018 cupsdLogRequest(cupsd_client_t *con, /* I - Request to log */ in cupsdLogRequest() argument
1053 if ((con->operation == HTTP_GET && in cupsdLogRequest()
1054 strncmp(con->uri, "/admin/conf", 11) && in cupsdLogRequest()
1055 strncmp(con->uri, "/admin/log", 10)) || in cupsdLogRequest()
1056 (con->operation == HTTP_POST && !con->request && in cupsdLogRequest()
1057 strncmp(con->uri, "/admin", 6)) || in cupsdLogRequest()
1058 (con->operation != HTTP_GET && con->operation != HTTP_POST && in cupsdLogRequest()
[all …]
/external/python/cpython3/Lib/sqlite3/test/
Dregression.py33 self.con = sqlite.connect(":memory:")
36 self.con.close()
40 cur = self.con.cursor()
45 con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_COLNAMES)
47 cur = self.con.cursor()
51 con.close()
57 con = sqlite.connect(":memory:", cached_statements=5)
58 cursors = [con.cursor() for x in range(5)]
66 con.rollback()
69 cur = self.con.cursor()
[all …]
Dhooks.py31 con = sqlite.connect(":memory:")
33 con.create_collation(None, lambda x, y: (x > y) - (x < y))
36 con = sqlite.connect(":memory:")
38 con.create_collation("X", 42)
42 con = sqlite.connect(":memory:")
44 con.create_collation("coll�", lambda x, y: (x > y) - (x < y))
50 con = sqlite.connect(":memory:")
52 con.create_collation(BadUpperStr("mycoll"), mycoll)
53 result = con.execute("""
70 con = sqlite.connect(":memory:")
[all …]
Dfactory.py45 self.con = sqlite.connect(":memory:", factory=MyConnection)
48 self.con.close()
51 self.assertIsInstance(self.con, MyConnection)
55 self.con = sqlite.connect(":memory:")
58 self.con.close()
61 cur = self.con.cursor()
63 cur = self.con.cursor(MyCursor)
65 cur = self.con.cursor(factory=lambda con: MyCursor(con))
70 self.assertRaises(TypeError, self.con.cursor, None)
72 self.assertRaises(TypeError, self.con.cursor, lambda: None)
[all …]
Duserfunctions.py142 self.con = sqlite.connect(":memory:")
144 self.con.create_function("returntext", 0, func_returntext)
145 self.con.create_function("returnunicode", 0, func_returnunicode)
146 self.con.create_function("returnint", 0, func_returnint)
147 self.con.create_function("returnfloat", 0, func_returnfloat)
148 self.con.create_function("returnnull", 0, func_returnnull)
149 self.con.create_function("returnblob", 0, func_returnblob)
150 self.con.create_function("returnlonglong", 0, func_returnlonglong)
151 self.con.create_function("raiseexception", 0, func_raiseexception)
153 self.con.create_function("isstring", 1, func_isstring)
[all …]
/external/python/cpython2/Lib/sqlite3/test/
Dregression.py32 self.con = sqlite.connect(":memory:")
35 self.con.close()
39 cur = self.con.cursor()
44 con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_COLNAMES)
46 cur = self.con.cursor()
50 con.close()
56 con = sqlite.connect(":memory:", cached_statements=5)
57 cursors = [con.cursor() for x in xrange(5)]
65 con.rollback()
68 cur = self.con.cursor()
[all …]
Dhooks.py35 con = sqlite.connect(":memory:")
37 con.create_collation(None, lambda x, y: (x > y) - (x < y))
40 con = sqlite.connect(":memory:")
42 con.create_collation("X", 42)
48 con = sqlite.connect(":memory:")
50 con.create_collation("coll�", cmp)
59 con = sqlite.connect(":memory:")
61 con.create_collation(BadUpperStr("mycoll"), mycoll)
62 result = con.execute("""
79 con = sqlite.connect(":memory:")
[all …]
Dfactory.py45 self.con = sqlite.connect(":memory:", factory=MyConnection)
48 self.con.close()
51 self.assertIsInstance(self.con, MyConnection)
55 self.con = sqlite.connect(":memory:")
58 self.con.close()
61 cur = self.con.cursor()
63 cur = self.con.cursor(MyCursor)
65 cur = self.con.cursor(factory=lambda con: MyCursor(con))
70 self.assertRaises(TypeError, self.con.cursor, None)
72 self.assertRaises(TypeError, self.con.cursor, lambda: None)
[all …]
Duserfunctions.py127 self.con = sqlite.connect(":memory:")
129 self.con.create_function("returntext", 0, func_returntext)
130 self.con.create_function("returnunicode", 0, func_returnunicode)
131 self.con.create_function("returnint", 0, func_returnint)
132 self.con.create_function("returnfloat", 0, func_returnfloat)
133 self.con.create_function("returnnull", 0, func_returnnull)
134 self.con.create_function("returnblob", 0, func_returnblob)
135 self.con.create_function("returnlonglong", 0, func_returnlonglong)
136 self.con.create_function("raiseexception", 0, func_raiseexception)
138 self.con.create_function("isstring", 1, func_isstring)
[all …]
Ddbapi.py124 con = sqlite.connect(YOU_CANNOT_OPEN_THIS)
482 self.con = sqlite.connect(":memory:")
483 self.cur = self.con.cursor()
488 self.con.close()
491 def run(con, errors): argument
493 cur = con.cursor()
502 t = threading.Thread(target=run, kwargs={"con": self.con, "errors": errors})
509 def run(con, errors): argument
511 con.commit()
520 t = threading.Thread(target=run, kwargs={"con": self.con, "errors": errors})
[all …]
/external/selinux/libsepol/src/
Dcontext_record.c26 const char *sepol_context_get_user(const sepol_context_t * con) in sepol_context_get_user() argument
29 return con->user; in sepol_context_get_user()
35 sepol_context_t * con, const char *user) in hidden_def()
45 free(con->user); in hidden_def()
46 con->user = tmp_user; in hidden_def()
53 const char *sepol_context_get_role(const sepol_context_t * con) in hidden_def()
56 return con->role; in hidden_def()
62 sepol_context_t * con, const char *role) in hidden_def()
71 free(con->role); in hidden_def()
72 con->role = tmp_role; in hidden_def()
[all …]
/external/selinux/libsemanage/src/
Dcontext_record.c12 const char *semanage_context_get_user(const semanage_context_t * con) in semanage_context_get_user() argument
15 return sepol_context_get_user(con); in semanage_context_get_user()
19 semanage_context_t * con, const char *user) in semanage_context_set_user() argument
22 return sepol_context_set_user(handle->sepolh, con, user); in semanage_context_set_user()
26 const char *semanage_context_get_role(const semanage_context_t * con) in semanage_context_get_role() argument
29 return sepol_context_get_role(con); in semanage_context_get_role()
33 semanage_context_t * con, const char *role) in semanage_context_set_role() argument
36 return sepol_context_set_role(handle->sepolh, con, role); in semanage_context_set_role()
40 const char *semanage_context_get_type(const semanage_context_t * con) in semanage_context_get_type() argument
43 return sepol_context_get_type(con); in semanage_context_get_type()
[all …]
/external/gptfdisk/
Dandroid_popt.cc64 poptContext con = (poptContext) calloc(1, sizeof(struct _poptContext)); in poptGetContext() local
65 con->argc = argc; in poptGetContext()
66 con->argv = argv; in poptGetContext()
67 con->options = options; in poptGetContext()
68 con->long_options = long_options; in poptGetContext()
69 return con; in poptGetContext()
72 poptContext poptFreeContext(poptContext con) { in poptFreeContext() argument
73 free(con->long_options); in poptFreeContext()
74 free(con); in poptFreeContext()
78 void poptResetContext(poptContext con) { in poptResetContext() argument
[all …]
/external/selinux/libselinux/include/selinux/
Dselinux.h20 extern void freecon(char * con);
23 extern void freeconary(char ** con);
29 extern int getcon(char ** con);
30 extern int getcon_raw(char ** con);
40 extern int setcon(const char * con);
41 extern int setcon_raw(const char * con);
45 extern int getpidcon(pid_t pid, char ** con);
46 extern int getpidcon_raw(pid_t pid, char ** con);
50 extern int getprevcon(char ** con);
51 extern int getprevcon_raw(char ** con);
[all …]
/external/selinux/libsemanage/tests/
Dtest_other.c60 semanage_context_t *con = NULL; in test_semanage_context() local
68 CU_ASSERT(semanage_context_create(sh, &con) >= 0); in test_semanage_context()
70 CU_ASSERT(semanage_context_set_user(sh, con, "user_u") >= 0); in test_semanage_context()
71 CU_ASSERT_STRING_EQUAL(semanage_context_get_user(con), "user_u"); in test_semanage_context()
72 CU_ASSERT(semanage_context_set_role(sh, con, "role_r") >= 0); in test_semanage_context()
73 CU_ASSERT_STRING_EQUAL(semanage_context_get_role(con), "role_r"); in test_semanage_context()
74 CU_ASSERT(semanage_context_set_type(sh, con, "type_t") >= 0); in test_semanage_context()
75 CU_ASSERT_STRING_EQUAL(semanage_context_get_type(con), "type_t"); in test_semanage_context()
76 CU_ASSERT(semanage_context_set_mls(sh, con, "s0") >= 0); in test_semanage_context()
77 CU_ASSERT_STRING_EQUAL(semanage_context_get_mls(con), "s0"); in test_semanage_context()
[all …]
/external/selinux/libselinux/src/
Dget_context_list.c20 context_t con; in get_default_context_with_role() local
29 con = context_new(*ptr); in get_default_context_with_role()
30 if (!con) in get_default_context_with_role()
32 role2 = context_role_get(con); in get_default_context_with_role()
34 context_free(con); in get_default_context_with_role()
37 context_free(con); in get_default_context_with_role()
65 context_t con; in hidden_def() local
79 con = context_new(fromcon); in hidden_def()
80 if (!con) in hidden_def()
83 if (context_range_set(con, level)) in hidden_def()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_common.c33 static void dispatch_data(DBusConnection *con) in dispatch_data() argument
35 while (dbus_connection_get_dispatch_status(con) == in dispatch_data()
37 dbus_connection_dispatch(con); in dispatch_data()
53 DBusConnection *con = eloop_ctx; in dispatch_initial_dbus_messages() local
54 dispatch_data(con); in dispatch_initial_dbus_messages()
61 dbus_connection_ref(priv->con); in process_watch()
73 dispatch_data(priv->con); in process_watch()
77 dbus_connection_unref(priv->con); in process_watch()
203 if (sig != SIGPOLL || !priv->con) in process_wakeup_main()
206 if (dbus_connection_get_dispatch_status(priv->con) != in process_wakeup_main()
[all …]
/external/selinux/libsepol/include/sepol/
Dcontext_record.h17 extern const char *sepol_context_get_user(const sepol_context_t * con);
20 sepol_context_t * con, const char *user);
23 extern const char *sepol_context_get_role(const sepol_context_t * con);
26 sepol_context_t * con, const char *role);
29 extern const char *sepol_context_get_type(const sepol_context_t * con);
32 sepol_context_t * con, const char *type);
35 extern const char *sepol_context_get_mls(const sepol_context_t * con);
38 sepol_context_t * con, const char *mls_range);
45 const sepol_context_t * con,
48 extern void sepol_context_free(sepol_context_t * con);
[all …]
/external/selinux/libsemanage/include/semanage/
Dcontext_record.h15 extern const char *semanage_context_get_user(const semanage_context_t * con);
18 semanage_context_t * con,
22 extern const char *semanage_context_get_role(const semanage_context_t * con);
25 semanage_context_t * con,
29 extern const char *semanage_context_get_type(const semanage_context_t * con);
32 semanage_context_t * con,
36 extern const char *semanage_context_get_mls(const semanage_context_t * con);
39 semanage_context_t * con,
47 const semanage_context_t * con,
50 extern void semanage_context_free(semanage_context_t * con);
[all …]
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/
DTcpConnectionTest.java69 final TcpConnection con = new TcpConnection(mockConnection.getSocketA(), in testInvalidContent() local
71 con.init(); in testInvalidContent()
73 con.run(); in testInvalidContent()
85 final TcpConnection con = new TcpConnection(mockConnection.getSocketA(), in testRemoteClose() local
87 con.init(); in testRemoteClose()
91 con.run(); in testRemoteClose()
114 final TcpConnection con = new TcpConnection(mockConnection.getSocketA(), in testLocalClose() local
116 con.init(); in testLocalClose()
120 con.run(); in testLocalClose()
127 con.close(); in testLocalClose()
[all …]
/external/selinux/policycoreutils/secon/
Dsecon.c344 static int my_getXcon_raw(pid_t pid, security_context_t * con, const char *val) in my_getXcon_raw() argument
360 *con = NULL; in my_getXcon_raw()
367 if (*ptr && !(*con = strdup(ptr))) in my_getXcon_raw()
374 static int my_getpidexeccon_raw(pid_t pid, security_context_t * con) in my_getpidexeccon_raw() argument
376 return (my_getXcon_raw(pid, con, "exec")); in my_getpidexeccon_raw()
378 static int my_getpidfscreatecon_raw(pid_t pid, security_context_t * con) in my_getpidfscreatecon_raw() argument
380 return (my_getXcon_raw(pid, con, "fscreate")); in my_getpidfscreatecon_raw()
382 static int my_getpidkeycreatecon_raw(pid_t pid, security_context_t * con) in my_getpidkeycreatecon_raw() argument
384 return (my_getXcon_raw(pid, con, "keycreate")); in my_getpidkeycreatecon_raw()
390 security_context_t con = NULL, con_tmp; in get_scon() local
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/
DPrefixConstructorTest.java74 private BaseConstructor con; field in PrefixConstructorTest.PrefixConstruct
76 public PrefixConstruct(String prefix, BaseConstructor con) { in PrefixConstruct() argument
78 this.con = con; in PrefixConstruct()
83 return new Extra(suffix, con.constructScalar((ScalarNode) node).toString()); in construct()
91 private BaseConstructor con; field in PrefixConstructorTest.ExactConstruct
93 public ExactConstruct(BaseConstructor con) { in ExactConstruct() argument
94 this.con = con; in ExactConstruct()
98 return new Extra("Item", con.constructScalar((ScalarNode) node).toString()); in construct()
106 private BaseConstructor con; field in PrefixConstructorTest.ConstructUnknown
108 public ConstructUnknown(BaseConstructor con) { in ConstructUnknown() argument
[all …]

12345678910>>...18