source: rtems/testsuites/libtests/POSIX/open.c @ 60d47ab

4.104.115
Last change on this file since 60d47ab was 60d47ab, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/02/09 at 15:00:05

New.

  • Property mode set to 100644
File size: 432 bytes
Line 
1/*
2 * Copyright (c) 2009 by
3 * Ralf Corsépius, Ulm, Germany. All rights reserved.
4 *
5 * Permission to use, copy, modify, and distribute this software
6 * is freely granted, provided that this notice is preserved.
7 */
8
9#include <sys/types.h>
10#include <sys/stat.h>
11#include <fcntl.h>
12
13int
14main (void)
15{
16  int fd1;
17  int fd2;
18
19  fd1 = open ("/tmp/foo1", O_RDWR | O_APPEND);
20  fd2 = open ("/tmp/foo2", O_CREAT, S_IWUSR);
21
22  return 0;
23}
Note: See TracBrowser for help on using the repository browser.