Changeset 35 in libcf for trunk/src/cf_file.c
- Timestamp:
- 02/05/13 18:18:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_file.c
r29 r35 27 27 #define FILE_MODE S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH 28 28 29 /** 30 * 파일 열기 31 * 32 * @return 성공 시, 파일 디스크립터; 실패 시, 오류 코드 33 * 34 * @param path 파일 경로 35 * @param flag 파일 열기 플래그 36 * 37 * @see CF_FILE_FLAG 38 */ 29 39 int 30 40 CF_File_Open (const char * path, … … 39 49 } 40 50 51 /** 52 * 파일 생성 53 * 54 * @return 성공 시, 파일 디스크립터; 실패 시, 오류 코드 55 * 56 * @param path 파일 경로 57 */ 41 58 int 42 59 CF_File_Create (const char * path) … … 50 67 } 51 68 69 /** 70 * 파일 닫기 71 * 72 * @return 성공 시, CF_OK; 실패 시, 오류 코드 73 * 74 * @param fd 파일 디스크립터 75 */ 52 76 int 53 77 CF_File_Close (const int fd) … … 66 90 } 67 91 92 /** 93 * 파일 읽기 94 * 95 * @return 성공 시, 읽은 바이트 수; 실패 시, 오류 코드 96 * 97 * @param fd 파일 디스크립터 98 * @param buf 데이터를 저장할 메모리 99 * @param len 데이터를 저장할 메모리의 크기 100 */ 68 101 int 69 102 CF_File_Read (const int fd, … … 79 112 } 80 113 114 /** 115 * 파일 쓰기 116 * 117 * @return 성공 시, CF_OK; 실패 시, 오류 코드 118 * 119 * @param fd 파일 디스크립터 120 * @param buf 데이터가 저장된 메모리 121 * @param len 쓸 데이터의 길이 122 */ 81 123 int 82 124 CF_File_Write (const int fd, … … 92 134 } 93 135 136 /** 137 * 파일 크기 얻기 138 * 139 * @return 성공 시, 파일 크기; 실패 시, 오류 코드 140 * 141 * @param fd 파일 디스크립터 142 */ 94 143 int 95 144 CF_File_GetSize (const int fd)
Note:
See TracChangeset
for help on using the changeset viewer.