#include "virlog.h"
#include "virstring.h"
#include "virutil.h"
-#include "c-ctype.h"
#define VIR_FROM_THIS VIR_FROM_BHYVE
arglist[args_count++] = arg;
arglist[args_count] = NULL;
- while (next && c_isspace(*next))
+ while (next && g_ascii_isspace(*next))
next++;
curr = next;
#include "nwfilter_params.h"
#include "nwfilter_conf.h"
#include "domain_conf.h"
-#include "c-ctype.h"
#include "virfile.h"
#include "virstring.h"
i = 0;
while (input[i]) {
found = false;
- while (c_isspace(input[i]) || input[i] == sep)
+ while (g_ascii_isspace(input[i]) || input[i] == sep)
i++;
if (!input[i])
break;
#include "virerror.h"
#include "virfile.h"
-#include "c-ctype.h"
#include "datatypes.h"
#include "domain_conf.h"
#include "interface_driver.h"
vid_pos += strlen(vid_prefix);
if ((vid_len = strspn(vid_pos, "0123456789")) == 0 ||
- !c_isspace(vid_pos[vid_len])) {
+ !g_ascii_isspace(vid_pos[vid_len])) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("failed to find the VID for the VLAN device '%s'"),
name);
# include <sys/ucred.h>
#endif
-#include "c-ctype.h"
#ifdef WITH_SELINUX
# include <selinux/selinux.h>
#endif
errout != NULL) {
size_t elen = strlen(errout);
/* remove trailing whitespace */
- while (elen && c_isspace(errout[elen - 1]))
+ while (elen && g_ascii_isspace(errout[elen - 1]))
errout[--elen] = '\0';
}
# include <sys/resource.h>
#endif
-#include "c-ctype.h"
#include "viralloc.h"
#define LIBVIRT_VIRHOSTCPUPRIV_H_ALLOW
#include "virhostcpupriv.h"
str += strlen(prefix);
/* Skip all whitespace */
- while (c_isspace(*str))
+ while (g_ascii_isspace(*str))
str++;
if (*str == '\0')
goto error;
str++;
/* Skip all whitespace */
- while (c_isspace(*str))
+ while (g_ascii_isspace(*str))
str++;
if (*str == '\0')
goto error;
* followed by a fractional part (which gets discarded) or some
* leading whitespace */
if (virStrToLong_ui(str, &p, 10, &ui) < 0 ||
- (*p != '.' && *p != '\0' && !c_isspace(*p))) {
+ (*p != '.' && *p != '\0' && !g_ascii_isspace(*p))) {
goto error;
}
#if WITH_VIRTUALPORT
# include <fcntl.h>
-# include <c-ctype.h>
# include <sys/socket.h>
# include <sys/ioctl.h>
char *endptr;
if (virStrToLong_ui(buffer, &endptr, 10, &res) == 0
- && (*endptr == '\0' || c_isspace(*endptr))
+ && (*endptr == '\0' || g_ascii_isspace(*endptr))
&& res != 0) {
pid = res;
} else {
#include "intprops.h"
#include "virlog.h"
#include "virerror.h"
-#include "c-ctype.h"
#include "virstring.h"
#include "virprocess.h"
pidstr[bytes] = '\0';
if (virStrToLong_ll(pidstr, &endptr, 10, &pid_value) < 0 ||
- !(*endptr == '\0' || c_isspace(*endptr)) ||
+ !(*endptr == '\0' || g_ascii_isspace(*endptr)) ||
(pid_t) pid_value != pid_value) {
rc = -1;
goto cleanup;
#include "virerror.h"
#include "virlog.h"
#include "virfile.h"
-#include "c-ctype.h"
#include "vircommand.h"
#include "virhash.h"
#include "virendian.h"
char *tmp = *key;
/* Find first non-space character */
- while (*tmp && c_isspace(*tmp))
+ while (*tmp && g_ascii_isspace(*tmp))
tmp++;
/* Kill leading spaces */
if (tmp != *key)
{
const char *cur = *str;
- while (c_isspace(*cur))
+ while (g_ascii_isspace(*cur))
cur++;
*str = cur;
}
{
const char *cur = *str;
- while (c_isspace(*cur) || *cur == '\\')
+ while (g_ascii_isspace(*cur) || *cur == '\\')
cur++;
*str = cur;
}
end = str + strlen(str);
else
end = *endp;
- while (end > str && c_isspace(end[-1]))
+ while (end > str && g_ascii_isspace(end[-1]))
end--;
if (endp) {
if (!*endp)
* 32 hexadecimal digits the end.
*/
cur = uuidstr;
- while (c_isspace(*cur))
+ while (g_ascii_isspace(*cur))
cur++;
for (i = 0; i < VIR_UUID_BUFLEN;) {
}
while (*cur) {
- if (!c_isspace(*cur))
+ if (!g_ascii_isspace(*cur))
goto error;
cur++;
}