Changeset 248 for trunk/include
- Timestamp:
- Sep 21, 2009, 8:23:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/slib.h
r243 r248 327 327 * ---------------------------------------------------------------- */ 328 328 329 SL_TICKET sl_make_ticket (int fd, const char * path); 330 329 #define SL_OFILE_SIZE 32 330 331 char * sl_check_stale(); 332 333 SL_TICKET sl_make_ticket (const char * ofile, int oline, 334 int fd, const char * filename); 335 331 336 /* Open for writing. 332 337 */ 333 SL_TICKET sl_open_write (const char * fname, int priviledge_mode); 338 SL_TICKET sl_open_write (const char * ofile, int oline, 339 const char * fname, int priviledge_mode); 334 340 335 341 /* Open for reading. 336 342 */ 337 SL_TICKET sl_open_read (const char * fname, int priviledge_mode); 343 SL_TICKET sl_open_read (const char * ofile, int oline, 344 const char * fname, int priviledge_mode); 338 345 339 346 /* Drop from cach when closing … … 343 350 /* Open for reading w/minimum checking. 344 351 */ 345 SL_TICKET sl_open_fastread (const char * fname, int priviledge_mode); 352 SL_TICKET sl_open_fastread (const char * ofile, int oline, 353 const char * fname, int priviledge_mode); 346 354 347 355 /* Open for read and write. 348 356 */ 349 SL_TICKET sl_open_rdwr (const char * fname, int priviledge_mode); 357 SL_TICKET sl_open_rdwr (const char * ofile, int oline, 358 const char * fname, int priviledge_mode); 350 359 351 360 /* Open for read and write, fail if file exists. 352 361 */ 353 SL_TICKET sl_open_safe_rdwr (const char * fname, int priv); 362 SL_TICKET sl_open_safe_rdwr (const char * ofile, int oline, 363 const char * fname, int priv); 354 364 355 365 /* Open for write, truncate. 356 366 */ 357 SL_TICKET sl_open_write_trunc (const char * fname, int priviledge_mode); 367 SL_TICKET sl_open_write_trunc (const char * ofile, int oline, 368 const char * fname, int priviledge_mode); 358 369 359 370 /* Open for read and write, truncate. 360 371 */ 361 SL_TICKET sl_open_rdwr_trunc (const char * fname, int priviledge_mode); 372 SL_TICKET sl_open_rdwr_trunc (const char * ofile, int oline, 373 const char * fname, int priviledge_mode); 362 374 363 375 /* Initialize the content sh_string.
Note:
See TracChangeset
for help on using the changeset viewer.