Lines Matching defs:ident
30 - Use basename(sys.argv[0]) for the default "ident".
65 /* Figure out what to use for as the program "ident" for openlog().
121 PyObject *ident = NULL;
122 static char *keywords[] = {"ident", "logoption", "facility", 0};
126 "|Ull:openlog", keywords, &ident, &logopt, &facility))
129 if (ident) {
130 Py_INCREF(ident);
134 ident = syslog_get_argv();
137 /* At this point, ident should be INCREF()ed. openlog(3) does not
141 if (ident) {
142 ident_str = PyUnicode_AsUTF8(ident);
144 Py_DECREF(ident);
148 if (PySys_Audit("syslog.openlog", "Oll", ident ? ident : Py_None, logopt, facility) < 0) {
149 Py_DECREF(ident);
155 Py_XSETREF(S_ident_o, ident);
205 /* Incref ident, because it can be decrefed if syslog.openlog() is
208 PyObject *ident = S_ident_o;
209 Py_XINCREF(ident);
218 Py_XDECREF(ident);