search for: char_max

Displaying 20 results from an estimated 81 matches for "char_max".

2016 Jul 22
1
[PATCH] static const char *str -> static const char str
...| 2 +- utils/qemu-speed-test/qemu-speed-test.c | 2 +- 27 files changed, 29 insertions(+), 29 deletions(-) diff --git a/align/scan.c b/align/scan.c index e7327ea..9575eda 100644 --- a/align/scan.c +++ b/align/scan.c @@ -107,7 +107,7 @@ main (int argc, char *argv[]) enum { HELP_OPTION = CHAR_MAX + 1 }; - static const char *options = "a:c:d:P:qvVx"; + static const char options[] = "a:c:d:P:qvVx"; static const struct option long_options[] = { { "add", 1, 0, 'a' }, { "connect", 1, 0, 'c' }, diff --git a/builder/index-val...
2004 Jul 15
2
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
...hat the min and max values for integral data types, for Interix 3.5 (gcc automatic macro is __INTERIX), are defined in the system header file: '/usr/include/limits.h': --- /usr/include/limits.h --------------------- ... #define SCHAR_MIN (-128) /* min value for a signed char */ #define SCHAR_MAX 127 /* max value for a signed char */ #define UCHAR_MAX 0xff /* max value for a unsigned char */ #if defined(_CHAR_UNSIGNED) || defined(__CHAR_UNSIGNED__) #define CHAR_MIN 0 #define CHAR_MAX UCHAR_MAX #else #define CHAR_MIN SCHAR_MIN /* mim value for a char */ #define CHAR_MAX SCHAR_MAX /* ma...
2023 Apr 14
1
[libnbd PATCH 2/4] copy: rename <purpose>_OPTION to OPT_<purpose>
...--- copy/main.c | 62 ++++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/copy/main.c b/copy/main.c index bb67e97ff97a..8055b3a656ba 100644 --- a/copy/main.c +++ b/copy/main.c @@ -106,34 +106,34 @@ int main (int argc, char *argv[]) { enum { - HELP_OPTION = CHAR_MAX + 1, - LONG_OPTIONS_OPTION, - SHORT_OPTIONS_OPTION, - ALLOCATED_OPTION, - DESTINATION_IS_ZERO_OPTION, - FLUSH_OPTION, - NO_EXTENTS_OPTION, - QUEUE_SIZE_OPTION, - REQUEST_SIZE_OPTION, - SYNCHRONOUS_OPTION, + OPT_HELP = CHAR_MAX + 1, + OPT_LONG_OPTIONS, + OPT_SHORT...
2008 Feb 18
0
[LLVMdev] cross compiling with the C backend
Kevin André wrote: > For my master's thesis, I am trying to cross compile programs for the > PSP (PlayStation Portable) with LLVM and llvm-gcc. > > This is what I do: > > (1) compile a program and the libraries it uses (libpng etc.) with llvm-gcc > (2) link the bitcode files with llvm-ld into one file > (3) run "llc -march=c" on the result > (4) compile
2016 Jul 18
1
[PATCH] fish, fuse: Remove bogus '?' from short options.
...| 2 +- fuse/guestmount.c | 2 +- fuse/guestunmount.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fish/fish.c b/fish/fish.c index 49e1aaa..e639d3d 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -182,7 +182,7 @@ main (int argc, char *argv[]) enum { HELP_OPTION = CHAR_MAX + 1 }; - static const char *options = "a:c:d:Df:h::im:nN:rv?Vwx"; + static const char *options = "a:c:d:Df:h::im:nN:rvVwx"; static const struct option long_options[] = { { "add", 1, 0, 'a' }, { "cmd-help", 2, 0, 'h' }, diff --...
2004 Jul 14
0
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
...ion files. However, I've found that the min and max values for integral data types, for Interix 3.5 are defined in the system header file: '/usr/include/limits.h': --- /usr/include/limits.h --------------------- ... #define SCHAR_MIN (-128) /* min value for a signed char */ #define SCHAR_MAX 127 /* max value for a signed char */ #define UCHAR_MAX 0xff /* max value for a unsigned char */ #if defined(_CHAR_UNSIGNED) || defined(__CHAR_UNSIGNED__) #define CHAR_MIN 0 #define CHAR_MAX UCHAR_MAX #else #define CHAR_MIN SCHAR_MIN /* mim value for a char */ #define CHAR_MAX SCHAR_MAX /* ma...
2017 Jan 26
2
[PATCH v2 0/2] Fix srandom issues.
A better way to solve this I think. Rich.
2023 Apr 14
4
[libnbd PATCH 0/4] copy: wrap source code at 80 characters
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516 I figured I'd work on the libnbd line wrapping in shorter waves than how long the nbdkit patch series was. Laszlo Laszlo Ersek (4): copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION copy: rename <purpose>_OPTION to OPT_<purpose> copy: fix layout of "long_options" table copy: rewrap
2004 Jul 15
0
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
...ntegral data types, for Interix > 3.5 (gcc automatic macro is __INTERIX), are defined in the system header > file: '/usr/include/limits.h': > > --- /usr/include/limits.h --------------------- > ... > #define SCHAR_MIN (-128) /* min value for a signed char */ > #define SCHAR_MAX 127 /* max value for a signed char */ > #define UCHAR_MAX 0xff /* max value for a unsigned char */ > > #if defined(_CHAR_UNSIGNED) || defined(__CHAR_UNSIGNED__) > #define CHAR_MIN 0 > #define CHAR_MAX UCHAR_MAX > #else > #define CHAR_MIN SCHAR_MIN /* mim value for a char *...
2008 Feb 18
4
[LLVMdev] cross compiling with the C backend
For my master's thesis, I am trying to cross compile programs for the PSP (PlayStation Portable) with LLVM and llvm-gcc. This is what I do: (1) compile a program and the libraries it uses (libpng etc.) with llvm-gcc (2) link the bitcode files with llvm-ld into one file (3) run "llc -march=c" on the result (4) compile the resulting C source with the PSP toolchain It seems to work
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...at redhat.com> --- copy/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/copy/main.c b/copy/main.c index f9a714c4f677..bb67e97ff97a 100644 --- a/copy/main.c +++ b/copy/main.c @@ -107,8 +107,8 @@ main (int argc, char *argv[]) { enum { HELP_OPTION = CHAR_MAX + 1, - LONG_OPTIONS, - SHORT_OPTIONS, + LONG_OPTIONS_OPTION, + SHORT_OPTIONS_OPTION, ALLOCATED_OPTION, DESTINATION_IS_ZERO_OPTION, FLUSH_OPTION, @@ -120,7 +120,7 @@ main (int argc, char *argv[]) const char *short_options = "C:pR:S:T:vV"; const struct optio...
2010 Oct 25
7
[PATCH 0/6] Ocfs2-tools: Add a new tool 'o2info'.
Now it's a good time to introduce the new tool 'o2info' since kernel part of OCFS2_IOC_INFO ioctl has been pulld upstream by linus. The following 6 patches have already got sunil's SOBs, and now they're trying to attract more reviewers before it goes to central repo with a modification of getting manual pages being introduced.
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/copy/main.c b/copy/main.c > index f9a714c4f677..bb67e97ff97a 100644 > --- a/copy/main.c > +++ b/copy/main.c > @@ -107,8 +107,8 @@ main (int argc, char *argv[]) > { > enum { > HELP_OPTION = CHAR_MAX + 1, > - LONG_OPTIONS, > - SHORT_OPTIONS, > + LONG_OPTIONS_OPTION, > + SHORT_OPTIONS_OPTION, > ALLOCATED_OPTION, > DESTINATION_IS_ZERO_OPTION, > FLUSH_OPTION, > @@ -120,7 +120,7 @@ main (int argc, char *argv[]) > const char *short_options = &...
2018 Jun 28
1
[nbdkit PATCH] main: More idiomatic use of getopt_long
...017 Red Hat Inc. + * Copyright (C) 2013-2018 Red Hat Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -109,44 +109,55 @@ struct backend *backend; static char *random_fifo_dir = NULL; static char *random_fifo = NULL; -enum { HELP_OPTION = CHAR_MAX + 1 }; +enum { + HELP_OPTION = CHAR_MAX + 1, + DUMP_CONFIG_OPTION, + DUMP_PLUGIN_OPTION, + EXIT_WITH_PARENT_OPTION, + FILTER_OPTION, + RUN_OPTION, + SELINUX_LABEL_OPTION, + TLS_OPTION, + TLS_CERTIFICATES_OPTION, + TLS_VERIFY_PEER_OPTION, +}; static const char *short_options = "e:fg...
2020 Feb 19
2
[PATCH 0/1] virt-make-fs: add '--blocksize' option support
From: Nikolay Ivanets <stenavin@gmail.com> This patch adds 4096 bytes sector size for output disk. Side notes: While working on this patch I reveal long standing issue: virt-make-fs can fail if source directory/archive contains certain amount of really small or empty files or wide tree of directories. That is because of lack of available inodes on a small file system to keep files
2016 Jul 18
0
[PATCH] format: Remove unimplemented virt-format -c, -d and -q options.
...not in the case statement. --- format/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format/format.c b/format/format.c index 5026aff..2dbaa4d 100644 --- a/format/format.c +++ b/format/format.c @@ -104,7 +104,7 @@ main (int argc, char *argv[]) enum { HELP_OPTION = CHAR_MAX + 1 }; - static const char *options = "a:c:d:qvVx"; + static const char *options = "a:vVx"; static const struct option long_options[] = { { "add", 1, 0, 'a' }, { "filesystem", 1, 0, 0 }, -- 2.7.4
2017 Jan 26
1
[PATCH] Use srandom (time (NULL) + getpid ()) throughout.
...sys/types.h> #include <sys/time.h> #include <sys/stat.h> #include <utime.h> @@ -103,7 +104,7 @@ main (int argc, char *argv[]) textdomain (PACKAGE); /* We use random(3) below. */ - srandom (time (NULL)); + srandom (time (NULL) + getpid ()); enum { HELP_OPTION = CHAR_MAX + 1 }; diff --git a/fish/fish.c b/fish/fish.c index b7d63cf..52a9093 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -181,7 +181,7 @@ main (int argc, char *argv[]) textdomain (PACKAGE); /* We use random(3) in edit.c. */ - srandom (time (NULL)); + srandom (time (NULL) + getpid ()); pa...
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...ns(+), 6 deletions(-) >> >> diff --git a/copy/main.c b/copy/main.c >> index f9a714c4f677..bb67e97ff97a 100644 >> --- a/copy/main.c >> +++ b/copy/main.c >> @@ -107,8 +107,8 @@ main (int argc, char *argv[]) >> { >> enum { >> HELP_OPTION = CHAR_MAX + 1, >> - LONG_OPTIONS, >> - SHORT_OPTIONS, >> + LONG_OPTIONS_OPTION, >> + SHORT_OPTIONS_OPTION, >> ALLOCATED_OPTION, >> DESTINATION_IS_ZERO_OPTION, >> FLUSH_OPTION, >> @@ -120,7 +120,7 @@ main (int argc, char *argv[]) >&...
2020 Feb 19
0
[PATCH 1/1] virt-make-fs: add '--blocksize' option support
...index 5d8c3a385..81d1cf90b 100644 --- a/make-fs/make-fs.c +++ b/make-fs/make-fs.c @@ -54,10 +54,12 @@ int in_virt_rescue = 0; static const char *format = "raw", *label = NULL, *partition = NULL, *size_str = NULL, *type = "ext2"; +int blocksize = 0; enum { HELP_OPTION = CHAR_MAX + 1 }; static const char options[] = "F:s:t:Vvx"; static const struct option long_options[] = { + { "blocksize", 1, 0, 0 }, { "debug", 0, 0, 'v' }, /* for compat with Perl tool */ { "floppy", 0, 0, 0 }, { "format", 1, 0, 'F...
2020 Feb 24
1
[PATCH v2] virt-make-fs: add '--blocksize' option support
...5d8c3a385..8027b6419 100644 --- a/make-fs/make-fs.c +++ b/make-fs/make-fs.c @@ -54,10 +54,12 @@ int in_virt_rescue = 0; static const char *format = "raw", *label = NULL, *partition = NULL, *size_str = NULL, *type = "ext2"; +static int blocksize = 0; enum { HELP_OPTION = CHAR_MAX + 1 }; static const char options[] = "F:s:t:Vvx"; static const struct option long_options[] = { + { "blocksize", 1, 0, 0 }, { "debug", 0, 0, 'v' }, /* for compat with Perl tool */ { "floppy", 0, 0, 0 }, { "format", 1, 0, 'F...