Changes in uspace/lib/c/generic/getopt.c [3bacee1:7c3fb9b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/getopt.c
r3bacee1 r7c3fb9b 1 1 /* $NetBSD: getopt_long.c,v 1.21.4.1 2008/01/09 01:34:14 matt Exp $ */ 2 2 3 /* -3 /* 4 4 * Copyright (c) 2000 The NetBSD Foundation, Inc. 5 5 * All rights reserved. … … 41 41 #include <str.h> 42 42 43 /* HelenOS Port : We're incorporating only the modern getopt_long with wrappers 43 /* 44 * HelenOS Port : We're incorporating only the modern getopt_long with wrappers 44 45 * to keep legacy getopt() usage from breaking. All references to REPLACE_GETOPT 45 * are dropped, we just include the code */ 46 * are dropped, we just include the code 47 */ 46 48 47 49 int opterr = 1; /* if error message should be printed */ … … 81 83 /* Error messages */ 82 84 83 /* HelenOS Port: Calls to warnx() were eliminated (as we have no stderr that 85 /* 86 * HelenOS Port: Calls to warnx() were eliminated (as we have no stderr that 84 87 * may be redirected) and replaced with printf. As such, error messages now 85 * end in a newline */ 88 * end in a newline 89 */ 86 90 87 91 static const char recargchar[] = "option requires an argument -- %c\n";
Note:
See TracChangeset
for help on using the changeset viewer.