JM Project

JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 10 of about 56 for fopen (0.003 sec.)
Man page of FOPEN 13290
FOPEN Section: Linux Programmer's Manual (3) Updated: 2020-12-21 Index JM Home Page 名前 fopen, fdopen, freopen - ストリームを開く関数 書式 #include < stdio.h > FILE *fopen(const char * pathname , const char * mode ); FILE *fdopen(int fd , ... mode , FILE * stream ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): fdopen (): _POSIX_C_SOURCE 説明 fopen () 関数は、 pathname で指定された名前のファイルを開き、ストリームと結びつける。 引数 mode は、以下に続く文字のひとつから始 ... SEEK_END); The file descriptor associated with the stream is opened as if by a call to open (2) with the following flags: fopen() モード open() フラグ r O_RDONLY w O_WRONLY | O_CREAT | O_TRUNC a O_WRONLY | O_CREAT | O_APPEND r+ O_RDWR w+ O_RDWR | O_C ... am で指定されたストリームに、そのファイルを結びつける。 もとのストリームは (もし存在する場合には) 閉じられる。 mode 引数は fopen () 関数と同じ形で使われる。 If the pathname argument is a null pointer, freopen () changes the mode of the stream to that ...
https://man.mtool.work/man/20260915/man3/fdopen.3.html
Man page of FOPEN 13290
FOPEN Section: Linux Programmer's Manual (3) Updated: 2020-12-21 Index JM Home Page 名前 fopen, fdopen, freopen - ストリームを開く関数 書式 #include < stdio.h > FILE *fopen(const char * pathname , const char * mode ); FILE *fdopen(int fd , ... mode , FILE * stream ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): fdopen (): _POSIX_C_SOURCE 説明 fopen () 関数は、 pathname で指定された名前のファイルを開き、ストリームと結びつける。 引数 mode は、以下に続く文字のひとつから始 ... SEEK_END); The file descriptor associated with the stream is opened as if by a call to open (2) with the following flags: fopen() モード open() フラグ r O_RDONLY w O_WRONLY | O_CREAT | O_TRUNC a O_WRONLY | O_CREAT | O_APPEND r+ O_RDWR w+ O_RDWR | O_C ... am で指定されたストリームに、そのファイルを結びつける。 もとのストリームは (もし存在する場合には) 閉じられる。 mode 引数は fopen () 関数と同じ形で使われる。 If the pathname argument is a null pointer, freopen () changes the mode of the stream to that ...
https://man.mtool.work/man/20260915/man3/fopen.3.html
Man page of FOPEN 13290
FOPEN Section: Linux Programmer's Manual (3) Updated: 2020-12-21 Index JM Home Page 名前 fopen, fdopen, freopen - ストリームを開く関数 書式 #include < stdio.h > FILE *fopen(const char * pathname , const char * mode ); FILE *fdopen(int fd , ... mode , FILE * stream ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): fdopen (): _POSIX_C_SOURCE 説明 fopen () 関数は、 pathname で指定された名前のファイルを開き、ストリームと結びつける。 引数 mode は、以下に続く文字のひとつから始 ... SEEK_END); The file descriptor associated with the stream is opened as if by a call to open (2) with the following flags: fopen() モード open() フラグ r O_RDONLY w O_WRONLY | O_CREAT | O_TRUNC a O_WRONLY | O_CREAT | O_APPEND r+ O_RDWR w+ O_RDWR | O_C ... am で指定されたストリームに、そのファイルを結びつける。 もとのストリームは (もし存在する場合には) 閉じられる。 mode 引数は fopen () 関数と同じ形で使われる。 If the pathname argument is a null pointer, freopen () changes the mode of the stream to that ...
https://man.mtool.work/man/20260915/man3/freopen.3.html
Man page of GETLINE 8310
GETLINE Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 getline, getdelim - 区切り文字までの文字列入力を読み込む 書式 #include < stdio.h > ssize_t getline(char ** lineptr , size_t * n , FILE * stream ); ss ... _t len = 0; ssize_t nread; if (argc != 2) { fprintf(stderr, "Usage: %s <file>\n", argv[0]); exit(EXIT_FAILURE); } stream = fopen(argv[1], "r"); if (stream == NULL) { perror("fopen"); exit(EXIT_FAILURE); } while ((nread = getline(&line, &len, stream)) ... nread); fwrite(line, nread, 1, stdout); } free(line); fclose(stream); exit(EXIT_SUCCESS); } 関連項目 read (2), fgets (3), fopen (3), fread (3), scanf (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。プロ ...
https://man.mtool.work/man/20260915/man3/getdelim.3.html
Man page of GETLINE 8310
GETLINE Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 getline, getdelim - 区切り文字までの文字列入力を読み込む 書式 #include < stdio.h > ssize_t getline(char ** lineptr , size_t * n , FILE * stream ); ss ... _t len = 0; ssize_t nread; if (argc != 2) { fprintf(stderr, "Usage: %s <file>\n", argv[0]); exit(EXIT_FAILURE); } stream = fopen(argv[1], "r"); if (stream == NULL) { perror("fopen"); exit(EXIT_FAILURE); } while ((nread = getline(&line, &len, stream)) ... nread); fwrite(line, nread, 1, stdout); } free(line); fclose(stream); exit(EXIT_SUCCESS); } 関連項目 read (2), fgets (3), fopen (3), fread (3), scanf (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。プロ ...
https://man.mtool.work/man/20260915/man3/getline.3.html
Man page of FOPENCOOKIE 7985
FOPENCOOKIE Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 fopencookie - 独自のストリームをオープンする 書式 #define _GNU_SOURCE /* feature_test_macros (7) 参照 */ #include < stdio.h > FILE *fopencookie(v ... oid * cookie , const char * mode , cookie_io_functions_t io_funcs ); 説明 fopencookie () を使うと、 プログラマーは標準 I/O ストリームの独自の実装を作成することができる。 この実装はストリームのデータを自 ... 分が選んだ場所に格納することができる。 例えば、 fopencookie () は fmemopen (3) を実装するのに使用されている。 fmemopen (3) はメモリー上のバッファーに格納されたデータに対するスト ... を格納する場所など) を提供する構造体である。 標準の I/O パッケージにはこの cookie の内容に関する情報を持たないが (したがって fopencookie () に渡される際の型は void * である)、 フック関数が呼び出される際に第一引数として cookie が渡される。 * fopencookie ...
https://man.mtool.work/man/20260915/man3/fopencookie.3.html
Man page of FREAD 7764
FREAD Section: Linux Programmer's Manual (3) Updated: 2020-08-13 Index JM Home Page 名前 fread, fwrite - バイナリストリームの入出力 書式 #include < stdio.h > size_t fread(void * ptr , size_t size , size_t nmemb , FILE * stream ); size_t fwr ... ude < stdio.h > #include < stdlib.h > #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) int main(void) { FILE *fp = fopen("/bin/sh", "rb"); if (!fp) { perror("fopen"); return EXIT_FAILURE; } unsigned char buffer[4]; size_t ret = fread(buffer, A ...
https://man.mtool.work/man/20260915/man3/fread.3.html
Man page of FREAD 7764
FREAD Section: Linux Programmer's Manual (3) Updated: 2020-08-13 Index JM Home Page 名前 fread, fwrite - バイナリストリームの入出力 書式 #include < stdio.h > size_t fread(void * ptr , size_t size , size_t nmemb , FILE * stream ); size_t fwr ... ude < stdio.h > #include < stdlib.h > #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) int main(void) { FILE *fp = fopen("/bin/sh", "rb"); if (!fp) { perror("fopen"); return EXIT_FAILURE; } unsigned char buffer[4]; size_t ret = fread(buffer, A ...
https://man.mtool.work/man/20260915/man3/fwrite.3.html
Man page of FMEMOPEN 7543
FMEMOPEN Section: Linux Programmer's Manual (3) Updated: 2015-01-22 Index JM Home Page 名前 fmemopen, open_memstream, open_wmemstream - メモリーをストリームとしてオープンする 書式 #include < stdio.h > FILE *fmemopen(void * buf , size_t size ... 列やメモリーバッファーへの読み書きができる。 このバッファーは少なくとも size バイトの長さでなければならない。 引き数 mode は fopen (3) の場合と同じである。 mode で追記モード (append mode) が指定された場合、ファイル位置の初期値は バッファー中の 最初のヌル ... には、 'b' は mode の 2 文字目 でなければならない。 例えば、 "wb+" は意図通りの効果になるが、 "w+b" はそうではない。 これは fopen (3) の mode の扱いとは異なる。 glibc 2.9 での fmemopen () の「バイナリ」モードの追加は、 ABI (Application Binary Interface ... ("fprintf"); } fclose(in); fclose(out); printf("size=%zu; ptr=%s\n", size, ptr); free(ptr); exit(EXIT_SUCCESS); } 関連項目 fopen (3), fopencookie (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 3.79 の一部 である。プロジェ ...
https://man.mtool.work/man/20260915/man3/fmemopen.3.html
Man page of GETMNTENT 7426
GETMNTENT Section: Linux Programmer's Manual (3) Updated: 2019-03-06 Index JM Home Page 名前 getmntent, setmntent, addmntent, endmntent, hasmntopt, getmntent_r - ファイルシステム記述ファイルのエントリーを取得する 書式 #include < stdio.h > # ... sed by getmntent (). The argument type is the type of access required and can take the same values as the mode argument of fopen (3). The returned stream should be closed using endmntent () rather than fclose (3). getmntent () 関数は stream からファイ ... いられる。 4.4BSD と Digital UNIX には getmntinfo () があるが、 システムコール getfsstat () のラッパー関数である。 関連項目 fopen (3), fstab (5), mount (8) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。プロ ...
https://man.mtool.work/man/20260915/man3/addmntent.3.html
PREV 1 2 3 4 5 6 NEXT

リンク

日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。