Changeset 35 in libcf for trunk/src/cf_file.c


Ignore:
Timestamp:
02/05/13 18:18:37 (11 years ago)
Author:
cheese
Message:

#1 separate example code and doxygen comment and fix logging push logic by vfire

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cf_file.c

    r29 r35  
    2727#define FILE_MODE       S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH
    2828
     29/**
     30 * 파일 열기
     31 *
     32 * @return 성공 시, 파일 디스크립터; 실패 시, 오류 코드
     33 *
     34 * @param path  파일 경로
     35 * @param flag  파일 열기 플래그
     36 *
     37 * @see CF_FILE_FLAG
     38 */
    2939int
    3040CF_File_Open (const char            * path,
     
    3949}
    4050
     51/**
     52 * 파일 생성
     53 *
     54 * @return 성공 시, 파일 디스크립터; 실패 시, 오류 코드
     55 *
     56 * @param path  파일 경로
     57 */
    4158int
    4259CF_File_Create (const char * path)
     
    5067}
    5168
     69/**
     70 * 파일 닫기
     71 *
     72 * @return 성공 시, CF_OK; 실패 시, 오류 코드
     73 *
     74 * @param fd 파일 디스크립터
     75 */
    5276int
    5377CF_File_Close (const int fd)
     
    6690}
    6791
     92/**
     93 * 파일 읽기
     94 *
     95 * @return 성공 시, 읽은 바이트 수; 실패 시, 오류 코드
     96 *
     97 * @param fd    파일 디스크립터
     98 * @param buf   데이터를 저장할 메모리
     99 * @param len   데이터를 저장할 메모리의 크기
     100 */
    68101int
    69102CF_File_Read (const int     fd,
     
    79112}
    80113
     114/**
     115 * 파일 쓰기
     116 *
     117 * @return 성공 시, CF_OK; 실패 시, 오류 코드
     118 *
     119 * @param fd    파일 디스크립터
     120 * @param buf   데이터가 저장된 메모리
     121 * @param len   쓸 데이터의 길이
     122 */
    81123int
    82124CF_File_Write (const int    fd,
     
    92134}
    93135
     136/**
     137 * 파일 크기 얻기
     138 *
     139 * @return 성공 시, 파일 크기; 실패 시, 오류 코드
     140 *
     141 * @param fd    파일 디스크립터
     142 */
    94143int
    95144CF_File_GetSize (const int fd)
Note: See TracChangeset for help on using the changeset viewer.