609 lines · 15.3 KB · C
RawDownload
        if (ins(d, "F_GETLK64", (long)F_GETLK64)) return -1;#endif#ifdef F_SETLK64        if (ins(d, "F_SETLK64", (long)F_SETLK64)) return -1;#endif#ifdef F_SETLKW64        if (ins(d, "F_SETLKW64", (long)F_SETLKW64)) return -1;#endif/* GNU extensions, as of glibc 2.2.4. */#ifdef F_SETLEASE        if (ins(d, "F_SETLEASE", (long)F_SETLEASE)) return -1;#endif#ifdef F_GETLEASE        if (ins(d, "F_GETLEASE", (long)F_GETLEASE)) return -1;#endif#ifdef F_NOTIFY        if (ins(d, "F_NOTIFY", (long)F_NOTIFY)) return -1;#endif/* Old BSD flock(). */#ifdef F_EXLCK        if (ins(d, "F_EXLCK", (long)F_EXLCK)) return -1;#endif#ifdef F_SHLCK        if (ins(d, "F_SHLCK", (long)F_SHLCK)) return -1;#endif /* For F_{GET|SET}FL */#ifdef FD_CLOEXEC        if (ins(d, "FD_CLOEXEC", (long)FD_CLOEXEC)) return -1;#endif /* For F_NOTIFY */#ifdef DN_ACCESS        if (ins(d, "DN_ACCESS", (long)DN_ACCESS)) return -1;#endif#ifdef DN_MODIFY        if (ins(d, "DN_MODIFY", (long)DN_MODIFY)) return -1;#endif#ifdef DN_CREATE        if (ins(d, "DN_CREATE", (long)DN_CREATE)) return -1;#endif#ifdef DN_DELETE        if (ins(d, "DN_DELETE", (long)DN_DELETE)) return -1;#endif#ifdef DN_RENAME        if (ins(d, "DN_RENAME", (long)DN_RENAME)) return -1;#endif#ifdef DN_ATTRIB        if (ins(d, "DN_ATTRIB", (long)DN_ATTRIB)) return -1;#endif#ifdef DN_MULTISHOT        if (ins(d, "DN_MULTISHOT", (long)DN_MULTISHOT)) return -1;#endif #ifdef HAVE_STROPTS_H	/* Unix 98 guarantees that these are in stropts.h. */	INS(I_PUSH);	INS(I_POP);	INS(I_LOOK);	INS(I_FLUSH);	INS(I_FLUSHBAND);	INS(I_SETSIG);	INS(I_GETSIG);	INS(I_FIND);	INS(I_PEEK);	INS(I_SRDOPT);	INS(I_GRDOPT);	INS(I_NREAD);	INS(I_FDINSERT);	INS(I_STR);	INS(I_SWROPT);#ifdef I_GWROPT	/* despite the comment above, old-ish glibcs miss a couple... */	INS(I_GWROPT);#endif	INS(I_SENDFD);	INS(I_RECVFD);	INS(I_LIST);	INS(I_ATMARK);	INS(I_CKBAND);	INS(I_GETBAND);	INS(I_CANPUT);	INS(I_SETCLTIME);#ifdef I_GETCLTIME	INS(I_GETCLTIME);#endif	INS(I_LINK);	INS(I_UNLINK);	INS(I_PLINK);	INS(I_PUNLINK);#endif		return 0;} PyMODINIT_FUNCinitfcntl(void){	PyObject *m, *d; 	/* Create the module and add the functions and documentation */	m = Py_InitModule3("fcntl", fcntl_methods, module_doc);	if (m == NULL)		return; 	/* Add some symbolic constants to the module */	d = PyModule_GetDict(m);	all_ins(d);}

Lines 501–609 of 609. Previous lines

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t