GDBserver

Macros | Functions
fcntl.h File Reference
`#include <sys/types.h>`
`#include <sys/stat.h>`
`#include <unistd.h>`

Go to the source code of this file.

## Macros
#define | _GL_FCNTL_H
#define | _GL_CXXDEFS_H
#define | _GL_BEGIN_NAMESPACE
#define | _GL_END_NAMESPACE
#define | _GL_EXTERN_C extern
#define | _GL_FUNCDECL_RPL(func, rettype, parameters_and_attributes) _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
#define | _GL_FUNCDECL_RPL_1(rpl_func, rettype, parameters_and_attributes) _GL_EXTERN_C rettype rpl_func parameters_and_attributes
#define | _GL_FUNCDECL_SYS(func, rettype, parameters_and_attributes) _GL_EXTERN_C rettype func parameters_and_attributes
#define | _GL_CXXALIAS_RPL(func, rettype, parameters) _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
#define | _GL_CXXALIAS_RPL_1(func, rpl_func, rettype, parameters) _GL_EXTERN_C int _gl_cxxalias_dummy
#define | _GL_CXXALIAS_RPL_CAST_1(func, rpl_func, rettype, parameters) _GL_EXTERN_C int _gl_cxxalias_dummy
#define | _GL_CXXALIAS_SYS(func, rettype, parameters) _GL_EXTERN_C int _gl_cxxalias_dummy
#define | _GL_CXXALIAS_SYS_CAST(func, rettype, parameters) _GL_EXTERN_C int _gl_cxxalias_dummy
#define | _GL_CXXALIAS_SYS_CAST2(func, rettype, parameters, rettype2, parameters2) _GL_EXTERN_C int _gl_cxxalias_dummy
#define | _GL_CXXALIASWARN(func) _GL_EXTERN_C int _gl_cxxalias_dummy
#define | _GL_CXXALIASWARN1(func, rettype, parameters_and_attributes) _GL_EXTERN_C int _gl_cxxalias_dummy
#define | _GL_ARG_NONNULL(params)
#define | _GL_WARN_ON_USE(function, message) _GL_WARN_EXTERN_C int _gl_warn_on_use
#define | _GL_WARN_ON_USE_CXX(function, rettype, parameters_and_attributes, msg) _GL_WARN_EXTERN_C int _gl_warn_on_use
#define | _GL_WARN_EXTERN_C extern
#define | fcntl rpl_fcntl
#define | FD_CLOEXEC 1
#define | F_DUPFD_CLOEXEC 0x40000000
#define | GNULIB_defined_F_DUPFD_CLOEXEC 1
#define | F_DUPFD 1
#define | F_GETFD 2
#define | O_CLOEXEC 0
#define | O_DIRECT 0
#define | O_DIRECTORY 0
#define | O_DSYNC 0
#define | O_EXEC O_RDONLY /* This is often close enough in older systems. */
#define | O_IGNORE_CTTY 0
#define | O_NDELAY 0
#define | O_NOATIME 0
#define | O_NONBLOCK O_NDELAY
#define | O_NOCTTY 0
#define | O_NOFOLLOW 0
#define | O_NOLINK 0
#define | O_NOLINKS 0
#define | O_NOTRANS 0
#define | O_RSYNC 0
#define | O_SEARCH O_RDONLY /* This is often close enough in older systems. */
#define | O_SYNC 0
#define | O_TTY_INIT 0
#define | O_BINARY 0
#define | O_TEXT 0
#define | AT_FDCWD (-3041965)
#define | AT_SYMLINK_NOFOLLOW 4096
#define | AT_REMOVEDIR 1
#define | AT_SYMLINK_FOLLOW 2
#define | AT_EACCESS 4

## Functions
| _GL_FUNCDECL_RPL (fcntl, int,(int fd, int action,...))
| _GL_CXXALIAS_RPL (fcntl, int,(int fd, int action,...))
| _GL_CXXALIASWARN (fcntl)
| _GL_CXXALIAS_SYS (open, int,(const char *filename, int flags,...))
| _GL_CXXALIASWARN (open)
| _GL_CXXALIAS_SYS (openat, int,(int fd, char const *file, int flags,...))
| _GL_CXXALIASWARN (openat)

## Macro Definition Documentation

## ◆ _GL_ARG_NONNULL

#define _GL_ARG_NONNULL | ( |  | params | ) |

Definition at line 377 of file fcntl.h.

## ◆ _GL_BEGIN_NAMESPACE

#define _GL_BEGIN_NAMESPACE

Definition at line 86 of file fcntl.h.

## ◆ _GL_CXXALIAS_RPL

#define _GL_CXXALIAS_RPL | ( |  | func,
|  |  | rettype,
|  |  | parameters
| ) |  | _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)

Definition at line 188 of file fcntl.h.

## ◆ _GL_CXXALIAS_RPL_1

#define _GL_CXXALIAS_RPL_1 | ( |  | func,
|  |  | rpl_func,
|  |  | rettype,
|  |  | parameters
| ) |  | _GL_EXTERN_C int _gl_cxxalias_dummy

Definition at line 203 of file fcntl.h.

## ◆ _GL_CXXALIAS_RPL_CAST_1

#define _GL_CXXALIAS_RPL_CAST_1 | ( |  | func,
|  |  | rpl_func,
|  |  | rettype,
|  |  | parameters
| ) |  | _GL_EXTERN_C int _gl_cxxalias_dummy

Definition at line 226 of file fcntl.h.

## ◆ _GL_CXXALIAS_SYS

#define _GL_CXXALIAS_SYS | ( |  | func,
|  |  | rettype,
|  |  | parameters
| ) |  | _GL_EXTERN_C int _gl_cxxalias_dummy

Definition at line 253 of file fcntl.h.

## ◆ _GL_CXXALIAS_SYS_CAST

#define _GL_CXXALIAS_SYS_CAST | ( |  | func,
|  |  | rettype,
|  |  | parameters
| ) |  | _GL_EXTERN_C int _gl_cxxalias_dummy

Definition at line 276 of file fcntl.h.

## ◆ _GL_CXXALIAS_SYS_CAST2

#define _GL_CXXALIAS_SYS_CAST2 | ( |  | func,
|  |  | rettype,
|  |  | parameters,
|  |  | rettype2,
|  |  | parameters2
| ) |  | _GL_EXTERN_C int _gl_cxxalias_dummy

Definition at line 307 of file fcntl.h.

## ◆ _GL_CXXALIASWARN

#define _GL_CXXALIASWARN | ( |  | func | ) | _GL_EXTERN_C int _gl_cxxalias_dummy

Definition at line 335 of file fcntl.h.

## ◆ _GL_CXXALIASWARN1

#define _GL_CXXALIASWARN1 | ( |  | func,
|  |  | rettype,
|  |  | parameters_and_attributes
| ) |  | _GL_EXTERN_C int _gl_cxxalias_dummy

Definition at line 363 of file fcntl.h.

## ◆ _GL_CXXDEFS_H

#define _GL_CXXDEFS_H

Definition at line 79 of file fcntl.h.

## ◆ _GL_END_NAMESPACE

#define _GL_END_NAMESPACE

Definition at line 87 of file fcntl.h.

## ◆ _GL_EXTERN_C

#define _GL_EXTERN_C extern

Definition at line 154 of file fcntl.h.

## ◆ _GL_FCNTL_H

#define _GL_FCNTL_H

Definition at line 64 of file fcntl.h.

## ◆ _GL_FUNCDECL_RPL

#define _GL_FUNCDECL_RPL | ( |  | func,
|  |  | rettype,
|  |  | parameters_and_attributes
| ) |  | _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)

Definition at line 164 of file fcntl.h.

## ◆ _GL_FUNCDECL_RPL_1

#define _GL_FUNCDECL_RPL_1 | ( |  | rpl_func,
|  |  | rettype,
|  |  | parameters_and_attributes
| ) |  | _GL_EXTERN_C rettype rpl_func parameters_and_attributes

Definition at line 166 of file fcntl.h.

## ◆ _GL_FUNCDECL_SYS

#define _GL_FUNCDECL_SYS | ( |  | func,
|  |  | rettype,
|  |  | parameters_and_attributes
| ) |  | _GL_EXTERN_C rettype func parameters_and_attributes

Definition at line 176 of file fcntl.h.

## ◆ _GL_WARN_EXTERN_C

#define _GL_WARN_EXTERN_C extern

Definition at line 425 of file fcntl.h.

## ◆ _GL_WARN_ON_USE

#define _GL_WARN_ON_USE | ( |  | function,
|  |  | message
| ) |  | _GL_WARN_EXTERN_C int _gl_warn_on_use

Definition at line 393 of file fcntl.h.

## ◆ _GL_WARN_ON_USE_CXX

#define _GL_WARN_ON_USE_CXX | ( |  | function,
|  |  | rettype,
|  |  | parameters_and_attributes,
|  |  | msg
| ) |  | _GL_WARN_EXTERN_C int _gl_warn_on_use

Definition at line 414 of file fcntl.h.

## ◆ AT_EACCESS

#define AT_EACCESS 4

Definition at line 704 of file fcntl.h.

## ◆ AT_FDCWD

#define AT_FDCWD (-3041965)

Definition at line 685 of file fcntl.h.

## ◆ AT_REMOVEDIR

#define AT_REMOVEDIR 1

Definition at line 695 of file fcntl.h.

## ◆ AT_SYMLINK_FOLLOW

#define AT_SYMLINK_FOLLOW 2

Definition at line 700 of file fcntl.h.

## ◆ AT_SYMLINK_NOFOLLOW

#define AT_SYMLINK_NOFOLLOW 4096

Definition at line 691 of file fcntl.h.

## ◆ F_DUPFD

#define F_DUPFD 1

Definition at line 527 of file fcntl.h.

## ◆ F_DUPFD_CLOEXEC

#define F_DUPFD_CLOEXEC 0x40000000

Definition at line 519 of file fcntl.h.

## ◆ F_GETFD

#define F_GETFD 2

Definition at line 531 of file fcntl.h.

Referenced by mark_cloexec().

## ◆ fcntl

#define fcntl rpl_fcntl

Definition at line 436 of file fcntl.h.

Referenced by enable_async_notification(), linux_async(), and mark_cloexec().

## ◆ FD_CLOEXEC

#define FD_CLOEXEC 1

Definition at line 512 of file fcntl.h.

Referenced by mark_cloexec().

## ◆ GNULIB_defined_F_DUPFD_CLOEXEC

#define GNULIB_defined_F_DUPFD_CLOEXEC 1

Definition at line 521 of file fcntl.h.

## ◆ O_BINARY

#define O_BINARY 0

Definition at line 667 of file fcntl.h.

Referenced by fileio_to_host_openflags().

## ◆ O_CLOEXEC

#define O_CLOEXEC 0

Definition at line 563 of file fcntl.h.

## ◆ O_DIRECT

#define O_DIRECT 0

Definition at line 567 of file fcntl.h.

## ◆ O_DIRECTORY

#define O_DIRECTORY 0

Definition at line 571 of file fcntl.h.

## ◆ O_DSYNC

#define O_DSYNC 0

Definition at line 575 of file fcntl.h.

## ◆ O_EXEC

#define O_EXEC O_RDONLY /* This is often close enough in older systems. */

Definition at line 579 of file fcntl.h.

## ◆ O_IGNORE_CTTY

#define O_IGNORE_CTTY 0

Definition at line 583 of file fcntl.h.

## ◆ O_NDELAY

#define O_NDELAY 0

Definition at line 587 of file fcntl.h.

## ◆ O_NOATIME

#define O_NOATIME 0

Definition at line 591 of file fcntl.h.

## ◆ O_NOCTTY

#define O_NOCTTY 0

Definition at line 612 of file fcntl.h.

## ◆ O_NOFOLLOW

#define O_NOFOLLOW 0

Definition at line 616 of file fcntl.h.

## ◆ O_NOLINK

#define O_NOLINK 0

Definition at line 620 of file fcntl.h.

## ◆ O_NOLINKS

#define O_NOLINKS 0

Definition at line 624 of file fcntl.h.

## ◆ O_NONBLOCK

#define O_NONBLOCK O_NDELAY

Definition at line 595 of file fcntl.h.

Referenced by linux_async().

## ◆ O_NOTRANS

#define O_NOTRANS 0

Definition at line 628 of file fcntl.h.

## ◆ O_RSYNC

#define O_RSYNC 0

Definition at line 632 of file fcntl.h.

## ◆ O_SEARCH

#define O_SEARCH O_RDONLY /* This is often close enough in older systems. */

Definition at line 636 of file fcntl.h.

## ◆ O_SYNC

#define O_SYNC 0

Definition at line 640 of file fcntl.h.

## ◆ O_TEXT

#define O_TEXT 0

Definition at line 668 of file fcntl.h.

## ◆ O_TTY_INIT

#define O_TTY_INIT 0

Definition at line 644 of file fcntl.h.

## Function Documentation

## ◆ _GL_CXXALIAS_RPL()

_GL_CXXALIAS_RPL | ( | fcntl | ,
|  | int | ,
|  | (int fd, int action,...) |
| ) |  |

## ◆ _GL_CXXALIAS_SYS() [1/2]

_GL_CXXALIAS_SYS | ( | open | ,
|  | int | ,
|  | (const char *filename, int flags,...) |
| ) |  |

## ◆ _GL_CXXALIAS_SYS() [2/2]

_GL_CXXALIAS_SYS | ( | openat | ,
|  | int | ,
|  | (int fd, char const *file, int flags,...) |
| ) |  |

## ◆ _GL_CXXALIASWARN() [1/3]

_GL_CXXALIASWARN | ( | fcntl |  | ) |

## ◆ _GL_CXXALIASWARN() [2/3]

_GL_CXXALIASWARN | ( | open |  | ) |

## ◆ _GL_CXXALIASWARN() [3/3]

_GL_CXXALIASWARN | ( | openat |  | ) |

## ◆ _GL_FUNCDECL_RPL()

_GL_FUNCDECL_RPL | ( | fcntl | ,
|  | int | ,
|  | (int fd, int action,...) |
| ) |  |