Revision f66724c9

b/bsd-user/main.c
795 795
            r = argv[optind++];
796 796
            if (envlist_setenv(envlist, r) != 0)
797 797
                usage();
798
        } else if (!strcmp(r, "ignore-environment")) {
799
            envlist_free(envlist);
800
            if ((envlist = envlist_create()) == NULL) {
801
                (void) fprintf(stderr, "Unable to allocate envlist\n");
802
                exit(1);
803
            }
798 804
        } else if (!strcmp(r, "U")) {
799 805
            r = argv[optind++];
800 806
            if (envlist_unsetenv(envlist, r) != 0)
b/linux-user/main.c
2790 2790
            r = argv[optind++];
2791 2791
            if (envlist_setenv(envlist, r) != 0)
2792 2792
                usage();
2793
        } else if (!strcmp(r, "ignore-environment")) {
2794
            envlist_free(envlist);
2795
            if ((envlist = envlist_create()) == NULL) {
2796
                (void) fprintf(stderr, "Unable to allocate envlist\n");
2797
                exit(1);
2798
            }
2793 2799
        } else if (!strcmp(r, "U")) {
2794 2800
            r = argv[optind++];
2795 2801
            if (envlist_unsetenv(envlist, r) != 0)
b/qemu-doc.texi
2186 2186
Set the x86 stack size in bytes (default=524288)
2187 2187
@item -cpu model
2188 2188
Select CPU model (-cpu ? for list and additional feature selection)
2189
@item -ignore-environment
2190
Start with an empty environment. Without this option,
2191
the inital environment is a copy of the caller's environment.
2192
@item -E @var{var}=@var{value}
2193
Set environment @var{var} to @var{value}.
2194
@item -U @var{var}
2195
Remove @var{var} from the environment.
2189 2196
@item -B offset
2190 2197
Offset guest address by the specified number of bytes.  This is useful when
2191 2198
the address region required by guest applications is reserved on the host.
......
2409 2416
Set the library root path (default=/)
2410 2417
@item -s size
2411 2418
Set the stack size in bytes (default=524288)
2419
@item -ignore-environment
2420
Start with an empty environment. Without this option,
2421
the inital environment is a copy of the caller's environment.
2422
@item -E @var{var}=@var{value}
2423
Set environment @var{var} to @var{value}.
2424
@item -U @var{var}
2425
Remove @var{var} from the environment.
2412 2426
@item -bsd type
2413 2427
Set the type of the emulated BSD Operating system. Valid values are
2414 2428
FreeBSD, NetBSD and OpenBSD (default).

Also available in: Unified diff