Back to index

glibc  2.9
Functions
fcntl.h File Reference
#include <features.h>
#include <bits/fcntl.h>

Go to the source code of this file.

Functions

__BEGIN_DECLS int fcntl (int __fd, int __cmd,...)
int open (__const char *__file, int __oflag,...) __nonnull((1))
int creat (__const char *__file, __mode_t __mode) __nonnull((1))

Function Documentation

int creat ( __const char *  __file,
__mode_t  __mode 
)

Here is the caller graph for this function:

__BEGIN_DECLS int fcntl ( int  __fd,
int  __cmd,
  ... 
)

Here is the caller graph for this function:

int open ( __const char *  __file,
int  __oflag,
  ... 
)

Definition at line 42 of file fcntl2.h.

{
  if (__va_arg_pack_len () > 1)
    __open_too_many_args ();

  if (__builtin_constant_p (__oflag))
    {
      if ((__oflag & O_CREAT) != 0 && __va_arg_pack_len () < 1)
       {
         __open_missing_mode ();
         return __open_2 (__path, __oflag);
       }
      return __open_alias (__path, __oflag, __va_arg_pack ());
    }

  if (__va_arg_pack_len () < 1)
    return __open_2 (__path, __oflag);

  return __open_alias (__path, __oflag, __va_arg_pack ());
}

Here is the call graph for this function: