view src/os/unix/ngx_types.h @ 2638:a3f062177dba stable-0.6

r2336, r2337, r2339, r2390 merge: bugfixes in error logging: *) ngx_strerror_r() style and size == 0 bug fix *) increase ngx_conf_log_error() buffer *) always log an error code *) fix segfault on close error *) compact win32 errno logging
author Igor Sysoev <igor@sysoev.ru>
date Wed, 01 Apr 2009 15:47:12 +0000
parents ded1284520cc
children
line wrap: on
line source


/*
 * Copyright (C) Igor Sysoev
 */


#ifndef _NGX_TYPES_H_INCLUDED_
#define _NGX_TYPES_H_INCLUDED_


#include <ngx_config.h>


typedef int            ngx_fd_t;
typedef struct stat    ngx_file_info_t;
typedef ino_t          ngx_file_uniq_t;

typedef struct {
    DIR              *dir;
    struct dirent    *de;
    struct stat       info;

    ngx_uint_t        valid_info:1;  /* unsigned  valid_info:1; */
} ngx_dir_t;


#endif /* _NGX_TYPES_H_INCLUDED_ */