FreeBSD Bugzilla – Attachment 25650 Details for
Bug 43811
'sleep' is too big
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.64 KB, created by
kientzle
on 2002-10-08 05:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
kientzle
Created:
2002-10-08 05:20:00 UTC
Size:
1.64 KB
patch
obsolete
>*** sleep.c-original Mon Oct 7 21:12:24 2002 >--- sleep.c Mon Oct 7 21:12:54 2002 >*************** >*** 47,53 **** > > #include <ctype.h> > #include <limits.h> >- #include <stdio.h> > #include <stdlib.h> > #include <time.h> > #include <unistd.h> >--- 47,52 ---- >*************** >*** 61,83 **** > long l; > int ch, neg; > char *p; > >! while ((ch = getopt(argc, argv, "")) != -1) >! switch(ch) { >! case '?': >! default: >! usage(); >! /* NOTREACHED */ >! } >! argc -= optind; >! argv += optind; >! > if (argc != 1) { > usage(); > /* NOTREACHED */ > } > >! p = argv[0]; > > /* Skip over leading whitespaces. */ > while (isspace((unsigned char)*p)) >--- 60,83 ---- > long l; > int ch, neg; > char *p; >+ char **pp; > >! /* Abort if no seconds value specified */ > if (argc != 1) { > usage(); > /* NOTREACHED */ > } > >! /* Abort if any options were given */ >! pp = argv; >! while( ++pp != NULL ) { >! if(**pp == '-') { >! usage(); >! /* NOTREACHED */ >! } >! } >! >! p = argv[1]; > > /* Skip over leading whitespaces. */ > while (isspace((unsigned char)*p)) >*************** >*** 128,134 **** > void > usage(void) > { >! >! (void)fprintf(stderr, "usage: sleep seconds\n"); > exit(1); > } >--- 128,133 ---- > void > usage(void) > { >! (void)write(2, "usage: sleep seconds\n",21); > exit(1); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43811
: 25650