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