Mercurial > octave-nkf
comparison src/syscalls.cc @ 5040:b6ff3a0d3d17
[project @ 2004-09-27 13:50:01 by jwe]
author | jwe |
---|---|
date | Mon, 27 Sep 2004 13:50:01 +0000 |
parents | 1cf16fb3459a |
children | 5fa9670b5956 |
comparison
equal
deleted
inserted
replaced
5039:8fa98abef34a | 5040:b6ff3a0d3d17 |
---|---|
248 @item O_RDWR\n\ | 248 @item O_RDWR\n\ |
249 Open for reading and writing.\n\ | 249 Open for reading and writing.\n\ |
250 \n\ | 250 \n\ |
251 @item O_APPEND\n\ | 251 @item O_APPEND\n\ |
252 Append on each write.\n\ | 252 Append on each write.\n\ |
253 \n\ | |
254 @item O_CREAT\n\ | |
255 Create the file if it does not exist.\n\ | |
253 \n\ | 256 \n\ |
254 @item O_NONBLOCK\n\ | 257 @item O_NONBLOCK\n\ |
255 Nonblocking mode.\n\ | 258 Nonblocking mode.\n\ |
256 \n\ | 259 \n\ |
257 @item O_SYNC\n\ | 260 @item O_SYNC\n\ |
948 { | 951 { |
949 #if defined (F_DUPFD) | 952 #if defined (F_DUPFD) |
950 DEFCONSTX ("F_DUPFD", SBV_F_DUPFD, F_DUPFD, | 953 DEFCONSTX ("F_DUPFD", SBV_F_DUPFD, F_DUPFD, |
951 "-*- texinfo -*-\n\ | 954 "-*- texinfo -*-\n\ |
952 @defvr {Built-in Variable} F_DUPFD\n\ | 955 @defvr {Built-in Variable} F_DUPFD\n\ |
956 Request to @code{fcntl} to return a duplicate file descriptor.\n\ | |
953 @end defvr"); | 957 @end defvr"); |
954 #endif | 958 #endif |
955 | 959 |
956 #if defined (F_GETFD) | 960 #if defined (F_GETFD) |
957 DEFCONSTX ("F_GETFD", SBV_F_GETFD, F_GETFD, | 961 DEFCONSTX ("F_GETFD", SBV_F_GETFD, F_GETFD, |
958 "-*- texinfo -*-\n\ | 962 "-*- texinfo -*-\n\ |
959 @defvr {Built-in Variable} F_GETFD\n\ | 963 @defvr {Built-in Variable} F_GETFD\n\ |
964 Request to @code{fcntl} to return the file descriptor flags.\n\ | |
960 @end defvr"); | 965 @end defvr"); |
961 #endif | 966 #endif |
962 | 967 |
963 #if defined (F_GETFL) | 968 #if defined (F_GETFL) |
964 DEFCONSTX ("F_GETFL", SBV_F_GETFL, F_GETFL, | 969 DEFCONSTX ("F_GETFL", SBV_F_GETFL, F_GETFL, |
965 "-*- texinfo -*-\n\ | 970 "-*- texinfo -*-\n\ |
966 @defvr {Built-in Variable} F_GETFL\n\ | 971 @defvr {Built-in Variable} F_GETFL\n\ |
972 Request to @code{fcntl} to return the file status flags.\n\ | |
967 @end defvr"); | 973 @end defvr"); |
968 #endif | 974 #endif |
969 | 975 |
970 #if defined (F_SETFD) | 976 #if defined (F_SETFD) |
971 DEFCONSTX ("F_SETFD", SBV_F_SETFD, F_SETFD, | 977 DEFCONSTX ("F_SETFD", SBV_F_SETFD, F_SETFD, |
972 "-*- texinfo -*-\n\ | 978 "-*- texinfo -*-\n\ |
973 @defvr {Built-in Variable} F_SETFD\n\ | 979 @defvr {Built-in Variable} F_SETFD\n\ |
980 Request to @code{fcntl} to set the file descriptor flags.\n\ | |
974 @end defvr"); | 981 @end defvr"); |
975 #endif | 982 #endif |
976 | 983 |
977 #if defined (F_SETFL) | 984 #if defined (F_SETFL) |
978 DEFCONSTX ("F_SETFL", SBV_F_SETFL, F_SETFL, | 985 DEFCONSTX ("F_SETFL", SBV_F_SETFL, F_SETFL, |
979 "-*- texinfo -*-\n\ | 986 "-*- texinfo -*-\n\ |
980 @defvr {Built-in Variable} F_SETFL\n\ | 987 @defvr {Built-in Variable} F_SETFL\n\ |
988 Request to @code{fcntl} to set the file status flags.\n\ | |
981 @end defvr"); | 989 @end defvr"); |
982 #endif | 990 #endif |
983 | 991 |
984 #if defined (O_APPEND) | 992 #if defined (O_APPEND) |
985 DEFCONSTX ("O_APPEND", SBV_O_APPEND, O_APPEND, | 993 DEFCONSTX ("O_APPEND", SBV_O_APPEND, O_APPEND, |
986 "-*- texinfo -*-\n\ | 994 "-*- texinfo -*-\n\ |
987 @defvr {Built-in Variable} O_APPEND\n\ | 995 @defvr {Built-in Variable} O_APPEND\n\ |
996 File status flag, append on each write.\n\ | |
988 @end defvr"); | 997 @end defvr"); |
989 #endif | 998 #endif |
990 | 999 |
991 #if defined (O_ASYNC) | 1000 #if defined (O_ASYNC) |
992 DEFCONSTX ("O_ASYNC", SBV_O_ASYNC, O_ASYNC, | 1001 DEFCONSTX ("O_ASYNC", SBV_O_ASYNC, O_ASYNC, |
993 "-*- texinfo -*-\n\ | 1002 "-*- texinfo -*-\n\ |
994 @defvr {Built-in Variable} O_ASYNC\n\ | 1003 @defvr {Built-in Variable} O_ASYNC\n\ |
1004 File status flag, asynchronous I/O.\n\ | |
995 @end defvr"); | 1005 @end defvr"); |
996 #endif | 1006 #endif |
997 | 1007 |
998 #if defined (O_CREAT) | 1008 #if defined (O_CREAT) |
999 DEFCONSTX ("O_CREAT", SBV_O_CREAT, O_CREAT, | 1009 DEFCONSTX ("O_CREAT", SBV_O_CREAT, O_CREAT, |
1000 "-*- texinfo -*-\n\ | 1010 "-*- texinfo -*-\n\ |
1001 @defvr {Built-in Variable} O_CREAT\n\ | 1011 @defvr {Built-in Variable} O_CREAT\n\ |
1012 File status flag, create file if it does not exist.\n\ | |
1002 @end defvr"); | 1013 @end defvr"); |
1003 #endif | 1014 #endif |
1004 | 1015 |
1005 #if defined (O_EXCL) | 1016 #if defined (O_EXCL) |
1006 DEFCONSTX ("O_EXCL", SBV_O_EXCL, O_EXCL, | 1017 DEFCONSTX ("O_EXCL", SBV_O_EXCL, O_EXCL, |
1007 "-*- texinfo -*-\n\ | 1018 "-*- texinfo -*-\n\ |
1008 @defvr {Built-in Variable} O_EXCL\n\ | 1019 @defvr {Built-in Variable} O_EXCL\n\ |
1020 File status flag, file locking.\n\ | |
1009 @end defvr"); | 1021 @end defvr"); |
1010 #endif | 1022 #endif |
1011 | 1023 |
1012 #if defined (O_NONBLOCK) | 1024 #if defined (O_NONBLOCK) |
1013 DEFCONSTX ("O_NONBLOCK", SBV_O_NONBLOCK, O_NONBLOCK, | 1025 DEFCONSTX ("O_NONBLOCK", SBV_O_NONBLOCK, O_NONBLOCK, |
1014 "-*- texinfo -*-\n\ | 1026 "-*- texinfo -*-\n\ |
1015 @defvr {Built-in Variable} O_NONBLOCK\n\ | 1027 @defvr {Built-in Variable} O_NONBLOCK\n\ |
1028 File status flag, non-blocking I/O.\n\ | |
1016 @end defvr"); | 1029 @end defvr"); |
1017 #endif | 1030 #endif |
1018 | 1031 |
1019 #if defined (O_RDONLY) | 1032 #if defined (O_RDONLY) |
1020 DEFCONSTX ("O_RDONLY", SBV_O_RDONLY, O_RDONLY, | 1033 DEFCONSTX ("O_RDONLY", SBV_O_RDONLY, O_RDONLY, |
1021 "-*- texinfo -*-\n\ | 1034 "-*- texinfo -*-\n\ |
1022 @defvr {Built-in Variable} O_RDONLY\n\ | 1035 @defvr {Built-in Variable} O_RDONLY\n\ |
1036 File status flag, file opened for reading only.\n\ | |
1023 @end defvr"); | 1037 @end defvr"); |
1024 #endif | 1038 #endif |
1025 | 1039 |
1026 #if defined (O_RDWR) | 1040 #if defined (O_RDWR) |
1027 DEFCONSTX ("O_RDWR", SBV_O_RDWR, O_RDWR, | 1041 DEFCONSTX ("O_RDWR", SBV_O_RDWR, O_RDWR, |
1028 "-*- texinfo -*-\n\ | 1042 "-*- texinfo -*-\n\ |
1029 @defvr {Built-in Variable} O_RDWR\n\ | 1043 @defvr {Built-in Variable} O_RDWR\n\ |
1044 File status flag, file open for both reading and writing.\n\ | |
1030 @end defvr"); | 1045 @end defvr"); |
1031 #endif | 1046 #endif |
1032 | 1047 |
1033 #if defined (O_SYNC) | 1048 #if defined (O_SYNC) |
1034 DEFCONSTX ("O_SYNC", SBV_O_SYNC, O_SYNC, | 1049 DEFCONSTX ("O_SYNC", SBV_O_SYNC, O_SYNC, |
1035 "-*- texinfo -*-\n\ | 1050 "-*- texinfo -*-\n\ |
1036 @defvr {Built-in Variable} O_SYNC\n\ | 1051 @defvr {Built-in Variable} O_SYNC\n\ |
1052 File status flag, file opened for synchronous I/O.\n\ | |
1037 @end defvr"); | 1053 @end defvr"); |
1038 #endif | 1054 #endif |
1039 | 1055 |
1040 #if defined (O_TRUNC) | 1056 #if defined (O_TRUNC) |
1041 DEFCONSTX ("O_TRUNC", SBV_O_TRUNC, O_TRUNC, | 1057 DEFCONSTX ("O_TRUNC", SBV_O_TRUNC, O_TRUNC, |
1042 "-*- texinfo -*-\n\ | 1058 "-*- texinfo -*-\n\ |
1043 @defvr {Built-in Variable} O_TRUNC\n\ | 1059 @defvr {Built-in Variable} O_TRUNC\n\ |
1060 File status flag, if file exists, truncate it when writing.\n\ | |
1044 @end defvr"); | 1061 @end defvr"); |
1045 #endif | 1062 #endif |
1046 | 1063 |
1047 #if defined (O_WRONLY) | 1064 #if defined (O_WRONLY) |
1048 DEFCONSTX ("O_WRONLY", SBV_O_WRONLY, O_WRONLY, | 1065 DEFCONSTX ("O_WRONLY", SBV_O_WRONLY, O_WRONLY, |
1049 "-*- texinfo -*-\n\ | 1066 "-*- texinfo -*-\n\ |
1050 @defvr {Built-in Variable} O_WRONLY\n\ | 1067 @defvr {Built-in Variable} O_WRONLY\n\ |
1068 File status flag, file opened for writing only.\n\ | |
1051 @end defvr"); | 1069 @end defvr"); |
1052 #endif | 1070 #endif |
1053 | 1071 |
1054 } | 1072 } |
1055 | 1073 |