mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-12-30 04:33:01 +00:00
removed a splatprep line, deleted a file that shouldn't have been here
This commit is contained in:
parent
d6b3f6684d
commit
4430431c34
@ -1,8 +1,7 @@
|
||||
#line 1 ":trenco4:gno.src:lib:libc:tests:gen:getcwd.c"
|
||||
/*
|
||||
* Test written by Devin Reade.
|
||||
*
|
||||
* $Id: getcwd.c,v 1.1 1997/02/28 05:12:52 gdr Exp $
|
||||
* $Id: getcwd.c,v 1.2 1997/02/28 05:43:47 gdr Exp $
|
||||
*/
|
||||
|
||||
#include <limits.h>
|
||||
|
@ -1,39 +0,0 @@
|
||||
#line 1 ":trenco4:gno.src:lib:libc:gen:testit.c"
|
||||
#pragma lint -1
|
||||
#pragma keep "testit"
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef __GNO__
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
int main (int argc, char **argv) {
|
||||
int fd1, fd2;
|
||||
|
||||
if (argc != 2) {
|
||||
printf("usage!\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
printf("trying first open\n");
|
||||
fd1 = open(argv[1], O_RDONLY);
|
||||
if (fd1 == -1) {
|
||||
perror("open 1 failed\n");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
printf("trying second open\n");
|
||||
fd2 = open(argv[1], O_RDONLY);
|
||||
if (fd2 == -1) {
|
||||
perror("open 2 failed\n");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
printf("done!\n");
|
||||
close(fd1);
|
||||
close(fd2);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user