int SmbFs::fs_mkdir(const char *path, mode_t mode) { QMutexLocker locker(&_mutex); if((smbc_getFunctionMkdir(_ctx))(_ctx, qPrintable(getPath(path)),mode) == 0) return(0); else return(-errno); }
static PyObject * Context_mkdir (Context *self, PyObject *args) { int ret; char *uri = NULL; unsigned int mode = 0; smbc_mkdir_fn fn; if (!PyArg_ParseTuple (args, "s|I", &uri, &mode)) { return NULL; } fn = smbc_getFunctionMkdir (self->context); errno = 0; ret = (*fn) (self->context, uri, mode); if (ret < 0) { pysmbc_SetFromErrno (); return NULL; } return PyLong_FromLong (ret); }
int smbc_mkdir(const char *durl, mode_t mode) { return smbc_getFunctionMkdir(statcont)(statcont, durl, mode); }