Ruby  3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
Data Structures | Macros | Enumerations | Functions
file.h File Reference

(b76ad15ed0da636161de0243c547ee1e6fc95681)

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rb_w32_reparse_buffer_t
 

Macros

#define MAX_REPARSE_PATH_LEN   4092
 
#define rb_w32_reparse_buffer_size(n)
 
#define HAVE_FCHMOD   0
 

Enumerations

enum  { MINIMUM_REPARSE_BUFFER_PATH_LEN = 4 }
 

Functions

int rb_w32_read_reparse_point (const WCHAR *path, rb_w32_reparse_buffer_t *rp, size_t bufsize, WCHAR **result, DWORD *len)
 
int lchown (const char *path, int owner, int group)
 
int rb_w32_ulchown (const char *path, int owner, int group)
 
int fchmod (int fd, int mode)
 
UINT rb_w32_filecp (void)
 
WCHAR * rb_w32_home_dir (void)
 

Macro Definition Documentation

◆ HAVE_FCHMOD

#define HAVE_FCHMOD   0

Definition at line 43 of file file.h.

◆ MAX_REPARSE_PATH_LEN

#define MAX_REPARSE_PATH_LEN   4092

Definition at line 4 of file file.h.

◆ rb_w32_reparse_buffer_size

#define rb_w32_reparse_buffer_size (   n)
Value:
sizeof(WCHAR)*((n)-MINIMUM_REPARSE_BUFFER_PATH_LEN))

Definition at line 33 of file file.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MINIMUM_REPARSE_BUFFER_PATH_LEN 

Definition at line 6 of file file.h.

Function Documentation

◆ fchmod()

int fchmod ( int  fd,
int  mode 
)

Definition at line 7728 of file win32.c.

◆ lchown()

int lchown ( const char *  path,
int  owner,
int  group 
)

Definition at line 4854 of file win32.c.

◆ rb_w32_filecp()

UINT rb_w32_filecp ( void  )

◆ rb_w32_home_dir()

WCHAR* rb_w32_home_dir ( void  )

Definition at line 548 of file win32.c.

References ALLOC_N, len, and NULL.

◆ rb_w32_read_reparse_point()

int rb_w32_read_reparse_point ( const WCHAR *  path,
rb_w32_reparse_buffer_t rp,
size_t  bufsize,
WCHAR **  result,
DWORD len 
)

Definition at line 5090 of file win32.c.

Referenced by rb_w32_reparse_symlink_p().

◆ rb_w32_ulchown()

int rb_w32_ulchown ( const char *  path,
int  owner,
int  group 
)

Definition at line 4860 of file win32.c.

rb_w32_reparse_buffer_t
Definition: file.h:10
MINIMUM_REPARSE_BUFFER_PATH_LEN
@ MINIMUM_REPARSE_BUFFER_PATH_LEN
Definition: file.h:7